Forum Discussion
Altera_Forum
Honored Contributor
13 years agoReading data from a ROM
I have created a ROM-1port via the MegaWizard which also has a .mif file and in my top level entity I have to instantiate that rom, but I don't know how to access the data from it. My .mif file...
Altera_Forum
Honored Contributor
13 years agoIt appears to me that you simply need to add some addressing logic to your RAM. This could easily be done with a state machine, where you use a variable counter that gets incremented every other state, and the interposing states is where you read the output of your RAM. This works well with single clock synchronous RAM's. I've done this before and had good success. You just need a trigger event to tell the state machine to start; this could be in your FPGA fabric somewhere or even an external switch to tell the memory controller to execute. -James