rahuljn Posted March 16, 2015 Report Share Posted March 16, 2015 Hi Guys Is it possible to connect one tlm_initiator_socket to more than one tlm_target_socket and vice versa. If no, why? And what about one tlm_initiator_socket to more than one tlm_initiator_socket upward in the hierarchy Same question for simple sc_in/sc_out Thanks Rahul Quote Link to comment Share on other sites More sharing options...
apfitch Posted March 17, 2015 Report Share Posted March 17, 2015 1. Yes, see LRM 13.2.4 r) 2. No, see LRM table 60 3. You can connect one sc_in to drive many sc_out, but not the other way round. See the description of sc_writer_policy at LRM 6.3 regards Alan Quote Link to comment Share on other sites More sharing options...
rahuljn Posted December 11, 2015 Author Report Share Posted December 11, 2015 Hi Alain I have a initiator module with tlm::tlm_initiator_socket<BUS_WIDTH,tlm::tlm_base_protocol_types,2> initiator_socket;and a target module with tlm::tlm_target_socket<BUS_WIDTH> target_socket1;tlm::tlm_target_socket<BUS_WIDTH> target_socket2; And in top, I have initiator_inst->initiator_socket.bind(target_inst->target_socket1);initiator_inst->initiator_socket.bind(target_inst->target_socket2); When I run this, it says Error: (E107) bind interface to port failed: interface already bound to port: port 'initiator.tlm_base_initiator_socket_0' (tlm_initiator_socket) But when I have a initiator module with tlm::tlm_initiator_socket<BUS_WIDTH> initiator_socket; and a target module with tlm::tlm_target_socket<BUS_WIDTH,tlm::tlm_base_protocol_types,2> target_socket; and in top I have tow instance of initiator and connected to target like initiator_inst1->initiator_socket.bind(target_inst->target_socket);initiator_inst2->initiator_socket.bind(target_inst->target_socket); It works fine. Why the Ist case above is not working ? Thanks RahulJn Quote Link to comment Share on other sites More sharing options...
rahuljn Posted December 21, 2015 Author Report Share Posted December 21, 2015 Hi Folks Any clue please ? Thanks Rahul 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.