Jump to content

static sensitivity of systemC processes


sonalidutta

Recommended Posts

Hi,

 

Let us consider the following example:

 

sc_event a, b;

....

SC_CTOR(...){

       SC_THREAD(p);

       sensitive << a << b;

}

 

My question is process p here is statically sensitive to (a and b ) OR (a or b )?

 

I went through the relevant parts of 1666-2011_systemc_manual.pdf. But still I did not find the exact answer.

 

If anyone knows the answer, it will be great!

 

Thanks

Sonali

Link to comment
Share on other sites

The answer is that it's an OR.  The description of static sensitivity is on page 16

 

"The sensitivity of a process instance is the set of events and time-outs that can potentially cause the process
to be resumed or triggered. The static sensitivity of an unspawned process instance is fixed during
elaboration. The static sensitivity of a spawned process instance is fixed when the function sc_spawn is
called. The dynamic sensitivity of a process instance may vary over time under the control of the process
itself. A process instance is said to be sensitive to an event if the event has been added to the static sensitivity
or dynamic sensitivity of the process instance. A time-out occurs when a given time interval has elapsed."

 

By "set of events" it means that any one of those events can cause a process to resume,

 

regards

Alan

Link to comment
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.

×
×
  • Create New...