zubin2911 Posted August 14, 2015 Report Share Posted August 14, 2015 Hi, Does SystemC support queue like SystemVerilog? I want to create dynamic array in SystemC TLM2.0, can any one suggest a better way to do it? Thanks Zubin Quote Link to comment Share on other sites More sharing options...
apfitch Posted August 14, 2015 Report Share Posted August 14, 2015 Use the c++ standard template library - SystemC *is* C++ Alan Quote Link to comment Share on other sites More sharing options...
zubin2911 Posted August 17, 2015 Author Report Share Posted August 17, 2015 Thanks Alan. I guess C++ queue doesn't support all the Array manipulation methods which are there in SystemVerilog, like find_first_index, find_last_index. Correct me if I'm wrong. Thanks, --Zubin Quote Link to comment Share on other sites More sharing options...
matteodc Posted August 17, 2015 Report Share Posted August 17, 2015 Hi, have a look here: http://www.cplusplus.com/reference/vector/vector/ http://www.cplusplus.com/reference/algorithm/find_if/ Quote Link to comment Share on other sites More sharing options...
zubin2911 Posted August 17, 2015 Author Report Share Posted August 17, 2015 Hi, Thank you very much. It is quite useful for my application. --Zubin 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.