Forum Discussion
Altera_Forum
Honored Contributor
11 years agoIf this is your 1st program using then the generate for loop wouldn't be the 1st thing to do. I suggest try blinking a led- its challenging enough for 1st time.
Anyhow the code is not following the correct syntax and from the looks of it you do not understand what the for loop does in verilog. It is not like C++. It more like a way to instantiate code without having to type alot. Verilog just unrolls the loop and executes everything in parallel. Here is a link /w example of the generate for loop. http://www.asic-world.com/verilog/verilog2k2.html