Forum Discussion
Altera_Forum
Honored Contributor
10 years agoYou can always write Verilog to open the MIF file and parse it, extract the data and store it into the memory area used by the altsyncram or an inferred RAM/ROM. The same is possible using VPI/PLI. There might be code for this available somewhere already.
However, the above is some amount of work. Why don't you use your editor and copy the MIF file into a different file and remove all but the binary digits. Or you can just extract the binary part using sed or similar:sed -n 's/.*:*\(*\);.*/\1/p' data.mif The best and most common solution is to modify the program which generates the MIF file to generate a binary or hex ascii file as well. This requires the source of the generating program of course.