g33 Posted April 10, 2019 Report Share Posted April 10, 2019 I have two multipass through initiators bound to same target. Is there a way to know the id of calling initiator? Quote Link to comment Share on other sites More sharing options...
David Black Posted April 10, 2019 Report Share Posted April 10, 2019 Use the appropriate target convenience socket. Quote Link to comment Share on other sites More sharing options...
g33 Posted April 10, 2019 Author Report Share Posted April 10, 2019 I have a multipass through target with nb_btransport_fw registered. init1 (target) init2 (target) Something like this target.register_nb_transport_fw( this, &top::nb_transport_fw); tlm::tlm_sync_enum nb_transport_fw(int id, tlm::tlm_generic_payload& trans, tlm::tlm_phase& phase, sc_time& delay){ } does the id parameter identify the incoming initiators or is it the id of the target socket which means this is stuck at 0? Quote Link to comment Share on other sites More sharing options...
Bas Arts Posted April 11, 2019 Report Share Posted April 11, 2019 From the standard: "Tagged? Incoming interface method calls are tagged with an id to indicate the socket through which they arrived." Quote Link to comment Share on other sites More sharing options...
Eyck Posted April 29, 2019 Report Share Posted April 29, 2019 But since these are multi_passthru sockets the id indicates the number of the bound initiator socket (as the multi_passthru_target_socket can bind several sockets to one). BR 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.