1. sc_event& default_event(), sc_event& value_changed_event(): return a reference to the value-changed event.
2. bool event(): return true if and only if the value of the signal changed in the update phase of the immediately preceding delta cycle and at the current simulation time.
Learn with Examples, 2020, MIT license
#include<systemc>
usingnamespace sc_core;
SC_MODULE(SIGNAL_EVENT) {
defines two signal channels
sc_signal<int> s1, s2;
SC_CTOR(SIGNAL_EVENT) {
SC_THREAD(producer1);
SC_THREAD(producer2);
consumer sensitive to (s1 OR s2)
SC_THREAD(consumer);
same as: sensitive << s1.default_event() << s2.value_changed_event();