Jump to content

Recommended Posts

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 ?

Share this post


Link to post
Share on other sites

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...