pulzar Posted January 25, 2012 Report Share Posted January 25, 2012 I'd like to perform an action every time something it put or removed into a uvm_tlm_fifo inside my component. Is there a way to register a "pre_put" or "post_put" or some other callback to accomplish this? I can't find anything like that in the documentation, which makes me believe that I would have to extend the class and implement that myself, right? Quote Link to comment Share on other sites More sharing options...
dave_59 Posted January 25, 2012 Report Share Posted January 25, 2012 With TLM. you use analysis ports that implement a write method. There is a get_ap and put_ap that comes with the tlm_fifo that you can connect to. Quote Link to comment Share on other sites More sharing options...
pulzar Posted January 25, 2012 Author Report Share Posted January 25, 2012 With TLM. you use analysis ports that implement a write method. There is a get_ap and put_ap that comes with the tlm_fifo that you can connect to. Perfect! Totally missed it in the docs... Thanks, I knew there had to be something in there. 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.