在做包文练习时遇到的错误:
Error (10200): Verilog HDL Conditional Statement error at baowen3.v(130): cannot match operand(s) in the condition to the corresponding edges in the enclosing event control of the always construct
错误的代码段出现在
//dout_err
always @(posedge clk or negedge rst_n)begin
if(rst_n==1'b0)begin
dout_err <= 0;
end
if(din_vld == 1'b1)begin//错误出现在这里
if(flag==1 && din_sop==1 && din_eop==1)begin
dout_err <= 1;