Forum Discussion
Altera_Forum
Honored Contributor
13 years agoprocesses: while loop does not work, for loop does work. Why?
I want to write this code for a basic synchronous counter more efficiently... u_count: process(rst_i, clk_i) -- generated on rising edge variable i: integer :=1; begin if rst_i = '1' ...
Altera_Forum
Honored Contributor
13 years agoI think anyone could in a minute implement a while loop in a process and not be able to compile it, so posting my whole design obscures the issue, as it definitely does in all other related forum threads I've seen.
I respect Altera's compiler overall but WHILE fails and FOR works. That's all designer's need to know.