- 4
- 0
- 约1.7千字
- 约 3页
- 2023-08-06 发布于上海
- 举报
module count60_dongtai_LED ( input clk,
input rest_n,
output reg [2:0] sel, //位选output reg [6:0] display
);
reg [15:0] count_clk; // 分频计数器,最大 2^16=64K 分频
reg [5:0] sum_num; //计数缓存器,2^6=64 reg [3:0] g_bit; //个位
reg [3:0] s_bit; //十位reg [3:0] disp_temp;
//分频
always @ (posedge clk or negedge rest_n) begin if(rest_n ==0) begin
count_clk=16b0;
end else begin
if(count_clk==16hffff) begin count_clk=16b0;
end else begin
count_clk=count_clk+1b1; end
end
end
// 60 进制计数
always @ (negedge count_clk[3] or negedge rest_n) begin if(rest_n ==0) begin
g_bit=4b0; s_bit=4b0; sum_num=6b0;
end
else begin
if (sum_n
您可能关注的文档
- Unit 2 The Olympic Games高考阅卷现场.docx
- Unit 3 Under the sea英语文化憩园.docx
- Unit 3 How much is it 教学设计分析和总结.docx
- Unit 3 The Million Pound Bank Note 高考阅卷现场.docx
- Unit 3 说课稿分析和总结.docx
- Unit 5 Canada—“The True North” 高考阅卷现场.docx
- Unit 5 Nelson Mandela a modern hero教学设计新部编版.docx
- Unit 5 Traveling Abroad 教学设计新部编版.docx
- Unit 9 I like music that I can dance to全单元学案分析和总结.docx
- Unit 9 My favorite subject is science单元测试题及答案.docx
最近下载
- 糖尿病专科护士述职汇报.pptx VIP
- 创意成套简历个人简历word简历模板.doc VIP
- 中 山 大 学 软 件 学 院 软 件 工 程 专 业 2 0 0 8 级 (2010 秋季学期)《 S E - 3 0 4 数据库系统原理》 期 末 试 题 (A 卷).docx VIP
- 工程三同时实施方案(3篇).docx VIP
- 2026年湖北襄阳四中教师招聘考试笔试试题(附答案).docx VIP
- 电梯维保应急应对预案.docx VIP
- 2025年农机事故案例.docx VIP
- DBJ15-107-2016 装配式混凝土建筑结构技术规程.pdf VIP
- 《教师生成式人工智能应用指引(第一版)》核心要点与实践指南.pdf VIP
- 21J951-1聚乙烯丙纶卷材复合防水构造图集 .docx VIP
原创力文档

文档评论(0)