Jump to content

Recommended Posts

Posted

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

 

Posted

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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...