karandeep963 Posted May 8, 2013 Report Posted May 8, 2013 Hello All, I just cant understand spawned and unspawned processes. Can anyone please relate it with some good examples. Regards, KS Annossyenudge 1 Quote
David Long Posted May 8, 2013 Report Posted May 8, 2013 Hi KS, If you are just starting out with SystemC, you can probably safely ignore dynamic (spawned) processes - just use SC_METHOD or SC_THREAD in the module's constructor. Dynamic processes can be useful for advanced cases (e.g. responding to some condition that is not known at compile time). Regards, Dave karandeep963 1 Quote
amitk3553 Posted May 9, 2013 Report Posted May 9, 2013 Hi KS, If you are just starting out with SystemC, you can probably safely ignore dynamic (spawned) processes - just use SC_METHOD or SC_THREAD in the module's constructor. Dynamic processes can be useful for advanced cases (e.g. responding to some condition that is not known at compile time). Regards, Dave Hi KS, If you are just starting out with SystemC, you can probably safely ignore dynamic (spawned) processes - just use SC_METHOD or SC_THREAD in the module's constructor. Dynamic processes can be useful for advanced cases (e.g. responding to some condition that is not known at compile time). Regards, Dave Hello dave, Are the dynamic and static processes or the spawned and unspawned processes same concepts????? Regards Amit Quote
David Long Posted May 9, 2013 Report Posted May 9, 2013 Hi Amit, Are the dynamic and static processes or the spawned and unspawned processes same concepts????? Pretty much - static processes are created using the SC_METHOD and SC_THREAD macros. Dynamic processes are created by calling sc_spawn. There is one slight complication, calling sc_spawn from a module's constructor will actually create a static process since the LRM defines a dynamic process as one created from "the end_of_elaboration callback or during simulation" (see Glossary B.51). The LRM uses the term "spawned" and "unspawned" to try to avoid this confusion! Regards, Dave apfitch and amitk3553 2 Quote
amitk3553 Posted May 10, 2013 Report Posted May 10, 2013 "calling sc_spawn from a module's constructor will actually create a static process" What is the meaning of Quoted line. Regards Amit Quote
apfitch Posted May 10, 2013 Report Posted May 10, 2013 It means "calling sc_spawn from a module's constructor will actually create a static process" - I don't know what you don't understand. Can you ask a more specific question? regards Alan Quote
amitk3553 Posted May 11, 2013 Report Posted May 11, 2013 It means "calling sc_spawn from a module's constructor will actually create a static process" - I don't know what you don't understand. Can you ask a more specific question? regards Alan It means "calling sc_spawn from a module's constructor will actually create a static process" - I don't know what you don't understand. Can you ask a more specific question? regards Alan Hello alan, Are u saying like follwing??? SC_CTOR() { sc_spawn(process_a) } if process_a is registered as sc_spawn in constructor. So now process_a become static??? Regards Amit Quote
apfitch Posted May 11, 2013 Report Posted May 11, 2013 Yes, that's exactly what Dave was saying, regards Alan Quote
karandeep963 Posted May 13, 2013 Author Report Posted May 13, 2013 Thanks Dave, Alan, Amit I understand the concept. 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.