Amol Nikade Posted March 13, 2020 Report Share Posted March 13, 2020 Q1. How we will get to know which SC_METHOD/SC_THREAD will trigger first if all the methods are sensitized to 'clock.pos()' Q2. how to achieve if we cant to give priority for any specific method ? Q3. what are the pros and cons of SC_METHOD over SC_THREAD or vice versa ? Quote Link to comment Share on other sites More sharing options...
Eyck Posted March 13, 2020 Report Share Posted March 13, 2020 There is no guarantee which method or thread is activated first There is no means to give priority. Why would you like to do this? In my experience you have a thought problem if you believe you need to do this. thread activation is more expensive (in terms of computing power) than method as the thread context needs to be restored and saved. But threads keep an internal state so they are good to describe state machines. Amol Nikade 1 Quote Link to comment Share on other sites More sharing options...
Amol Nikade Posted March 16, 2020 Author Report Share Posted March 16, 2020 Hi Eyck, Thanks for clarification. 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.