《多功能数字钟》EDA实验报告 下载本文

END IF; ELSE

MIN10<=MIN10+1; END IF; ELSE MIN1<=MIN1+1; END IF; ELSE

SEC10<=SEC10+1; END IF; ELSE

SEC1<=SEC1+1; END IF; END IF; END PROCESS;

---------------------------------------------------------------------- PROCESS(SEC1,T) BEGIN CASE SEC1 IS

WHEN \ WHEN \ WHEN \ WHEN \ WHEN \ WHEN \ WHEN \ WHEN \ WHEN \ WHEN \ WHEN OTHERS=>T<=0;

END CASE; END PROCESS;

--------------------------------------------------------------------- PROCESS(Clk,T) BEGIN

IF(Clk'EVENT AND Clk='1') THEN Music_Count<=Music_Count+1;

IF(MIN10=\在59分50秒开始提示 IF((T MOD 2)=0) THEN --在偶数秒开始发声 SPK<=Music_Count(2); --嘀 ELSE

SPK<='0'; END IF;

ELSIF(MIN10=\ SPK<=Music_Count(1); --嗒 ELSE SPK<='0'; END IF; END IF; END PROCESS;

-------------------------------------------------------- PROCESS(Clk) BEGIN

IF(Clk1hz'EVENT AND Clk1hz='1') THEN

IF(MIN10=\在59分55秒开始提示

led_Count<=led_Count+1; ELSE

led_count<=\ END IF;

END IF; END PROCESS;

------------------------------------------------------------------------- PROCESS(led_count) BEGIN

CASE (led_count) IS

WHEN \ WHEN \ WHEN \ WHEN \ WHEN \ WHEN \ WHEN OTHERS=>led_display<=\ END CASE; led<=led_display; END PROCESS;

-------------------------------------------------------------------------- PROCESS(SEG_SEL) BEGIN

CASE (SEG_SEL+1) IS

WHEN \ WHEN \ WHEN \ WHEN \ WHEN \ WHEN \ WHEN \ WHEN OTHERS=>Disp_Temp<=SEC1; END CASE; END PROCESS;

----------------------------------------------------------------------- --扫描累加 PROCESS(Clk) BEGIN

IF(Clk'EVENT AND Clk='1') THEN SEG_SEL<=SEG_SEL+1; Display<=Disp_Decode; END IF; END PROCESS;

--------------------------------------------------------------------------显示转换 PROCESS(Disp_Temp) BEGIN

CASE Disp_Temp IS

WHEN \ WHEN \ WHEN \ WHEN \ WHEN \ WHEN \ WHEN \ WHEN \ WHEN \ WHEN \ WHEN \ WHEN OTHERS=>Disp_Decode<=\全灭 END CASE; END PROCESS;