rahuljn Posted July 22, 2014 Report Share Posted July 22, 2014 Hi experts I want to create some custom payload in TLM2 but what I see the following definition of class tlm_bw_transport_if template <typename TYPES = tlm_base_protocol_types>class tlm_bw_transport_if : public virtual tlm_bw_nonblocking_transport_if<typename TYPES::tlm_payload_type, typename TYPES::tlm_phase_type> , public virtual tlm_bw_direct_mem_if{}; So it seems whatever TYPE I create, it must have two sybtypes namely tlm_payload_type and tlm_phase_type struct custom_protocol_types{ typedef generic_payload tlm_payload_type; typedef generic_phase tlm_phase_type;}; Is it true ? Quote Link to comment Share on other sites More sharing options...
Philipp A Hartmann Posted July 22, 2014 Report Share Posted July 22, 2014 Yes. See http://forums.accellera.org/topic/1555-using-tlm2-but-not-generic-payload/ for a previous discussion. Greetings from Oldenburg, Philipp 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.