Altera_Forum
Honored Contributor
8 years agoSystem Verilog 2009 Generate Loop
How can I get this piece of code to compile?
This works fine in other synthesis tools, simulation etc. Just trying to map it to an FPGA. In Quartus 17.1 and 18.0 I get this error:
Error(13411): Verilog HDL syntax error at blah.sv(329) near text generate
Error(13224): Verilog HDL or VHDL error at blah.sv(329): SystemVerilog 2009 keyword generate used in incorrect context
generate
for (genvar i=0; i<N; i++)
for (genvar j=0; j<10; j++)
assign status = status_ff];
endgenerate
Any help will be appreciated. Thanks!!