Beginner_KOR Posted November 8, 2020 Report Share Posted November 8, 2020 Is there anybody to understand that I can use sc_fifo with socket? I use to send transaction via socket from module A to B, and inside module B, I hope to use fifo feature to send to module C. I'm not expert of systemC so would you let me know if I can do? If there is any good example, let me know. Thanks. Quote Link to comment Share on other sites More sharing options...
Eyck Posted November 8, 2020 Report Share Posted November 8, 2020 Actually you cannot use sc_core::sc_fifo for this as it takes ownership of the data which doesn't play well with the concepts of the generic payload. But there are event queues in tlm_utils for this (tlm_utils::peq_with_get and tlm_utils::peq_with_cb_and_phase). Beginner_KOR 1 Quote Link to comment Share on other sites More sharing options...
Beginner_KOR Posted November 15, 2020 Author Report Share Posted November 15, 2020 Thanks Eyck, But can i ask one more thing? When I try to use sc_fifo first, there is no way to use multiple depth of FIFO. Is there any possible to use 8 maximum sc_fifo depth variable? When I use like below, argument 8 is on readline. sc_fifo<int> my_fifo(8); Thanks. Quote Link to comment Share on other sites More sharing options...
Eyck Posted November 20, 2020 Report Share Posted November 20, 2020 I don't know what you mean with being 'on readline'. With sc_fifo<int> my_fifo{8} you define a fifo with max. capacity of 8 elements. It is not a pipeline with a fixed depth.... 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.