Hi,
I use a simulator written in systemc to evaluate the programs written in pthread. so i have to interconnect the pthreads and systemc threads. The connection works fine, but I want to calculate the execution time of the pthreads events in systemc simulation time.
I use systemc events to let it wait the pthreads part to forward some events and then notify the systemc part. Apparantly it should work like the systemc module should advance time only when it is notified by the pthread, but actually it does not.
What happens is that the simulator of systemc starts at time 0, and then wait for the event from the pthread, but when it receive events the time is advanced too much (like 2000ns). What I want is to paus th systemc simulato to some how pause and advance the time only when is it required. i.e. in the above situation when the event is received from the pthread the time should remain 0, and it is advanced only when the systemc wants to advance it.
any help in this regard will be highly appreciated.
thanks