




版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、第11頁 共11頁數(shù)字系統(tǒng)綜合設計實驗報告實驗題目:模擬中央人民廣播電臺報時電路姓名:張曉奇 馬良學號:2007230620072312設計內(nèi)容:1、實驗要求:11 計時器運行到59分49秒開始報時,每鳴叫1s就停叫1s,共鳴叫6響;前5響為低音,頻率為750HZ,最后1響為高音,頻率為1KHz;12要有分秒顯示21總電路圖: CLK是時鐘脈沖,通過次端口輸入時鐘信號,CLR是清零端口,置于高電平時起清零作用,CI是保持端口,置于低電平時起保持作用;ENM是校分端口,置于低電平是由時鐘脈沖進行校分功能,ENH是校時端口,同ENM;speaker是報時端,在50、52、54、56、58秒/分時輸
2、出高電平。qsl【3.0】、qsh【3.0】,qml【3.0】、qmh【3.0】,qhl【3.0】、qhh【3.0】分別是秒的低位、高位,分的低位、高位,時的低位、高位數(shù)碼管顯示端。gaopin、dipin端分別是報時信號頻率輸入端。22模塊設計:60進制秒模塊VHDL語言:library ieee;USE ieee.std_logic_1164.all;USE ieee.std_logic_unsigned.all;ENTITY sec60 IS PORT ( ci :IN std_logic; mclear :IN std_logic; clk :IN std_logic; co :out
3、 std_logic; qh :buffer std_logic_vector(3 downto 0); ql :buffer std_logic_vector(3 downto 0); a :out std_logic; b :out std_logic );END sec60;ARCHITECTURE behave OF sec60 ISBEGINco=1when (qh=0101 and ql=1001 and ci=1) else 0; a=1 when (qh=0101 and ql=0000) else 1 when (qh=0101 and ql=0010) else 1 whe
4、n (qh=0101 and ql=0100) else 1 when (qh=0101 and ql=0110) else 1 when (qh=0101 and ql=1000) else 0; b=1 when (qh=0000 and ql=0000) else 0; PROCESS (clk,mclear)BEGIN IF(mclear=1)THEN qh=0000; ql=0000; elsif(clkevent and clk=1)thenif(ci=1)then if(ql=9) then ql=0000; if(qh=5)then qh=0000;else qh=qh+1;e
5、nd if;else ql=ql+1;end if;end if ;end if;end process;end behave;60進制分模塊VHDL語言:library ieee;USE ieee.std_logic_1164.all;USE ieee.std_logic_unsigned.all;ENTITY min60 IS PORT ( ci :IN std_logic; mclear :IN std_logic; clk :IN std_logic; co :out std_logic; qh :buffer std_logic_vector(3 downto 0); ql :buf
6、fer std_logic_vector(3 downto 0); a :out std_logic; b :out std_logic );END min60;ARCHITECTURE behave OF min60 ISBEGINco=1when (qh=0101 and ql=1001 and ci=1) else 0; a=1 when (qh=0101 and ql=1001) else 0; b=1 when (qh=0000 and ql=0000) else 0; PROCESS (clk,mclear)BEGIN IF(mclear=1)THEN qh=0000; ql=00
7、00; elsif(clkevent and clk=1)thenif(ci=1)then if(ql=9) then ql=0000; if(qh=5)then qh=0000;else qh=qh+1;end if;else ql=ql+1;end if;end if ;end if;end process;end behave;24進制時模塊VHDL語言:library ieee;USE ieee.std_logic_1164.all;USE ieee.std_logic_unsigned.all;ENTITY hour24 IS PORT ( ci :IN std_logic; hcl
8、ear :IN std_logic; clk :IN std_logic; co :out std_logic; qh :buffer std_logic_vector(3 downto 0); ql :buffer std_logic_vector(3 downto 0);END hour24;ARCHITECTURE behave OF hour24 ISBEGIN co=1when (qh=0010 and ql=0011 and ci=1) else 0; PROCESS (clk,hclear) BEGIN IF(hclear=1)THEN qh=0000; ql=0000; ELS
9、IF(clkEVENT AND clk=1)THEN if(ci=1)then if(ql=9) or(ql=3 and qh=2) then ql=0000; if(qh=2) then qh=0000; elseqh=qh+1;end if; else ql=ql+1; end if; END IF; END IF; END PROCESS;END behave;D、二選一數(shù)據(jù)選擇器:library ieee;use ieee.std_logic_1164.all;entity xuanze isport(cp1,cp2,en:in std_logic; chu:out std_logic
10、);end xuanze;architecture behave of xuanze isbeginprocess(cp1,cp2,en)begin if(en=1) then chu=cp1;else chu=cp2;end if;end process;end behave;仿真圖像: 調(diào)試過程圖像:秒鐘計數(shù)器的調(diào)試過程:分鐘計數(shù)器的調(diào)試過程:時鐘計數(shù)器的調(diào)試過程:2選1數(shù)據(jù)選擇器的調(diào)試過程:總體波形:設計心得體會:通過本次設計使我更熱愛數(shù)字電路設計,初步學會MAXPLUS軟件VHDL語言的編用,能設計較簡單的時序邏輯電路和組合邏輯電路,能解決實驗設計中出現(xiàn)的一般性問題,提高了自己的解決問題的能力。在實習過程中大大激發(fā)了我們對EDA的濃厚興趣。井老師的指導使我們受益匪淺。我們在學習過程中得到實
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- ktv水果配送合同范本
- 人力轉(zhuǎn)讓合同范本
- 倉庫維修維護合同范本
- 出國合同范本ps
- 樂器進貨合同范本
- 冰箱購買合同范例
- 單位清單合同范本
- 勞務服務發(fā)票合同范本
- 公司運貨合同范本
- 協(xié)力商合同范本
- 隨車起重機吊裝施工方案
- 《市場營銷》課程標準
- 聲樂第2版(學前教育專業(yè))PPT完整全套教學課件
- 蘇科版六年級下冊《勞動》全一冊全部公開課PPT課件(共9課)
- 小學英語外研版(三起點)四年級下冊全冊課文翻譯(1-10模塊)
- WS 400-2023 血液運輸標準
- 銀行業(yè)金融機構(gòu)監(jiān)管數(shù)據(jù)標準化規(guī)范(2021版)數(shù)據(jù)結(jié)構(gòu)一覽表
- 教育戲?。簩嵺`指南與課程計劃
- 電子商務基礎與實務(第四版)高職PPT完整全套教學課件
- 信息論與編碼(第4版)完整全套課件
- 化工原理課件(天大版)
評論
0/150
提交評論