amitk3553 Posted July 31, 2013 Report Share Posted July 31, 2013 Hello guys, Could somebody give me the brief idea of below line in systemC/TLM: spi_model_socket.register_b_transport(this, &spi_model::function_name); Thanks cam Annossyenudge 1 Quote Link to comment Share on other sites More sharing options...
apfitch Posted July 31, 2013 Report Share Posted July 31, 2013 It's using the simple sockets (in the TLM utilities). The simple sockets allow you to register functions to be used. In the example above, the function "function_name" inside the class "spi_model" will be called when the user calls b_transport via the socket "spi_model_socket". The simple sockets are described in the 1666-2011 LRM. They're supposed to be easier to use than standard sockets, regards Alan amitk3553 1 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.