R
rekz
Guest
Here's part of my switch statement:
5'b01011: // COUNT LEADING ZEROES
begin
Result <= 0;
for (i = 31; i >= 0; i = i - 1) begin
if(Reg1 == 0)
Result <= Result + 1;
else
break;
end
end
when I tried checking the syntax everything checks fine, however when
running the simulation I get the following:
ERROR:HDLCompiler:69 - "G:/Users/SingleCycleDatapath/ALU.v" Line 75:
<break> is not declared.
ERROR:Simulator:778 - Static elaboration of top level Verilog design
unit(s) in library work failed
why is this?
5'b01011: // COUNT LEADING ZEROES
begin
Result <= 0;
for (i = 31; i >= 0; i = i - 1) begin
if(Reg1 == 0)
Result <= Result + 1;
else
break;
end
end
when I tried checking the syntax everything checks fine, however when
running the simulation I get the following:
ERROR:HDLCompiler:69 - "G:/Users/SingleCycleDatapath/ALU.v" Line 75:
<break> is not declared.
ERROR:Simulator:778 - Static elaboration of top level Verilog design
unit(s) in library work failed
why is this?