【正文】
OD 2 I N P U TP I N _ 1 2 4V C CC LE AR I N P U TP I N _ 1 2 1V C C1 I N P U TP I N _ 1 2 2V C C2 I N P U TP I N _ 1 2 3V C C3 I N P U TP I N _ 2 8V C CC 48 M I N P U TV C CEN I N P U TP I N _ 1 7 5BEEPO U T P U TP I N _ 1 6 9AO U T P U TP I N _ 1 7 0BO U T P U TP I N _ 1 6 7CO U T P U TP I N _ 1 6 8DO U T P U TP I N _ 1 6 5EO U T P U TP I N _ 1 6 6FO U T P U TP I N _ 1 6 3GO U T P U TP I N _ 1 6 2SLO U T P U TP I N _ 1 6 1SHO U T P U TP I N _ 1 3 6MLO U T P U TP I N _ 1 3 7MHO U T P U TP I N _ 1 3 8HLO U T P U TP I N _ 1 3 9HHO U T P U TC L E A R 1XMXHD M KC M O D 1DHKC L E A R 248mC M O D 2X I A O D A YX I A O M O NX I A O Y E A RB E E PABCDEFGSLSHMLMHHLHHH A V E A L Bins tKM O DM O D 1M O D 22 2ins t 5KM O DM O D 1M O D 22 2ins t 6KM O DM O D 1M O D 22 2ins t 10KM O DM O D 1M O D 22 2ins t 11KM O DM O D 1M O D 22 2ins t 12N O Tins t 13N O Tins t 14A N D 2ins t 1C M OD 1C M OD 2M1M2M1M248M48MY EA RY EA REDA(II) 多功能數(shù)字鐘 8 模式。清零開(kāi)關(guān)的輸入信號(hào)輸送到各個(gè) 計(jì)數(shù)器的清零端即可。至于整點(diǎn)報(bào)時(shí)電路我們把要蜂鳴器響的時(shí)間通過(guò)卡諾圖化 簡(jiǎn),得到最簡(jiǎn)的邏輯函數(shù)式,再把邏輯函數(shù)式通過(guò)電路實(shí)現(xiàn),滿足要求才把脈沖信號(hào)輸送給蜂鳴器。 1hz 的脈沖送到時(shí)鐘計(jì)時(shí)電路秒位的 clk 輸入口;秒位的進(jìn)位信號(hào)和 2hz脈沖通過(guò)開(kāi)關(guān)的選擇輸送到分位電路的時(shí)鐘輸入口,前者用 于正常計(jì)時(shí),后者由于校分時(shí);分位的進(jìn)位信號(hào)和 2hz 脈沖通過(guò)開(kāi)關(guān)的選擇輸送到 時(shí) 位電路的時(shí)鐘輸入口 ,前者用于正常計(jì)時(shí),后者由于校時(shí)。因?yàn)槲覀冎缓幸粋€(gè)數(shù)碼顯示 器,一般狀態(tài)下顯示的是時(shí)鐘,所以我們需要一個(gè)顯示模式切換電路。 校分、校時(shí)、清零電路只需要輸入一些控制信號(hào)給時(shí)鐘計(jì)時(shí)電路即可,當(dāng)然這些控制信號(hào)是由開(kāi)關(guān)提供的。 這樣我們總共使用三個(gè)開(kāi)關(guān)就可以控制整個(gè)電路 鎖死鍵、模式鍵、控制鍵。 b、 鬧表狀態(tài)( K7= K8=0): 此狀態(tài)下數(shù)碼管顯示當(dāng)前 鬧定的時(shí)間, K1 為 設(shè)定分鐘的開(kāi)關(guān),K2為 設(shè)定小 時(shí)開(kāi)關(guān) ,清零開(kāi)關(guān)無(wú)用 K4。 關(guān)鍵字: 層次設(shè)計(jì) 多功能數(shù)字時(shí)鐘 同步 整點(diǎn)報(bào)時(shí) 鬧鐘 萬(wàn)年歷 VHDL語(yǔ)言 EDA(II) 多功能數(shù)字鐘 2 Summary: This text is according to Altera pany’s QuartusII software and homologous experiment terrace pleted multifunction number timer experiment, make us clearly understand the function of number form how carry out. While designing we adopted the layer designs thought, the function pursues class gradually increase, and stay a lot of outer circles to connect while sealing to pack to fully increase other new functions. The experiment mainly includes three corpusesThe clock basic function electric circuit, alarm clock electric circuit, ten thousand calendar electric circuits. Corpus one: Mainly involve a mold 60 with mold 24 count machine, dynamic state to show a control electric circuit, cent repeatedly machine , a little bit whole tell the time electric circuit, These electric circuits are all packed with mold piece okay, for the purpose of other electric circuits adjust to use. With count machine posing to account parts, pass a cent repeatedly the machine divides of when the 1 HZ pulse accounts adjust to show that the electric circuit suggests and passes a little bit whole buzzer that tell the time an electric circuit control with the dynamic state. BE counting the way that the machine class adopted synchronously external different step in the inner part while uniting, but came to a synchronous effect through a simple change and than synchronously returned credibility. While showing a control for economizing a resources adoption dynamic state principle, from wove VHDL language of 24 choose 4 data selectors. Corpus two: Mainly involve a mold 60 with mold 24 count machine, show control electric circuit, 147 together or door. With mold 60 with mold 24 count machine posing in fixed time with saving electric circuit, adjust to show control electric circuit to suggest with the dynamic state, pass 147 together or door and followup and door control buzzer. Corpus three: Mainly involve a mold 100, mold 12 with mold 30 count a machine, dynamic state to show electric circuit. With count the machine posing accounts parts, adjust to show that the electric circuit shows with the dynamic state. Finally because of too many switch involving in the function, we adopted 2 kinds to reply to use principle and gave 2 kinds reply to use thought. Key word: The layer designs、 multifunction digital clock、 Synchronous、 A little bit whole tell the time, alarm clock、 ten thousand calendars,、 The language of VHDL EDA(II) 多功能數(shù)字鐘 3 目 錄 一. 設(shè)計(jì)說(shuō)明 ………………………………………………………… 4 I.功能說(shuō)明 ……………………………………………… ……………………………… … 4 II.功能簡(jiǎn)介 ……………………………………………… ……………………………… … 4 (兩種方案) ………… ……………………………… ……………… … 4 二. 方案論證 ……………………………………………… …… 5 ………… ……………………………… ………………… …………… 5 II. 電路的工作原理 ………… ……………………………… ………………… ……… 6 三. 各子模塊設(shè)計(jì)原理 …………………………… ……………… 8 I. 脈沖分頻模塊 …………………………………………………………… …………… 8 (包含校定和清零功能 ) …………………………………………… …1 0 III.顯示控制電路 ………… ……………………………… ………………… …………… 14 ………… ……………………………… ………………… 18 ………… ……………………………… ………………… …………… 18 ………… …………… ………………… ………………… ………………… 20 ………… ……………………………… ………………… ……………… 24 四. 調(diào)試與仿真 …………………………………… ……………… 27 ………… ……………………………… ………………… …………… 27 II. 計(jì)時(shí)電路 ………… ……………………………… ………………… ……………… 28 ………… ……………………………… ………………… ……………………… 29 五.結(jié)論 ………………………………………………………………… 29 六.實(shí)驗(yàn)感想 ………………………………………………………… 30 EDA(II) 多功能數(shù)字鐘 4 一. 設(shè)計(jì) 說(shuō)明 I. 功能說(shuō)明 : 利用 QuartusII軟件設(shè)計(jì)一個(gè)數(shù)字鐘,對(duì)設(shè)計(jì)電路進(jìn)行功能仿真,并下載到 SmartSOPC實(shí)驗(yàn)系統(tǒng)中,可以完成 00:00:00 到 23:59:59的計(jì)時(shí)功能,并在控制電路的作用下具有保持、清零、快速校時(shí)、快速校分、整點(diǎn)報(bào)時(shí)等功能。以模 60 與模 24 計(jì)數(shù)器構(gòu)成定時(shí)與存儲(chǔ)電路,調(diào)用 動(dòng)態(tài)顯示控制電路顯示,通過(guò) 147 同或門和后 續(xù)與門控制蜂鳴器。 以計(jì)數(shù)器構(gòu)成計(jì)時(shí)部件,通過(guò)分頻器分出的1HZ 脈沖計(jì)時(shí),調(diào)用動(dòng)態(tài)顯示電路顯示,通過(guò)整點(diǎn)報(bào)時(shí)電路控制蜂鳴器。 EDA 課程設(shè)計(jì)報(bào)告 名稱: 多功能數(shù)字 時(shí)鐘 指導(dǎo)教師: 姓 名: 學(xué) 號(hào): 院 系: 時(shí) 間: EDA(II) 多功能數(shù)字鐘 1 摘 要 本文是 基于 Altera公司出品 QuartusII軟件以及相應(yīng)的實(shí)驗(yàn)平臺(tái)完成 的 多功能數(shù)字計(jì)時(shí)器實(shí)驗(yàn) ,使我們清楚地了解到我們身邊的數(shù)字表的功能是怎樣實(shí)現(xiàn)的 。 主體一 : 主要涉及模 60 與模 24 計(jì)數(shù)器、動(dòng)態(tài)顯示控 制電路、分頻器主要整點(diǎn)報(bào)時(shí)電路, 這些電路都是以模塊封裝好的,以便其他電路調(diào)用。 主體二 : 主要涉及模 60 與模 24 計(jì)數(shù)器、顯示控制電路、 147 同或門。 最后由于功能中涉及的開(kāi)關(guān)太多,我們采用了兩種復(fù)用原理,給出了兩種復(fù)用思想。 a、 正常計(jì)時(shí)狀態(tài) ( K K8 都為一) :此狀態(tài)下數(shù)碼管顯示當(dāng)前的時(shí)間, K1為校分開(kāi)關(guān) , K2為校時(shí)開(kāi)關(guān) , K4為清零開(kāi)關(guān) ,校分、校時(shí)都是以 2HZ的信號(hào)進(jìn)行快速到位的。 (兩種方案) (方便,易操作,但