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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×