[讨论] 此段代码有什么语法错误么?

逍遥   2009-12-9 16:44 楼主
[email=always@(negedge]always@(negedge[/email] RESET negedge CLK2M)
if(RESET==0)
begin
CNT1<=0;
else if (V_GENIN == 11)
CNT1<=0;
if (V_GENIN == 01)
CNT1<=CNT1^1;
else
CNT1<=0;
end

回复评论 (2)

[email=always@(negedge]always@(negedge[/email] RESET negedge CLK2M)
if(RESET==0)
begin
CNT1<=0;
else if (V_GENIN == 11)
CNT1<=0;
      else if (V_GENIN == 01)
CNT1<=CNT1^1;
else
CNT1<=0;
end
点赞  2009-12-9 16:46

or

[email=always@(negedge]always@(negedge[/email] RESET or negedge CLK2M)
  begin
if(RESET==0)
CNT1<=0;
   else if (V_GENIN == 11)
CNT1<=0;
   else if (V_GENIN == 01)
CNT1<=CNT1^1;
   else
CNT1<=0;
  end
点赞  2009-12-9 16:47
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复