Forum Discussion
Altera_Forum
Honored Contributor
15 years agono no i did read it.. i think your examples were great but it's just that I'm new and I don't know much about vhdl. I would like to use this code posted by you:
LIBRARY ieee; USE ieee.std_logic_1164.all; USE ieee.std_logic_arith.all; USE ieee.math_real.all; TYPE ROM IS ARRAY(0 TO 511) OF UNSIGNED(8 DOWNTO 0); FUNCTION INIT_ROM RETURN ROM IS VARIABLE romvar: ROM; begin --for .. loop -- romvar() := --end loop return romvar; end; CONSTANT rom1: ROM := INIT_ROM; And from what I understand I have to use some sort of generated values for the for loop. can you please help me, I would really appreciate it.