ANKUR SAINI Posted January 31, 2019 Report Share Posted January 31, 2019 I am currently trying to implement some feature for which I need to reset/re-start a thread based on some event raised from other thread. I got to know that this type of behavior can be achieved by using async_reset_signal_is OR with help of enable/disable feature of thread handling. But the problem here is all these advanced features comes with SystemC 2.3 on wards, but because of some limitations and constraints, I have to stick to use SystemC 2.2 version. Is there any way to achieve this with SystemC 2.2 ? Please help me with this!! Quote Link to comment Share on other sites More sharing options...
ANKUR SAINI Posted February 1, 2019 Author Report Share Posted February 1, 2019 @Philipp A Hartmann @David Black : Quick help on this would be appreciated Quote Link to comment Share on other sites More sharing options...
David Black Posted February 1, 2019 Report Share Posted February 1, 2019 Use SystemC 2.3 is your only easy option. I would expect much help from others to recreate what has already been done. You could also recast threads into cthreads (which has always worked). Quote Link to comment Share on other sites More sharing options...
ANKUR SAINI Posted February 4, 2019 Author Report Share Posted February 4, 2019 On 2/2/2019 at 2:39 AM, David Black said: Use SystemC 2.3 is your only easy option. I would expect much help from others to recreate what has already been done. You could also recast threads into cthreads (which has always worked). Thanks for reverting back David.. Would it be possible for you to give few good pointers for - 'recasting threads into cthreads' to refer; since definitely it is something which I have to explore and don't know much right now.. Quote Link to comment Share on other sites More sharing options...
David Black Posted February 7, 2019 Report Share Posted February 7, 2019 SC_THREADs are simply threads that are sensitive to a clock. Instead of wait(10ns), you wait(2), which means to "wait 2 clocks". Does not work for SC_METHOD though (no equivalent). 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.