Page 419 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 419
constant_B <= A_hour1;
constant_C <= A_min10;
constant_D <= A_min1;
end
end
3, 4, 5 : begin
if(pos == 3 && cnt_sec <= on_off)
begin constant_A <= " "; constant_B <= " "; end
else if(pos == 4 && cnt_sec <= on_off)
begin constant_C <= " "; constant_D <= " "; end
else
begin
constant_A <= hour10;
constant_B <= hour1;
constant_C <= min10;
constant_D <= min1;
end
end
endcase
else
begin
constant_A <= hour10;
constant_B <= hour1;
constant_C <= min10;
constant_D <= min1;
end
end
// FSM_상태천이회로
always @ (posedge clk, negedge rst)
if(!rst) state<=delay_100ms;
else
begin
if(cnt_clk==0) //5ms마다 상태 체크
begin
case(state)
delay_100ms:
begin
if(cnt_100ms==19) state<= function_set;// 초기 딜레이 타임
else state<=state;
- 412 -