Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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

Posted

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

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.

×
×
  • Create New...