Search the Community
Showing results for tags 'delta cycle'.
Found 2 results
Question about cout and time
Matthias Jung posted a topic in SystemC LanguageHey, is there a way or mechanism such that a cout or printf statement in an SC_METHOD is delayed to the last delta cycle before the time advances? Similar to the VCD traces? Such that only the last stable value is printed to the terminal. Regards Matthias
I hope I have made the topic title understandable, jeje There is the question: I have a sc_method method1 with static sensitivity to 2 signals, sig_1 and sig_2. and sc_method method2 is sensitive to sig_1. When the sig_1 in simulator is changed, method1 is triggered by sig_1, and after a delta cycle, agian by sig_2. Is there a way to let the sensitivity of method1 to sig_1 wait for a delta cycle, i.e. ignore the sensitiviy of sig_1, if after a delta cycle there is the sensitiviy of sig_2 thanks sc_method(method1) sensitivity << sig_1 <<sig_2; sc_method(method2) sensitivity << sig_1; /* simulator */ sig_1.write(variable);