软件大小: | 4 K | ||
上传用户: | A15117704533 | ||
关键词: | verilogHDL 模拟 程序 | ||
下载地址: | 免注册下载 普通下载 |
相关代码 |
|
//a lottery number counter //counts from 01 -> 49 in BCD format module count49 (output reg [7:0] cnt1to49, input clock, clear); always @(posedge clock) begin if (clear || cnt1to49 == 8'h49) cnt1to49 else if (cnt1to49[3:0] == 9) cnt1to49 else cnt1to49[3:0] end endmodule
相关资源 |
|