[笔记] 数码管显示(十一)
摘要:
一、Codemodule seg7(// inputinput clk_50,input rst_n, //outputoutput[6:0] HEX7,HEX6,HEX5,HEX4,HEX3,HEX2,HEX1,HEX0);reg[24:0] cnt; //2的25次方,约640msalways@(posedge clk_50 or negedge rst_n) if(!rst_n) cnt <= 25'd0; else cnt <= cnt+1'b1; reg[3:0] num;always@(posedge clk_50 or negedge rst_n) i 阅读全文
posted @ 2011-10-25 22:57 LiangXuan 阅读(544) 评论(0) 推荐(0)
浙公网安备 33010602011771号