jsmith126x Posted October 11, 2016 Report Share Posted October 11, 2016 Hi,Is there a function in SystemC which returns the time of the next event? Or if not exists how to implement it?For example I have clock model with 1MHz frequency and I run the model with sc_start(100, SC_NS).The next scheduled event is at 500ns.The code looks like this..sc_start(100, SC_NS);next_time = get_next_event_time(); //get_next_event_time() should return with 500.. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.