找回密码
 注册
搜索
查看: 892|回复: 0

[讨论] 请问高手reset signal should not be used as set啥意思??

[复制链接]
发表于 2008-5-8 21:40:44 | 显示全部楼层 |阅读模式
请问高手reset signal should not be used as set啥意思

如按照下面的写法检查工具会提示上面的错误



always @(negedge clk)begin
   if(!reset)begin
     clk1<=1;
     clk2<=1;
    end
   else begin
     clk1<=clkout2;
     clk2<=clk1;
    end
end

always@(posedge clk)begin
   if(!reset)begin
     dataout<=0;
     dataoutemp<=0;
    end
   else if(clkout2&(clk1^clk2))begin  
     dataout<=dataoutemp;
     dataoutemp<=dataoutemp+1;
    end
  end
[em07]
高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-11-24 07:08 , Processed in 0.056113 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表