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 agoWhat you are attempting I have done in the past to store hardware versions and software build numbers but I had Nios II reading out the values.
Perhaps you can skip using the ROM and just 'include a value defined in a verilog include file that is generated by your build system. In the include file you could just have something like 'define VERSION_NUMBER <machine generated version number> and in your hardware design refer to that value.