Forum Discussion
Altera_Forum
Honored Contributor
12 years ago1. Ifs and elseifs should be inside an always or initial block.
2. No, loops are not used like this. Loops unroll into parallel logic, and iteration like that would be more suitable over several clocks.