With reference to question SystemC module not working with SC_THREAD, a timed simulation is imitated using next_trigger()
. As I understood from this article, this restarts the thread after the specified time:
next_trigger(double, sc_time_unit)
: The process shall be triggered when specified time has elapsed.
I.e. it effectively executes the operations after the occurrence of this instruction after the time specified, but also executes the operations found before that instruction. I have the feeling that the repeated utilization of next_trigger
within an SC_THREAD
may result in 'glitches' in the simulation.
Q1: Is my feeling correct?
Q2: Is there another possibility to delay execution (something that suspending the thread for the given time, rather than restarting it)