katang Posted January 7, 2018 Report Share Posted January 7, 2018 What is exactly the relation and the efficiency of SC_THREAD, SC_METHOD and system thread? I am making a simulator, where both the exact timing and the execution speed counts. I addition, I might need a separate Qt5 GUI thread. What are the means either in Qt5 or SystemC to support those synchronization requirements? Quote Link to comment Share on other sites More sharing options...
David Black Posted January 7, 2018 Report Share Posted January 7, 2018 This question cannot be answered with respect to the SystemC standard as the issue is heavily implementation dependent. I am aware of implementations where SC_THREAD is faster than SC_METHOD and visa versa. It is also not a good basis for evaluating SystemC itself since the issue of simulation performance almost always comes down to how SystemC was used and how the modeler wrote their SystemC model. I do know an awful lot of folks use SystemC inappropriately (e.g. using it for modeling RTL, where VHDL or SystemVerilog are much better suited). IEEE 1666-2011 calls out the desired behavior, and not the implementation. Note: I did a presentation on SystemC myths many years ago at NASCUG that included the myth about whether or not one should favor SC_METHOD over SC_THREAD for performance reasons. It is quite simply a poor way of making a decision when attempting to obtain performance. maehne and kartikkg 2 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.