I'm attempting to synthesize some VHDL that has many nested for loops whose bounds must change so I'm using integer variables as the bounds. The error I'm getting is:
ERROR:Xst:1549 - Range bound must be a constant.
ex: for i in 15 downto ground loop
for k in 0 to fin loop <<error here>>
...
end loop;
if(something) then fin := fin + 1;
end if;
end loop;
> Where fin is a variable integer and ground is a constant.
Is there any way to avoid this without covering every case with the use of constants?
ERROR:Xst:1549 - Range bound must be a constant.
ex: for i in 15 downto ground loop
for k in 0 to fin loop <<error here>>
...
end loop;
if(something) then fin := fin + 1;
end if;
end loop;
> Where fin is a variable integer and ground is a constant.
Is there any way to avoid this without covering every case with the use of constants?