manuelselva Posted October 6, 2015 Report Share Posted October 6, 2015 Hi all, I tried without succes to replace a 2D array of sc_signal<bool> by a vector<vector<sc_signal> > After deep investigations I found the sc_vector class. What is the purpose of SystemC sc_vector class ? What are the missing points in SystemC classe for not being able to use STL vector class to make containers of sc_signal for example ? ------- Manu Quote Link to comment Share on other sites More sharing options...
ralph.goergen Posted October 6, 2015 Report Share Posted October 6, 2015 Dear Manu, SystemC objects are not CopyConstructable and not CopyAssignable, both required for for std::vector. This is why you cannot use std::vector and the main reason for sc_vector. More benefits are vector based port binding, ... Greetings Ralph maehne 1 Quote Link to comment Share on other sites More sharing options...
manuelselva Posted October 6, 2015 Author Report Share Posted October 6, 2015 Thank you again for fast answer Ralph. 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.