ankushKumar Posted July 15, 2015 Report Share Posted July 15, 2015 Hello all, i am using tlm socket and declared as following tlm_utils::simple_initiator_socket_tagged<current_model> initiator_socket[2]; // in construcot initiator_socket[0] = new tlm_utils::simple_initiator_socket_tagged<current_model>("socket0"); initiator_socket[1] = new tlm_utils::simple_initiator_socket_tagged<current_model>("socket1"); error: no match for ‘operator=’ (operand types are ‘tlm_utils::simple_initiator_socket_tagged<current_model<unsigned int, 32u>, 32u, tlm::tlm_base_protocol_types>’ and ‘tlm_utils::simple_initiator_socket_tagged<current_model<unsigned int, 32u>, 32u, tlm::tlm_base_protocol_types>*’)initiator_socket[0] = new tlm_utils::simple_initiator_socket_tagged<current_model>(txt); Quote Link to comment Share on other sites More sharing options...
ralph.goergen Posted July 15, 2015 Report Share Posted July 15, 2015 Hi. A) Try not to use arrays of SystemC objects. Most of them cannot be copied or assigned. Use sc_vector instead (Section 8.5 in SystemC LRM IEEE 1666-2011). You have an array of sockets. Each element is a socket object. The return value of 'new' is a pointer to a socket. You cannot assign that pointer to an object. Greetings Ralph 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.