kiku_iitg
Newbie level 1
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
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