Jump to content

GUEST

Members
  • Content Count

    4
  • Joined

  • Last visited

About GUEST

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @David BlackThank you for your answer! I understood the problem. can you help me to understand this code? I saw in you wrote here : https://forums.accellera.org/topic/10-error-e113-insert-primitive-channel-failed-simulation-running/ "Any of your module has attempted to create an instance of a primitive channel (sc_signal, sc_fifo, etc) after the start of simulation.In systemC primitive channels can only be created before the start of simulation ." So how can it be that the given code allocates memory to FIFO in main?
  2. I mean that the maximum legal size of each FIFO in the array is a dynamically changing input per simulation - I get the inputs (sizes) once during simulation , set the FIFOS once and don't change them again during simulation. (I need to model a structure that is managed as FIFO so sc_fifo gives me all the features I need)
  3. I need to create an array of FIFOS. The size of each FIFO is an input and is different from one to another
  4. Hi, I want to create an array of pointers to sc_fifo <unsigned int> (I get the size of each fifo during the simulation). I tried to write: sc_vector < sc_fifo <unsigned int> *> FIFOS; in the ctor: FIFOS.init(5); and in another function make a dynamic memory allocation to each sc_fifo in the vector, but it did not work, how can I write this? Thanks
×
×
  • Create New...