jsmith125x Posted January 28, 2014 Report Posted January 28, 2014 Hi, 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. Quote
Philipp A Hartmann Posted January 28, 2014 Report Posted January 28, 2014 You can invoke sc_start several times from within sc_main, see Section 4.3.4.2 in IEEE 1666-2011. Just add your user interface "in between" the different calls to sc_start. The functions in Section 4.5 may be helpful as well. /Philipp karandeep963 1 Quote
jsmith125x Posted January 28, 2014 Author Report Posted January 28, 2014 For some reason I can not embed the main program to the systemc model dll. Can I start the systemc simulation in a thread? Quote
Philipp A Hartmann Posted January 31, 2014 Report Posted January 31, 2014 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. /Philipp Quote
Recommended Posts
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.