Forum Discussion
Altera_Forum
Honored Contributor
15 years agoLoop index overflow problem
Hi there, I've wrote a little VHDL program in Quartus II. I'd like to separate one big std_logic_vector into small fix-length std_logic_vectors and the compile told me that the index is out...
Altera_Forum
Honored Contributor
15 years agoyes, and just like in the C, you have the extra p_count := p_count+i_width which pushes p_count to 512 as the loop exits.
you have exactly the same thing with j. It ends the loop on 512.