Jump to content
Sign in to follow this  
kirtap

finding sc_event_or_list trigger

Recommended Posts

Hi!

 

If I have a sc_event_or_list, and then do a wait on it, is there some way to find out which of the memebers of the sc_event_or_list it was that released the wait?

 

 

for instance

        sc_core::sc_event_or_list eventList = one_event | other_event;
        wait(eventList);

How do I find the event that released the wait?

 

 

Thanks,

kirtap

 

Share this post


Link to post
Share on other sites

Nope. It is implemented this way in SystemC for simulation performance (speed) reasons.

 

If that is important to your model, then you should associate a flag with each event. Probably wrap it up in your own custom channel class for safety.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×