디지털 시계 콤보(combo2) 소스
- 최초 등록일
- 2020.04.22
- 최종 저작일
- 2018.06
- 13페이지/
한컴오피스
- 가격 1,000원
![할인쿠폰받기](/images/v4/document/ico_det_coupon.gif)
목차
없음
본문내용
module clock(
input clk,
input time_set,
input inc_hr,
input inc_min,
output reg [9:0] dot_col,
output reg [13:0] dot_dis,
output reg [7:0] apm,
output reg [7:0] seg_com, seg_data
);
parameter zero = 0;
parameter one = 1;
reg [2:0] days = 6;
reg [8:0] cnt4 = 0;
reg [3:0] cnt3 = 0;
reg [3:0] cnt2 = 0;
reg [22:0] cnt = 0;
reg [13:0] dis_0, dis_1, dis_2, dis_3, dis_4, dis_5, dis_6, dis_7, dis_8, dis_9;
reg [3:0] col_0 = 0;
reg [3:0] col_1 = 1;
reg [3:0] col_2 = 2;
reg [3:0] col_3 = 3;
reg [3:0] col_4 = 4;
reg [3:0] col_5 = 5;
reg [3:0] col_6 = 6;
reg [3:0] col_7 = 7;
reg [3:0] col_8 = 8;
reg [3:0] col_9 = 9;
reg clk_1hz = 0;
reg [5:0] outh = 0,outm = 0,outs = 0;
reg [3:0] hr1, hr2, min1, min2, sec1, sec2;
reg [7:0] outsegh1, outsegh2;
reg [7:0] outsegm1, outsegm2;
reg [7:0] outsegs1, outsegs2;
reg mclk = 0;
참고 자료
없음