Is there a function in SystemC which returns the time of the next event? Or if does not exist, then how to implement it?
For example I have clock model with 1 MHz frequency and I run the model with sc_start(100, SC_NS)
.
The next scheduled event is at 500 ns.
The code looks like this:
..
sc_start(100, SC_NS);
next_time = get_next_event_time(); //get_next_event_time() should return with 500
..