Nj kr Posted January 25, 2022 Report Share Posted January 25, 2022 Is it possible to execute sc_fifo in sc_method? Quote Link to comment Share on other sites More sharing options...
Andy Goodrich Posted January 25, 2022 Report Share Posted January 25, 2022 Yes, if you use the non-blocking interface, nb_read and nb_write. Note that your method will need a clock, or some other means of being awakened, e.g., the data_written event of sc_fifo_in<W>. Included is a quick example that uses a method in the design under test, and a thread in the test bench. base.cpp 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.