Jump to content
Pallavia

Is dynamic and Static process scheduling differs?

Recommended Posts

Hi All,

 

I have below doubts could you please help;

 

We have two process

1. one with static sensitivity

(a,b,c are input ports)

 

SC_METHOD(P1);

sensitivity<<a<<b<<c;

 

2.second with dynamic sensitivity created using sc_spwan 

 

spawn_opt.spawn_method()

spwan_opt.set_sensitivity(a);

spwan_opt.set_sensitivity( b );

spwan_opt.set_sensitivity©;

sc_scpawn(sc_bind(&p1,this,i),name,&spawn_opt);

 

Here is my doubt ,

1. How does scheduling happens for static and dynamic threads?

2. Is it different for static and dynamic process? I mean is static event gets priority

 

Thanks in advance.

 

Regards,

Pallavi

Share this post


Link to post
Share on other sites

I think in your example both sensitivities are static, since you create them together with process instance. There should not be a difference in scheduling semantics.

 

You can create sensitivity dynamically using next_trigger( event ).

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.


×
×
  • Create New...