Altera_Forum
Honored Contributor
15 years agoarray problem
Hello I'm trying to migrate from quartus 5.1 to 9.0 sp2. The problem I have is that 9.0 generates much more elements (11,000 instead of 5,000) than 5.1. And it all happens because of this code.
usb_data : PROCESS(ds) is TYPE RAM is array (0 to 255) of unsigned(15 downto 0); variable config :RAM; variable ram_index :integer range 0 to 255; -- index into RAM array BEGIN if(ds'EVENT AND ds ='1') then if(usb_rnw = '1') then -- read from RAM output to USB ram_index := loc_addr; usb_dout <= config(ram_index); else -- in from USB write to RAM ram_index := loc_addr; config(ram_index) := usb_din; end if; end if; -- main ds event end process usb_data; I guess it is something to do with arrays. Has anyone any experience with this issue?