Forum Discussion
Altera_Forum
Honored Contributor
8 years agoEven if it was possible, there are other issues with the code. For a start, this seems like a terribly complicated way to initialise the ram. Whats wrong with just reading the values straight to a std_logic_vector? non-standard std_logic_textio package has the hread function to do just that. (in VHDL 2008, this is included in std_logic_1164 package).
Then there is the problem that most implementations limit integer to 2**31-1. So integer cannot be given a value of 2**32. Also, Strings are usually declared (1 to N) by convention, rather than (N downto 1).