meera Posted June 13, 2016 Report Share Posted June 13, 2016 hi, In systemc is in possible to invoke the same function using multiple threads ? like in c++: std::thread th1 (print_block,50,);std::thread th2 (print_block,50,); Quote Link to comment Share on other sites More sharing options...
Roman Popov Posted June 13, 2016 Report Share Posted June 13, 2016 Yes, however existing SystemC macro like SC_THREAD or SC_METHOD do not support function argument passing. You can use dynamic processes (sc_spawn) to invoke function with different arguments. Check this tutorial for example: https://sclive.wordpress.com/2008/01/10/systemc-tutorial-threads-methods-and-sc_spawn Quote Link to comment Share on other sites More sharing options...
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.