I have a scenario where I have a model (initiator) with following ports
tlm::tlm_initiator_socket<32,tlm::tlm_base_protocol_types,0,SC_ZERO_OR_MORE_BOUND> Out;
and another model(target) with following ports
tlm::tlm_target_socket<32,tlm::tlm_base_protocol_types,1,SC_ZERO_OR_MORE_BOUND> In[2];
When I connect them as
initiator_inst->Out.bind(target_inst->In[0]);
initiator_inst->Out.bind(target_inst->In[1]);
I get the following error
Error: (E107) bind interface to port failed: interface already bound to port: port 'init_inst.