在线咨询 切换到宽版
eetop公众号 创芯大讲堂 创芯人才网

 找回密码
 注册

手机号码,快捷登录

手机号码,快捷登录

搜帖子
查看: 2152|回复: 1

请高手指教

[复制链接]
发表于 2005-7-21 14:53:24 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
向高手请教
input clock,reset,overheat_in,pushbutton_in;
output overheat_out;
reg overheat_out;
reg pushbutton_sync1,pushbutton_sync2;
reg overheat_in_sync1,overheat_sync2;
always @(posedge clock or posedge reset)
begin
if(reset)
     begin
    pushbutton_sync1<=1'b0;
    pushbutton_sync2<=1'b0;
    overheat_in_sync1<=1'b0;
    overheat_in_sync2<=1'b0;
    end
else begin
    pushbutton_sync1<=pushbutton_in;
    pushbutton_sync2<=pushbutton_sync1;
    overheat_in_sync1<=overheat_in;  
    overheat_in_sync2<=overheat_sync1;
     end
end
always @(posedge clock or posedge reset)
begin
    if(reset)
        overheat_out<=1'b0;
else if(overheat_in_sync2 && pushbutton_sysnc2)  
        overheat_out<=1'b1;
end
endmodule
这里面第一个always有什么作用,没有它也是正确的啊
 楼主| 发表于 2005-7-21 15:07:28 | 显示全部楼层

请高手指教

大家快来看看哪
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条


手机版| 小黑屋| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2025-8-14 18:31 , Processed in 0.014678 second(s), 7 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表