Forum Discussion
Altera_Forum
Honored Contributor
13 years agoUse something like this instead.
Beware: I'm not sure I got the indexes order correct. generate
for(bytelane=0; bytelane < bena_width; bytelane++) begin : lpbl
always_ff @ (posedge clk) begin
if (wena && bena)
ram <= wdata;
q <= ram;
end
end
endgenerate