aniket2610 Posted April 14, 2022 Report Share Posted April 14, 2022 Hi Can someone please guide me or provide an example to create sc_vector < sc_vector < multipassthrough_target_socket > > how to instantiate such nested vector & register nb_transport_fw calls for such nested vector target sockets. Thank you. Quote Link to comment Share on other sites More sharing options...
karthickg Posted April 14, 2022 Report Share Posted April 14, 2022 Check Philipp's comment here: Quote Link to comment Share on other sites More sharing options...
aniket2610 Posted April 14, 2022 Author Report Share Posted April 14, 2022 i referred above post. Initialization i understood. My main question is about how to register transport callbacks for all ? Quote Link to comment Share on other sites More sharing options...
karthickg Posted April 14, 2022 Report Share Posted April 14, 2022 I didn't note that you are using multi_passthrough_target_socket. Why would you want to create an sc_vector<sc_vector<..>> of that? This will effectively be a 3D vector... But to answer your question: multi_passthrough_target_socket supports transport function registration using register_b_transport – so you can register the callback of your choice (just iterate over the ports in the constructor). If you want to using a single callback implementation for all ports, you can try with an additional parameter (to distinguish the dimension index) along with sc_bind (but I haven’t checked this). 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.