Hariharan Bhagavatheeswara Posted July 26, 2019 Report Share Posted July 26, 2019 Hi, I have an sc_module A which has a constructor with multiple parameters. In another parent module B, I need to create a vector of multiple As. So how can I pass the parameters for each A's construction? Quote Link to comment Share on other sites More sharing options...
Roman Popov Posted July 26, 2019 Report Share Posted July 26, 2019 In a current SystemC releases you will have to use Creator (check SystemC standard), that will generate arguments for each element constructor. Quite inconvenient. In next SystemC release sc_vector will have emplace_back() method. Quote Link to comment Share on other sites More sharing options...
Hariharan Bhagavatheeswara Posted July 26, 2019 Author Report Share Posted July 26, 2019 Thank you. For now, I will try to read up on the Creator or create my module in a different way. Quote Link to comment Share on other sites More sharing options...
karthickg Posted July 27, 2019 Report Share Posted July 27, 2019 Check this thread: 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.