sc_event_queue help needed !!

Status
Not open for further replies.

kiku_iitg

Newbie level 1
Joined
Jan 5, 2007
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
how to use sc_event_queue

Hi all

I m trying to model hardware using SystemC.
I have a process MYPROC (an SC_METHOD) that is sensitive to two events, say E1 and E2.
It may happen that E1 & E2 are triggered at the same simulation time.
But, in terms of delta times, they trigger the process MYPROC at different times and the process gets exectuted two times. (I have something else to do within the process when both gets triggered)

I would like to try "sc_event_queue" to avoid this. Is i t a better option ?
If so, can somebody give me a sample code on how to use it ?

Thx
KK
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…