Skip Nav
Home » Forums » SystemC Forum

Icon - KMLM List KMLM List

View email archives for the history of this mailing list.

List Home All Archives Dates Threads Authors Subjects
systemc-forum - wait() vs. notify() Message Thread: Previous | Next
  • To: "systemc-forum@xxxxxxxxxxxxxxxxx" <systemc-forum@xxxxxxxxxxxxxxxxx>
  • From: "Bradley, Mike" <mike_bradley@xxxxxxxxxx>
  • Date: Fri, 27 May 2011 12:03:46 +0000
Send Email to
Send new message
Reply to this message




I’m creating a model where I need to make an edge sensitive output interrupt.  This is really a pulse of say, 2 clocks.  In order to schedule the pulse, it seems I have two choices:


·         Simply use a wait statement;



    Wait ( 2 * clock );




·         Create an SC_METHOD sensitive to an event;



  sensitive << clearIntrEvent;


  void clearInterrupt() {





  clearIntrEvent.notify( 2 *clock );



Question is:  which style is preferable? 

                         Which style would have better simulation performance?



Thanks for your help!


By Date: Previous | Next Current Thread By Thread: Previous | Next