集成电路技术分享

 找回密码
 我要注册

QQ登录

只需一步,快速开始

搜索
查看: 1298|回复: 0

频率计信号控制源程序

[复制链接]
weibode01 发表于 2010-11-9 15:08:07 | 显示全部楼层 |阅读模式
频率计信号控制源程序
module t_cont(clk_1hz,en,set,clr);
input clk_1hz;
output en,set,clr;
reg en;
wire set,clr;
reg en_temp;
always @(posedge clk_1hz)
en<=!en;
always @(negedge clk_1hz)
en_temp<=en;
assign set=!en & en_temp;
assign clr=!(en|en_temp);
endmodule
您需要登录后才可以回帖 登录 | 我要注册

本版积分规则

关闭

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

QQ|小黑屋|手机版|Archiver|集成电路技术分享 ( 京ICP备20003123号-1 )

GMT+8, 2024-5-5 01:35 , Processed in 0.064654 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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