好像还是不行,我写的程序其中有计算器的一个分支是这样:
s1:begin if (din==1'b1)
begin
Ns=cs;
if(cnt==5'b0)//第50行
cnt<=cnt+1;
else if(cnt==5'b00100)//52行
begin
Ns=s2;
cnt<=0;
end
else
begin
cnt<=cnt+1;
Ns=cs;
end
end
else
Ns=s2;
end
结果报了一大推没见过的错误:
error:HDLCompilers:52 - "C:/Xilinx92i/MYEXERCISE/DDR/statemachine.v" line 50 Illegal operand(s) of binary operator '=='Parsing C:/Xilinx92i/MYEXERCISE/DDR/statemachine.v: 0.03
ERROR:HDLCompilers:71 - "C:/Xilinx92i/MYEXERCISE/DDR/statemachine.v" line 50 Illegal condition expression in if statement
ERROR:HDLCompilers:106 - "C:/Xilinx92i/MYEXERCISE/DDR/statemachine.v" line 51 Illegal left hand side of nonblocking assignment
ERROR:HDLCompilers:52 - "C:/Xilinx92i/MYEXERCISE/DDR/statemachine.v" line 51 Illegal operand(s) of binary operator '+'
ERROR:HDLCompilers:107 - "C:/Xilinx92i/MYEXERCISE/DDR/statemachine.v" line 51 Illegal right hand side of nonblocking assignment
ERROR:HDLCompilers:52 - "C:/Xilinx92i/MYEXERCISE/DDR/statemachine.v" line 52 Illegal operand(s) of binary operator '=='
ERROR:HDLCompilers:71 - "C:/Xilinx92i/MYEXERCISE/DDR/statemachine.v" line 52 Illegal condition expression in if statement
ERROR:HDLCompilers:106 - "C:/Xilinx92i/MYEXERCISE/DDR/statemachine.v" line 55 Illegal left hand side of nonblocking assignment
ERROR:HDLCompilers:106 - "C:/Xilinx92i/MYEXERCISE/DDR/statemachine.v" line 59 Illegal left hand side of nonblocking assignment
ERROR:HDLCompilers:52 - "C:/Xilinx92i/MYEXERCISE/DDR/statemachine.v" line 59 Illegal operand(s) of binary operator '+'
ERROR:HDLCompilers:107 - "C:/Xilinx92i/MYEXERCISE/DDR/statemachine.v" line 59 Illegal right hand side of nonblocking assignment