You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Define a group of FIFOs, std::array<sc_core::sc_fifostd::uint64_t, 6> mCmdFifo.", Unable to change FIFO init, So I suggest adding methods to set FIFO depth and name to sc_fifo class;
The text was updated successfully, but these errors were encountered:
Calling the default constructor of SystemC objects is not recommended, as you lack a meaningful name for the objects.
I would recommend to use sc_vector instead of std::array:
Alternatively, you can use the new emplace_back function in IEEE 1666-2023 (aka SystemC 3.0) to construct individual instances explicitly (instead of calling init with a lambda):
for(int i = 0; i < 6; ++i)
mCmdFifo.emplace_back(fifo_size); // name will be implicitly passed as first parameter
"Define a group of FIFOs, std::array<sc_core::sc_fifostd::uint64_t, 6> mCmdFifo.", Unable to change FIFO init, So I suggest adding methods to set FIFO depth and name to sc_fifo class;
The text was updated successfully, but these errors were encountered: