Forum Discussion
Altera_Forum
Honored Contributor
13 years agowith Altera RAMs, you have to ensure the read address is registered before it accesses the data in the ram (or in your case, the array). I notice you have a lot of variables, and you say you are very new to VHDL. I would recommend you not use variables for now, and make everything use a signal. You also need to make sure you are following the templates for the rams; I suggest you read the altera coding guidelines:
http://www.altera.com/literature/hb/qts/qts_qii51007.pdf Also - have a written a testbench for this code? have you fully tested it?