mohitnegi Posted September 26, 2014 Report Posted September 26, 2014 hello , I have a problem here where i am using wait(e1||e2) now when it comes out of this wait statement i have to perform some functionality when e1 is triggerred and some functionality when e2 triggered ... thnaks ... Quote
apfitch Posted September 26, 2014 Report Posted September 26, 2014 There's no way to find out which event triggered. You could just use sc_signal, because then you can use the event() method of the sc_signal class. Quote
dakupoto Posted September 27, 2014 Report Posted September 27, 2014 hello , I have a problem here where i am using wait(e1||e2) now when it comes out of this wait statement i have to perform some functionality when e1 is triggerred and some functionality when e2 triggered ... thnaks ... Hello Sir, It would be very difficult/tricky to achieve the wait(e1 | e2). The best option would be to use sc_signal, and sensitize a process to multiple events -- easy to implement and then the simulation kernel would keep track of the triggering events. On the other hand, using 'botify() - wait()' would force you to accurately and manually track each event, which as you have found out, is a big bother. Hope that helps. Quote
David Black Posted September 28, 2014 Report Posted September 28, 2014 Also, I think you have the wrong operator in the code you show. Hopefully just a typo: wait(e1|e2); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.