求问大神,这个error10200是什么错误?
quartus吧
全部回复
仅看楼主
level 1
生卡佳 楼主
Error (10200): Verilog HDL Conditional Statement error at try1.v(146): cannot match operand(s) in the condition to the corresponding edges in the enclosing event control of the always construct
2017年05月29日 04点05分 1
level 1
生卡佳 楼主
always @(posedge clk or negedge rst)
begin
if(error11>32'b00000001010000000000000000000000) //>20
begin
error1 <= 32'b00000001010000000000000000000000; //对输出进行限幅20
end
else
if(error11<32'b10000001010000000000000000000000) //<-20
begin
error1 <= 32'b10000001010000000000000000000000; //对输出进行限幅-20
end
else
begin
error1<=error11;
end
end
2017年05月29日 04点05分 2
level 1
1.rst没有写,if(!rst)
2.信号命名没有含义,可读性差。
3.不要用二进制,尤其这么大的位宽,容易出错也不好排查。建议用32'h
2017年07月28日 14点07分 3
1