Hello All,
I have a module, which have a public member function which when called will write some values in a signal declared within the module. I can write into the signal from within the module. But if I try to access member function from outside the module instance, I get a crash. When I am trying to debug it, I find the following message:
Program received signal SIGSEGV, Segmentation fault.
t0x00000000080869c6 in sc_core::sc_signal_t<double, (sc_core::sc_writer_policy)0>::write (this=0xe8, value_=@0x7ffffea1ff00: 1)
at /blah/systemc-2.3.3/include/sysc/communication/sc_signal.h:292
292 bool value_changed = !( m_new_val == value_ );
I am using gcc-9.3.0. Any help will be appreciated.
Regards,
Sumit