Forum Discussion
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:
Err...
Altera_Forum
Honored Contributor
8 years agoI don't think I've seen the genvar commands inside the loop before. Try putting genvar i and genvar j above the generate keyword. You might also want to try inserting begin/end around the inner for loop. And how and where is N defined?
Also, why are you using generate for simple assignments? Can't you just use a normal for loop?