Altera_Forum
Honored Contributor
14 years agoWhile loop error
I am writing some VHDL code that will take an integer and do some calculations and caonditional operations, and I keep getting this error:
Error (10536): VHDL Loop statement error : Loop must terminate within 10,000 iterations Here is my code below...the error refers to the WHILE synchro_gear <= 16383 LOOP. synchro_gear <= gear_calc*36; IF synchro_gear < 16383 THEN Synchro_36 <= synchro_gear; ELSIF synchro_gear >=16383 THEN i <= 0; WHILE synchro_gear >= 16383 LOOP i <= i + 1; synchro_gear <= synchro_gear - 16383; END LOOP; WHILE i > 0 LOOP full_range <= 0; j <= 0; FOR j IN 0 to 16383 LOOP Synchro_36 <= full_range; full_range <= j + 1; END LOOP; i <= i - 1; END LOOP; Synchro_36 <= synchro_gear; END IF; Please help me figure this one out. Thanks