Jump to content

controlling systemc simulation


Recommended Posts



I have compiled the systemc model to a dll, now I'd like to run the simulation from an another module (.exe) step by step. For example run the simulation to 20ns then run the simulation to 40ns, when the user press a button. Which is the best way? The problem sc_main is exit once the simulation is started.



Link to post
Share on other sites

For some reason I can not embed the main program to the systemc model dll.

Can I start the systemc simulation in a thread? 



Yes, you can.  You can use the function "sc_elab_and_sim" to invoke the simulation externally.  See IEEE 1666-2011.

Just be careful about synchronisation between your application and the SystemC simulation thread.



Link to post
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...