Forum Discussion
Altera_Forum
Honored Contributor
7 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?