Forum Discussion
Altera_Forum
Honored Contributor
14 years agoFor loop-VHDL
How do i write for i= 0:63 :360 (matlab code) in VHDL .searched for long about for loops but couldn't see any instance of the above form. Is defining an array and writing "for in A"the only way??
Altera_Forum
Honored Contributor
14 years agoFor synthesis, for loops will unroll into parallel hardware. and if you need a while loop you're doing something wrong and clearly dont understand the circuit.
I suggest drawing the circuit out (on paper, or MS visio or similar) before writing any VHDL.