Jump to content

Sensitivity list


h_narasimhan

Recommended Posts

You can query the event() function of the signal, to check whether it has been triggered in the previous update phase (see IEEE 1666-2011, 6.4.9).  Of course, multiple signals might have been updated even though your process is only invoked once.

 

Greetings from Oldenburg,

  Philipp

Very true. But as each of SC_METHOD, SC_THREAD and the older SC_CTHREAD all tied

to the underlying OS's thread scheduler, this information would be uncertain ? As you have

rightly pointed out that multiple signals might get updated on the same event, so in that case

which is the first amongst equals.

Link to comment
Share on other sites

Very true. But as each of SC_METHOD, SC_THREAD and the older SC_CTHREAD all tied

to the underlying OS's thread scheduler, this information would be uncertain?

 

 The OS scheduler has nothing to do with the SystemC process scheduler.  SystemC uses a custom, cooperative scheduler following the simulation semantics as defined in IEEE 1666-2011:  Only one SystemC process is guaranteed to run at all times.  Even if SystemC processes might be implemented as OS threads, their scheduling is enforced to follow the SystemC rules.

 

 

As you have rightly pointed out that multiple signals might get updated on the same event, so in that case which is the first amongst equals.

 

You can't tell.  All of them are "equal".  Whether or not this is sufficient for the original poster's use case depends on his/her requirements.

 

/Philipp

Link to comment
Share on other sites

 

 The OS scheduler has nothing to do with the SystemC process scheduler.  SystemC uses a custom, cooperative scheduler following the simulation semantics as defined in IEEE 1666-2011:  Only one SystemC process is guaranteed to run at all times.  Even if SystemC processes might be implemented as OS threads, their scheduling is enforced to follow the SystemC rules.

 

 

 

You can't tell.  All of them are "equal".  Whether or not this is sufficient for the original poster's use case depends on his/her requirements.

 

/Philipp

Thanks for correcting my misconception.

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...