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

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

×