Genov Posted June 1, 2018 Report Share Posted June 1, 2018 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) Quote Link to comment Share on other sites More sharing options...
Philipp A Hartmann Posted June 1, 2018 Report Share Posted June 1, 2018 You can have a look at examples/tlm/common/include/models in the Accellera proof-of-concept implementation for an example interconnect model. Hope that helps, Philipp Quote Link to comment Share on other sites More sharing options...
Genov Posted June 1, 2018 Author Report Share Posted June 1, 2018 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..... Quote Link to comment Share on other sites More sharing options...
Eyck Posted June 1, 2018 Report Share Posted June 1, 2018 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 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.