Randy Suen Posted December 14, 2022 Report Share Posted December 14, 2022 Hi everyone, As we know the master (initiator) and slave (target) interfaces of a bus usually support "outstanding". In my bus model, I use buffers (std::vector<*tlm_generic_payload>) to store outstanding requests. But I'm not sure this is a good choice. Is it possible to describe "outstanding" just using TLM without such explict buffers? Quote Link to comment Share on other sites More sharing options...
David Black Posted January 2, 2023 Report Share Posted January 2, 2023 If you are using TLM-2, you should be only buffering the references and not the data itself. Backpressure can be modeled using the TLM_ACCEPT mechanism. If your bus allows more than one outstanding request, you will need some form of storage for those references, and std::vector should be fine. 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.