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 comment
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 comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...