Day 4 - 7-seg BCD Counter
·
IDEC 교육/Verilog HDL
// BCD Counter with modulo Kmodule alu_ex3 #( parameter N = 32, parameter K = 10, parameter M = 3)( input wire clk, input wire rstn, output wire [6:0] bcd0, output wire [6:0] bcd1, output wire [6:0] bcd2);wire roll0, roll1, roll2;wire [ 3:0] led[0:2];modulo_cnt #(.K(50000000)) u_cnt_base (.clk(clk), .rstn(rstn), .ena(1'b1 ), .led( ), .roll(roll0)..