A
Andre Bonin
Guest
Hey all, I'me trying to convert a C algorithm to Verilog using Quartus
II Web edition.
The following for loop doesn't compile because it says its not of
constant loop time.
What i really need is to be able to calculate the loop time "on the fly".
Can VHDL or Verilog do this? or is this a limitation?
Thanks
Error: Verilog HDL For Statement error at XXXXXXXX.v(49): must use only
constant expressions in terminating conditions
---- Error at while loop -
integer X = 0;
always
begin
while( X < 30 )
begin
X = X + 1;
end
end
II Web edition.
The following for loop doesn't compile because it says its not of
constant loop time.
What i really need is to be able to calculate the loop time "on the fly".
Can VHDL or Verilog do this? or is this a limitation?
Thanks
Error: Verilog HDL For Statement error at XXXXXXXX.v(49): must use only
constant expressions in terminating conditions
---- Error at while loop -
integer X = 0;
always
begin
while( X < 30 )
begin
X = X + 1;
end
end