katang Posted July 28, 2018 Report Share Posted July 28, 2018 In my program I define #define SCTIME_RESOLUTION 10,sc_core::SC_US and set sc_set_time_resolution(SCTIME_RESOLUTION); The lines are executed cerr << sc_time_stamp() << endl; cerr << sc_time_stamp().value() << endl; with the result 150 us 15 Is it bug (rest of the concept change) or feature (with long time support)? I guess it is the rest of the "default_time_unit" and is not completely what "time_resolution" means. For me a default time unit is what I want to see my time results expected in, and time resolution is what is considered for a delta cycle. In my case, I want to see the results in msecs, with two decimal digits, i.e. in steps of 0.01 ms. Is it possible to format it with SystemC? Especially, to format it with proper fields width for a table? 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.