Forum Discussion
Altera_Forum
Honored Contributor
14 years agoVerilog Synthesis Q
Am bumping into a synthesis problem inside of an always construct. Simplified code is reg true_or_false[0:9999]; reg a; always (negedge clk) begin if (a <5000) true_or_false...
Altera_Forum
Honored Contributor
14 years agoWhat FvM means is that you need to write your code while meeting Quartus templates for inferring RAM for your FPGA.
They are documented in the HDL coding guidelines handbook, but it's something like this
// 1x128k memory
reg memory;
always @ (posedge clk) begin
if (write)
memory <= data_in;
data_out <= memory;
end If your Verilog code describes something Quartus doesn't know or cannot map to RAM (M9K) blocks, Quartus will try to map it to registers. Since the FPGA in question only has ~115k registers, they're not enough to implement your 128 kbit table, plus all the remaining logic.