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 ago --- Quote Start --- very strange... --- Quote End --- The code does exactly what you have written. In the last iteration, it tries to decrement p_count from 7 to -1, although everything is finished. Instead of decrementing a variable, you may want to calculate the p_count value at the entry of each iteration.