Altera_Forum
Honored Contributor
10 years agoreadmemb / Quartus 14.1 / MIF files?
Hello - I have what I fear is a dumb question, but I can't seem to figure out where it's gone wrong. I'm trying to implement the often re-created VGA text design. I grabbed a MIF file of a font set from an example, and tried to implement it using the Single Port ROM or Single Port RAM templates in Quartus (tried both). While the MIF file seems to match the described syntax in the help file from Quartus - and if I edit it in Quartus, it gives me a nicely formatted grid of sane data that looks like it's interpreting it fine.
However, when I do the $readmemb() to load the data, when I go to elaborate I get a syntax error on the first char of the first line (DEPTH = 2048;" Error (10079): Verilog HDL syntax error at sysfont.mif(1): illegal character in binary number Error (10170): Verilog HDL syntax error at sysfont.mif(1) near text D Error (12152): Can't elaborate user hierarchy "single_port_ram_with_init:char_ram" Error: Quartus II 64-Bit Analysis & Synthesis was unsuccessful. 3 errors, 11 warnings Error: Peak virtual memory: 725 megabytes Error: Processing ended: Wed Apr 08 10:57:01 2015 Error: Elapsed time: 00:00:12 Error: Total CPU time (on all processors): 00:00:28 I can't quite figure out how it's gone wrong, since I'm using pretty much a text book implementation of the template straight from the Quartus docs. I suspected the MIF file syntax had changed, but their description of the MIF file seems to match the file spot on. If I look at file properties in the files tab, it tells me it's a memory initialization file. I'm left scratching my head here and hoping someone can point out the error of my ways. Cheers