Jump to content
Sign in to follow this  
karandeep963

spawned and unspawned process

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...