Altera_Forum
Honored Contributor
9 years agoArrays - detect signal changes and simulate in Modelsim
I have two problems with a 1-d array I'm using. The array's cells are 64 bit vectors.
Declaration:package my_pack is
type commands_array is array (natural range <>) of std_logic_vector(63 downto 0);
end package; The same type of array is an output of one module and an input of another. In one of the modules the array port is this: packets_in : in commands_array(0 to 17); 1. I'm also trying to simulate this using Modelsim, but am getting the following error: too many indices (2) for array type work.my_pack.commands_array (dimensionality 1). This is the code line with trouble: packets_in : IN commands_array(0 TO 17 , 63 DOWNTO 0); 2. I'm trying to use SignalTap to view the arrays but they are always 0. Even when my code worked (though not in the way I wanted) I saw that my outputs, the array's cells, are correct, so the problem is not with the arrays. Is there anything I can do about that? Thank you! edit: I deleted the first question because I succeeded (almost). I am more interested in the other two. I still have some problems in my design and getting to simulate it would help a lot.