Forum Discussion
DKirv
New Contributor
6 years agoHere is an example of my code for a larger array.
Where are the elements in the array stored?
type t_Memory is array (0 to 1023) of std_logic_vector(31 downto 0);
signal my_array : t_Memory;
signal my_index : integer range 0 to 1023 := 0;
signal my_input : std_logic_vector(31 downto 0) ;
if flag = 3 then
my_index <= my_index + 1;
my_array(my_index) <= my_input;
end if;
if my_index = 1022 then
flag <= 4;