Forum Discussion
Altera_Forum
Honored Contributor
16 years agofor loop
Hello there, I have a question, i have a std_logic_vector(20 downto 0) and i want to take the value of this vector to build a for-loop. for example the std_logic_vector looks like that...
Altera_Forum
Honored Contributor
16 years agofor loop isn't quite the same as in the C/software world.
what you need to do is something like a mux which has your X"80008000" value on one input and the signal which will have the following values on the other input. a counter will count up to 5 then using a comparator will switch between the two mux inputs.