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 agoThe way to start thinking about this - stop thinking about loops and code constructs and think about what the underlying circuit should look like. VHDL stands for VHSIC Hardware Description Language. The key word there is description as VHDL is used for describing a circuit. Without understanding the circuit, how do you expect to write the VHDL?
Matlab -> VHDL is not a straightforward conversion.