Jump to content
hassan

sc_time_stamp is always zero

Recommended Posts

Hello everyone,

 

I am trying to capture the simulation time at which the uvm_transaction is transferred to the DUT, but whenever I try to get the sc_time_stamp, it is always zero, on the other hand the sc_delta_count seems working.

What could be the reason behind that?

Thanks in advance

Share this post


Link to post
Share on other sites

I tried  to add some delay using sc_core::wait in the function that writes to the DUT, but during run-time sometimes it exits normally after reaching the wait function for the first time and sometimes a segmentation fault occurs.

I used gdb for debugging, once it reaches

    at /usr/local/systemc-2.3.1/include/sysc/kernel/sc_wait.h:77
77        wait( sc_time( v, tu, simc ), simc );

it exits normally!!

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

×