I am trying to read a .mif
file and this is the error I am getting -
Error (10170): Verilog HDL syntax error at sine3_test1.MIF near text: p. Check for and fix any syntax errors that appear immediately before or at the specified keyword. The Intel FPGA Knowledge Database contains many articles with specific details on how to resolve this error. Visit the Knowledge Database at https://www.altera.com/support/support-resources/knowledge-base/search.html and search for this specific error message number.
The error seems to be in first line. My MIF file has 8-bit data width and 256 words depth.
memory address = UNS (unisgned decimal)
memory data = hexadecimal
My source code is the following:
reg [7:0]memory[0:255];
begin
$readmemh("sine3_test1.MIF",memory);
end
I removed white spaces and added a few missing memory block numbers. Currently, I have it stored in my project folder (although not part of the Quartus project).