Altera_Forum
Honored Contributor
11 years agoVerilog ROM code is not inferred as ROM block!!
I have written a verilog code for a ROM:
module sync_rom (clock, address, data_out); input clock; input [3:0] address; output [31:0] data_out; reg [31:0] data_out; always @ (posedge clock) begin case (address) ///// assign values to data_out // 0: data_out = 32'haf123412; endcase end endmodule I have also tried to add /* romstyle = "M9K" */ but when I synthesize my design the number of block memory bits is zero!! and the registers are used!! How can I force the Quartus to synthesize my code as a ROM 16 x 32-bit. I have to mention that I have changed the settings for Synthesis and Analysis to recognize the ROM and RAM of any size!