ashley Posted March 15, 2015 Report Share Posted March 15, 2015 Hi, recently I tried to conncted socket between tlm initiator socket to simple initiator socket, my code is shown as below: (actually I modify from example "at_4_pahse") In select_initiator.h, I declare tlm::tlm_initiator_socket<> initiator_socket; and in.cpp : initiator_socket(*this) ; (bind to interface) and in initiator_top.h, I declare tlm_utils::simple_initiator_socket<initiator_top> initiator_socket; select_initiator m_initiator; How do I connect tlm_initiator_socket to simple_initiator_socket in initiator_top.cpp?? I tried to write m_initiator.initiator_socket(initiator_socket); but it shows "somplete binding failed" thanks in advanced! Quote Link to comment Share on other sites More sharing options...
David Black Posted March 16, 2015 Report Share Posted March 16, 2015 initiator_socket's connect to target_socket's when traversing the hierarchy horizontally. initiator_socket's can also connect to other initiator_socket's if the directing is upwards and out of a hierarchy. target sockets can be hierarchically connected in a downward manner. 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.