g_as Posted April 3, 2019 Report Posted April 3, 2019 Dear I need to send an array of over a simple tlm 2.0 FIFO. I can send/receive a single entry per time. But how can I ff.put() all the array at one time? Regards, Quote
Philipp A Hartmann Posted April 3, 2019 Report Posted April 3, 2019 Use an std::vector or std::array as value type in your FIFO instead of a C-style array. Quote
g_as Posted April 5, 2019 Author Report Posted April 5, 2019 tlm::tlm_fifo< std::array > ff; gives me invalid template Quote
Philipp A Hartmann Posted April 5, 2019 Report Posted April 5, 2019 These classes are templates themselves. You need to pass the type of the values as parameter, for example tlm_fifo< std::array<int,4> > // a FIFO sending 4-element arrays of integers /Philipp Quote
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.