Pallavia Posted June 13, 2016 Report Share Posted June 13, 2016 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 Quote Link to comment Share on other sites More sharing options...
Roman Popov Posted June 13, 2016 Report Share Posted June 13, 2016 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 ). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.