Forum Discussion
Altera_Forum
Honored Contributor
7 years agoUsually when you get an unexplainable syntax error, there is a problem with the code just before it.
SystemVerilog added the ability to put the genvar inside the for loop. Verilog-2005 made the generate/endgenerate keywords optional. The compiler should be able to tell from the context whether the for-loop is a generate-for or a procedural-for. I would try removing them and seeing if you get a different error message.