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.



Share this post

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.



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now