darshanKM Posted August 16, 2017 Report Share Posted August 16, 2017 Hi all, I am new to SystemC and I have a course in my current semester. It would be great if someone answers my below questions: Case1: Consider a SC_MODULE(mod_1) with two SC_THREAD(p1); SC_THREAD(p2); Question1: which thread starts first? Question2: What is the order these two threads run? Do they run parallel or one after the other? Case2: Consider a SC_MODULE(mod_1) with one SC_THREAD(p1); SC_METHOD(p2); Question1: which thread starts first? Question2: What is the order these two threads run? Who starts first? Question3: Does SC_METHOD has priority than SC_THREAD? i.e if suppose SC_THREAD was running and same time SC_METHOD received a sensitivity. Does SC_THREAD pause and SC_THREAD starts execution? My questions are very primitive but it is very much important with exam point of view..:-) Thanks in Advance.. Quote Link to comment Share on other sites More sharing options...
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.