Jump to content

Recommended Posts

I have an array of initiaot/target sockets(without pointers) like

tlm_utils::multi_passthrough_initiator_socket<Router, 32, tlm::tlm_base_protocol_types,1,sc_core::SC_ZERO_OR_MORE_BOUND > Out[10]

How I can provide the name to these elements as Out0, Out1,Out2,...,Out9. Please note these are not pointers but simple object

Thanks

Sumit

Share this post


Link to post
Share on other sites

You can use sc_vector:

sc_vector<tlm_utils::multi_passthrough_initiator_socket<Router, 32, tlm::tlm_base_protocol_types,1,sc_core::SC_ZERO_OR_MORE_BOUND >> 
Out{"Out", 10};

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×