Jump to content

TLM Sockets


Recommended Posts

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

Link to comment
Share on other sites

  • 8 months later...

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

 

Link to comment
Share on other sites

  • 2 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...