samyakjaroli Posted October 24, 2012 Report Share Posted October 24, 2012 I am curious to know, what would happen if we do not specify the sensitivity of a void function inside the constructor. sc_module(my_module){ //port definition void do_void() { // function definition } sc_ctor(my_module){ // some initialization sc_method(do_void) // nothing mentioned in sensitivity } }; Quote Link to comment Share on other sites More sharing options...
Philipp A Hartmann Posted October 24, 2012 Report Share Posted October 24, 2012 The method process will be run once in the initialization phase of the simulation. [see 1666-2011, Section 4.2]. NB: Please try to post working code and wrap it in a [code] [/code] block to enable C++ highlighting. Quote Link to comment Share on other sites More sharing options...
sudha Posted August 9, 2015 Report Share Posted August 9, 2015 it could also mean there can be a dynamic sensitivity. Dynamic sensitivity is defined within the method/thread definition 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.