|
Post by karandeep963 on May 8, 2013 5:10:21 GMT
Hello All, I just cant understand spawned and unspawned processes. Can anyone please relate it with some good examples. Regards, KS
|
|
|
Post by gunjan on May 8, 2013 11:14:52 GMT
Hello 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, Gunjan
|
|
|
Post by amitk3553 on May 9, 2013 5:53:09 GMT
Hello 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, Gunjan Actually we are reading the concepts of dynamic and static processes, So to properly understand we need to know about spawned and unspawned processes.we cannot move further without having basic understanding of the this concept. Please tell the brief idea. Regards Amit
|
|
|
Post by amitk3553 on May 13, 2013 6:34:58 GMT
Hello guys,
From some sources I achieved the following understanding about spawned and unspawned processes :
Spawned processes are made by using sc_spawn and by using sc_spawn(&cam), the process "cam" becomes dynamic but their is one exception if this process is registered as sc_spawn in constructor as:
SC_CTOR(){ sc_spawn(cam); }
then process becomes static.
And static processes using SC_method and sc_thread() are unspawned processes, we generally use them rather than spawned processes.
If somebody found something wrong, then correct it.
Regards Amit
|
|