




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、附:EDA課程設(shè)計(jì)完整版-數(shù)字秒表(設(shè)計(jì)報(bào)告+仿真文件+硬件實(shí)現(xiàn))仿真文件下載地址:(友情提示:關(guān)于頁數(shù),下載后請刪除此頁即可)可編程器件及應(yīng)用課程設(shè)計(jì)報(bào)告題 目 數(shù)字秒表 學(xué) 院 信電工程學(xué)院 專 業(yè) 電子信息科學(xué)與技術(shù) 班 級(jí) 姓 名 學(xué) 號(hào) 指導(dǎo)教師 目 錄 課程設(shè)計(jì)任務(wù)書3 一、系統(tǒng)組成模塊連圖4 二、模塊器件及其程序4 1、分頻器4 2、十進(jìn)制計(jì)數(shù)器5 3、六進(jìn)制計(jì)數(shù)器6 4、動(dòng)態(tài)掃描7 5、譯碼顯示管8 三、系統(tǒng)仿真9 1、六進(jìn)制計(jì)數(shù)器9 2、十進(jìn)制計(jì)數(shù)器9 3、動(dòng)態(tài)掃描9 4、譯碼顯示管10 5、分頻器10 6、系統(tǒng)仿真11 7、硬件實(shí)現(xiàn)11 四、心得體會(huì)12課題名稱數(shù)字秒表設(shè)計(jì)
2、完成時(shí)間12.30指導(dǎo)教師學(xué)生姓名班 級(jí)總體設(shè)計(jì)要求和技術(shù)要點(diǎn)總體設(shè)計(jì)要求: 通過本課程的學(xué)習(xí)使學(xué)生掌握可編程器件、EDA開發(fā)系統(tǒng)軟件、硬件描述語言和電子線路設(shè)計(jì)與技能訓(xùn)練等各方面知識(shí);提高工程實(shí)踐能力;學(xué)會(huì)應(yīng)用EDA技術(shù)解決一些簡單的電子設(shè)計(jì)問題。技術(shù)要點(diǎn):1利用VHDL語言設(shè)計(jì)基于計(jì)算機(jī)電路中時(shí)鐘脈沖原理的數(shù)字秒表。該秒表計(jì)時(shí)范圍為0秒59分59.99秒,顯示的最長時(shí)間為59分59秒,計(jì)時(shí)精度為10毫秒,并且具有復(fù)位功能。復(fù)位開關(guān)一旦打開所有位都為0。2.秒表有共有6個(gè)輸出顯示,分別為百分之一秒、十分之一秒、秒、十秒、分、十分,所以共有6個(gè)計(jì)數(shù)器與之相對應(yīng),6個(gè)計(jì)數(shù)器的輸出全都為BCD碼輸
3、出,這樣便與同顯示譯碼器的連接。工作內(nèi)容及時(shí)間進(jìn)度安排工作內(nèi)容:在軟件上編輯、編譯程序,并在電腦上仿真, 最后在實(shí)驗(yàn)室下載到器件上實(shí)現(xiàn)硬件要求。進(jìn)度安排:第十八周一周時(shí)間;課程設(shè)計(jì)成果1與設(shè)計(jì)內(nèi)容對應(yīng)的軟件程序2實(shí)驗(yàn)報(bào)告3課程設(shè)計(jì)報(bào)告書一、系統(tǒng)組成模塊連接圖二、模塊器件及其程序1、分頻模塊及其程序 本模塊實(shí)現(xiàn)脈沖分頻,本實(shí)驗(yàn)使用的EP2C5的CLK3所以進(jìn)行10分頻產(chǎn)生100HZ的脈沖。library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity div is port (clk:in std_l
4、ogic; clk1:out std_logic);end div;architecture behav of div issignal temp:std_logic_vector(3 downto 0);signal clk3:std_logic;begin process(clk) begin if clk'event and clk='1'then if temp="1001" then clk3<=not clk3;temp<="0000" else temp<=temp+'1' end
5、if;end if;end process;clk1<=clk3;end behav; 2、十進(jìn)制程序產(chǎn)生99毫秒、秒的低位、分的低位的功能。library ieee;use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all;use ieee.std_logic_arith.all;entity cnt10 is port(clk,clr,start:in std_logic; cout:out std_logic; daout:buffer std_logic_vector(3 downto 0);end cnt10;ar
6、chitecture behav of cnt10 isbeginprocess(clk,clr,start)beginif clr='1' then daout<="0000" elsif(clk'event and clk='1')then if start='1' then if daout="1001" then daout<="0000"cout<='1' else daout<=daout+'1'cout<
7、='0' end if; end if;end if;end process;end behav;3、六進(jìn)制程序產(chǎn)生秒的高位、分的高位library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;use ieee.std_logic_arith.all;entity cnt6 is port(clk,clr,start:in std_logic; cout:out std_logic; daout:buffer std_logic_vector(3 downto 0);end cnt6;arch
8、itecture behav of cnt6 isbeginprocess(clk,clr,start)beginif clr='1' then daout<="0000" elsif(clk'event and clk='1')then if start='1' then if daout="0101" then daout<="0000"cout<='1' else daout<=daout+'1'cout<=
9、39;0' end if; end if;end if;end process;end behav;4、動(dòng)態(tài)掃描程序 動(dòng)態(tài)的掃描六個(gè)數(shù)碼管,實(shí)時(shí)的顯示出相應(yīng)的數(shù)字。library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;use ieee.std_logic_arith.all;entity seltime is port(clk,clr,start:in std_logic; dain0,dain1,dain2,dain3,dain4,dain5:in std_logic_vector(3 dow
10、nto 0); daout:out std_logic_vector(3 downto 0); sel:out std_logic_vector(2 downto 0);end seltime;architecture behav of seltime is signal temp:std_logic_vector(2 downto 0);signal d_out:std_logic_vector(3 downto 0);beginsel<=temp;process(clk)begin if clk'event and clk='1' then if temp=&
11、quot;101" then temp<="000" else temp<=temp+'1' end if; end if;end process;process(temp,clr,dain0,dain1,dain2,dain3,dain4,dain5)begin if clr='1' then d_out<="0000" else if temp="000" then d_out<=dain0; elsif temp="001" then d_ou
12、t<=dain1; elsif temp="010" then d_out<=dain2; elsif temp="011" then d_out<=dain3; elsif temp="100" then d_out<=dain4; elsif temp="101" then d_out<=dain5; else d_out<="0000" end if; end if;end process;daout<=d_out;end behav;5、譯碼顯示
13、管程序顯示管電路的作用是在74LS138的驅(qū)動(dòng)將計(jì)數(shù)值在LED數(shù)碼管上顯示出來。計(jì)時(shí)電路產(chǎn)生的值在經(jīng)過BCD七段譯碼后,驅(qū)動(dòng)LED數(shù)碼管。library ieee;use ieee.std_logic_1164.all;entity xianshi is port(num:in std_logic_vector(3 downto 0); led:out std_logic_vector(7 downto 0);end xianshi;architecture behav of xianshi isbegin process(num) begin led<=(others=>'
14、;1'); case num is when"0000"=>led<="00111111" when"0001"=>led<="00000110" when"0010"=>led<="01011011" when"0011"=>led<="01001111" when"0100"=>led<="01100110" when&quo
15、t;0101"=>led<="01101101" when"0110"=>led<="01111101" when"0111"=>led<="00000111" when"1000"=>led<="01111111" when"1001"=>led<="01101111" when others=>NULL; end case; end process;end behav;三、系統(tǒng)仿真1、六進(jìn)制仿真圖2、十進(jìn)制仿真圖3、動(dòng)態(tài)掃描仿真圖4、譯碼顯示仿真圖5、分頻器仿真圖6、系統(tǒng)仿真圖7、 硬件實(shí)現(xiàn)四、心得體會(huì)通過本次課程設(shè)計(jì),我鞏固了關(guān)于EDA的許多專業(yè)知識(shí)。開始做設(shè)計(jì)時(shí)總是會(huì)犯一些錯(cuò)誤,只有經(jīng)過不停的改錯(cuò)不停的編譯才能得到正確的程序。在編程時(shí),我充分使用了結(jié)構(gòu)化的思想,這樣程序檢查起來也比較方便,調(diào)試時(shí)也給了我很大方便,只要一個(gè)模塊一個(gè)模塊的進(jìn)行調(diào)就可以了,充分體現(xiàn)了結(jié)構(gòu)化編程的優(yōu)勢。在設(shè)計(jì)中要
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 四川2025年02月四川省屏山縣發(fā)展和改革局公開招考4名編外聘用人員筆試歷年典型考題(歷年真題考點(diǎn))解題思路附帶答案詳解
- 2025通遼市蒙遼水務(wù)有限責(zé)任公司校園招聘筆試參考題庫附帶答案詳解
- 跨境教育資源的開發(fā)與利用
- 通史版2025版高考?xì)v史大一輪復(fù)習(xí)第16單元經(jīng)濟(jì)全球化的世界與現(xiàn)代的科技文藝微專題強(qiáng)化練十中外政府關(guān)注民生社會(huì)優(yōu)撫的舉措教案含解析人民版
- 烏魯木齊翻譯合同范本
- 柳州專版2025版中考?xì)v史奪分復(fù)習(xí)第06部分九下第5課第二次工業(yè)革命實(shí)戰(zhàn)演練
- 小學(xué)心理教育家長教育妙招你贏了孩子還是贏得孩子
- 連云港專版2024中考地理復(fù)習(xí)方案第四部分中國地理上第14課時(shí)中國的地形強(qiáng)化訓(xùn)練
- 餐飲業(yè)財(cái)務(wù)分析報(bào)告盈利能力與市場策略
- 財(cái)務(wù)管理軟件在醫(yī)療行業(yè)的應(yīng)用與挑戰(zhàn)
- 2024年黑龍江農(nóng)墾科技職業(yè)學(xué)院高職單招(英語/數(shù)學(xué)/語文)筆試歷年參考題庫含答案解析
- THHPA 001-2024 盆底康復(fù)管理質(zhì)量評(píng)價(jià)指標(biāo)體系
- 人民音樂家 教案-2023-2024學(xué)年高中人音版(2019)必修《音樂鑒賞》
- 《合理調(diào)節(jié)情緒-做自己情緒的主人》班會(huì)課件
- 20222023學(xué)年山西省朔州市朔城區(qū)七年級(jí)(下)期末語文試卷(解析)
- 國家義務(wù)教育質(zhì)量監(jiān)測心理健康和德育測試題
- 農(nóng)民橡膠割膠技術(shù)培訓(xùn)方案
- 新編物理基礎(chǔ)學(xué)(下冊)(9-17章)課后習(xí)題(每題都有)詳細(xì)答案
- 絕經(jīng)綜合征(中醫(yī))評(píng)定量表
- 村委會(huì)會(huì)議簽到表
- 中考物理復(fù)習(xí)交流
評(píng)論
0/150
提交評(píng)論