Jump to content
Genov

Exemple Interconnect using tlm_init/targ_sockets

Recommended Posts

Can someone give a simple exemple of an Interconnect using tlm_initiator_sockets and tlm_target_sockets, please? ( with a dummy implementation of the two transport methods blocking and non-blocking)

 

Share this post


Link to post
Share on other sites

Thanks, but in this example they use a convenience sockets and I can`t use that.... In my project I need to have an Interconnect that contains a Child module ( so I have an hierarchical binding that is not supported by the (tagged) sockets ). So I need an Interconnect that support hierarchical binding.

The tlm_*_sockets don`t have a registers, so I`m not really sure how to implement them.....

Share this post


Link to post
Share on other sites

You might have a look at https://github.com/Minres/SystemC-Components/blob/master/incl/scc/router.h.

This one uses mixins to enhance the functionality of tlm::tlm_initiator_socket/tlm::tlm_target_socket but basically implementes what you are describing. An example how to use it can be found here: https://github.com/Minres/SystemC-Components-Test/blob/master/examples/simple_system/simple_system.cpp

Best regards

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