R
rekz
Guest
The problem is that with the following for loop I can't run the
simulation
for (i = 31; i >= 0; i = i - 1) begin
if(Reg1 == 0 && flag == 1)
Result <= Result + 1;
else
flag <= 0;
end
however if I change i >= 0 to i > 0 it works fine... why is this?
simulation
for (i = 31; i >= 0; i = i - 1) begin
if(Reg1 == 0 && flag == 1)
Result <= Result + 1;
else
flag <= 0;
end
however if I change i >= 0 to i > 0 it works fine... why is this?