Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- here is your problem: signal array_index: std_logic_vector (1 to 0); it is a null array, as 1 is higher than 0. I think you meant (1 downto 0) --- Quote End --- tricky, thanks for your help - you are absolutely right. 1) I changed:
signal array_index: std_logic_vector (1 to 0); To:
signal array_index: std_logic_vector (1 downto 0); 2) Similar mistake - I changed:
type array_type is array (3 to 0) of std_logic_vector (9 downto 0); To:
type array_type is array (3 downto 0) of std_logic_vector (9 downto 0); And my program was compiled in Quartus II. --- Quote Start --- Another point - why is array index a std_logic_vector? save your fingers from RSI, and make it: signal array_index : integer range 0 to 3; --- Quote End --- Thank you for your advice - i will be use integer type for array index in future projects. --- Problem was solved :-P