没有合适的资源?快使用搜索试试~ 我知道了~
绝对原创,可以实现闰年的自动调节,年份从2012年开始
资源推荐
资源详情
资源评论
module TOP_module(clk,rst,out_ourh,out_ourl,out_minh,out_minl,out_sech,out_secl,ourh,ourl,minh,minl,sech,secl,out_xingqi,
out_xingqi_1,out_year_hh,out_year_hl,out_year_lh,out_year_ll,out_month_h,out_month_l,out_day_h,out_day_l,year_hh,year_hl,year_lh,
year_ll,month_h,month_l,day_h,day_l,test_year
);
input clk,rst;
output [3:0] ourh,ourl,minh,minl,sech,secl;
output [6:0] out_ourh,out_ourl,out_minh,out_minl,out_sech,out_secl; ////数码管显示的输出时分秒
output [2:0] out_xingqi;
output [6:0] out_xingqi_1; ///数码管显示的星期几
output [3:0] year_hh,year_hl,year_lh,year_ll,month_h,month_l,day_h,day_l;
output [6:0] out_year_hh,out_year_hl,out_year_lh,out_year_ll,out_month_h,out_month_l,out_day_h,out_day_l;///数码管显示的年月日
output test_year;
our_min_sec U1 (
.clk(clk),
.rst(rst),
.out_ourh(out_ourh),
.out_ourl(out_ourl),
.out_minh(out_minh),
.out_minl(out_minl),
.out_sech(out_sech),
.out_secl(out_secl),
.cin_day(cin_day),
.ourh(ourh),
.ourl(ourl),
.minh(minh),
.minl(minl),
.sech(sech),
.secl(secl)
);
xingqi U2(
out_xingqi_1,out_year_hh,out_year_hl,out_year_lh,out_year_ll,out_month_h,out_month_l,out_day_h,out_day_l,year_hh,year_hl,year_lh,
year_ll,month_h,month_l,day_h,day_l,test_year
);
input clk,rst;
output [3:0] ourh,ourl,minh,minl,sech,secl;
output [6:0] out_ourh,out_ourl,out_minh,out_minl,out_sech,out_secl; ////数码管显示的输出时分秒
output [2:0] out_xingqi;
output [6:0] out_xingqi_1; ///数码管显示的星期几
output [3:0] year_hh,year_hl,year_lh,year_ll,month_h,month_l,day_h,day_l;
output [6:0] out_year_hh,out_year_hl,out_year_lh,out_year_ll,out_month_h,out_month_l,out_day_h,out_day_l;///数码管显示的年月日
output test_year;
our_min_sec U1 (
.clk(clk),
.rst(rst),
.out_ourh(out_ourh),
.out_ourl(out_ourl),
.out_minh(out_minh),
.out_minl(out_minl),
.out_sech(out_sech),
.out_secl(out_secl),
.cin_day(cin_day),
.ourh(ourh),
.ourl(ourl),
.minh(minh),
.minl(minl),
.sech(sech),
.secl(secl)
);
xingqi U2(
.x_in(cin_day),
.rst(rst),
.out_xingqi(out_xingqi),
.out_xingqi_1(out_xingqi_1)
);
year_month_day U3 (
.in_cin(cin_day),
.rst(rst),
.out_year_hh(out_year_hh),
.out_year_hl(out_year_hl),
.out_year_lh(out_year_lh),
.out_year_ll(out_year_ll),
.out_month_h(out_month_h),
.out_month_l(out_month_l),
.out_day_h(out_day_h),
.out_day_l(out_day_l),
.year_hh(year_hh),
.year_hl(year_hl),
.year_lh(year_lh),
.year_ll(year_ll),
.month_h(month_h),
.month_l(month_l),
.day_h(day_h),
.day_l(day_l),
.test_year(test_year)
);
endmodule
.rst(rst),
.out_xingqi(out_xingqi),
.out_xingqi_1(out_xingqi_1)
);
year_month_day U3 (
.in_cin(cin_day),
.rst(rst),
.out_year_hh(out_year_hh),
.out_year_hl(out_year_hl),
.out_year_lh(out_year_lh),
.out_year_ll(out_year_ll),
.out_month_h(out_month_h),
.out_month_l(out_month_l),
.out_day_h(out_day_h),
.out_day_l(out_day_l),
.year_hh(year_hh),
.year_hl(year_hl),
.year_lh(year_lh),
.year_ll(year_ll),
.month_h(month_h),
.month_l(month_l),
.day_h(day_h),
.day_l(day_l),
.test_year(test_year)
);
endmodule
剩余22页未读,继续阅读
资源评论
imba6450
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功