romstyle="MLAB" attribute is ignored
Looking how to infer a small ROM into MLAB. When using the following code, the resulting altsyncram still reports RAM_BLOCK_TYPE set to AUTO instead of MLAB. I use the following code, tries romstyle on q and rom with same results, AUTO resulting into M10K being used. All assignments are default.
// ROM Test
// Quartus Prime Verilog Template
// Single Port ROM
// Declare the ROM variable
(* romstyle="mlab"*) reg [DATA_WIDTH-1:0] rom[2**ADDR_WIDTH-1:0]; /* */
reg [(ADDR_WIDTH-1):0] addr_reg;
initial
begin
$readmemb("baseline.txt", rom);
end
// Initialize the ROM with $readmemb. Put the memory contents
// in the file single_port_rom_init.txt. Without this file,
// this design will not compile.
// See Verilog LRM 1364-2001 Section 17.2.8 for details on the
// format of this file, or see the "Using $readmemb and $readmemh"
// template later in this section.
always @ (posedge clk_50)
begin
addr_reg <= addr;
q <= rom[addr_reg];
end