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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×