Forum Discussion
Altera_Forum
Honored Contributor
9 years agoVerilog is *not* a procedural language. For loops don't do things one by one, they infer hardware for each instance of the loop - so that will not do what you want.
You need to create a counter (always @ ... counter <= counter+ 1), and use that to read from your fifo. EDIT: Never mind, that was C code, I misread. Ignore the above.