Jump to content

Samuel Oliveira

  • Content Count

  • Joined

  • Last visited

Posts posted by Samuel Oliveira

  1. 3 hours ago, David Black said:

    You cannot. SystemC cannot be restarted without exiting and restarting the entire program.

    That said, you have three choices:

    1. Call your executable repeatedly from a script, saving the data in uniquely named log files.
    2. Same as 1 except you could use Linux 'exec' call to chain simulations together; however, be very careful with this. Probably #1 above is simpler and better for that reason.
    3. If you are able to deal with only having a single elaboration, then you could do the following:
      • Create a global start_time_offset variable that you update between calls.
      • Make sure you report/act-on time as if it is sc_time_stamp() - start_time_offset.
      •  Observation: #1 is still simpler and there are really no real advantages to this approach.

    Can you show how use the varieble start_time_offset in an exemple?

  • Create New...