![EDA專業(yè)課程設(shè)計(jì)方案報(bào)告書_第1頁(yè)](http://file4.renrendoc.com/view3/M00/37/26/wKhkFmZOqcmAb1y8AACBTGrgh6I666.jpg)
![EDA專業(yè)課程設(shè)計(jì)方案報(bào)告書_第2頁(yè)](http://file4.renrendoc.com/view3/M00/37/26/wKhkFmZOqcmAb1y8AACBTGrgh6I6662.jpg)
![EDA專業(yè)課程設(shè)計(jì)方案報(bào)告書_第3頁(yè)](http://file4.renrendoc.com/view3/M00/37/26/wKhkFmZOqcmAb1y8AACBTGrgh6I6663.jpg)
![EDA專業(yè)課程設(shè)計(jì)方案報(bào)告書_第4頁(yè)](http://file4.renrendoc.com/view3/M00/37/26/wKhkFmZOqcmAb1y8AACBTGrgh6I6664.jpg)
![EDA專業(yè)課程設(shè)計(jì)方案報(bào)告書_第5頁(yè)](http://file4.renrendoc.com/view3/M00/37/26/wKhkFmZOqcmAb1y8AACBTGrgh6I6665.jpg)
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
《電子設(shè)計(jì)自動(dòng)化EDA》課程設(shè)計(jì)匯報(bào)書學(xué)號(hào):08057102班級(jí):自動(dòng)化081姓名:陳婷指導(dǎo)老師:劉偉目錄一、設(shè)計(jì)思想 2二、設(shè)計(jì)步驟 3三、調(diào)試過(guò)程 8四、結(jié)果分析 10五、心得體會(huì) 11六、參考文件 11一、設(shè)計(jì)思想(一)、設(shè)計(jì)要求1、含有以二十四小時(shí)制時(shí)、分、秒記時(shí)、顯示功效。2、含有整點(diǎn)報(bào)時(shí)功效,整點(diǎn)報(bào)時(shí)同時(shí)LED花樣顯示。3、含有消零,調(diào)整小時(shí),分鐘功效。4、設(shè)計(jì)精度要求為1s。(二)、系統(tǒng)功效描述1.、系統(tǒng)輸入:調(diào)時(shí)、調(diào)分,清零信號(hào),分別用按鍵開(kāi)關(guān)SETHOUR、SETMIN、RESET控制;計(jì)數(shù)時(shí)鐘信號(hào)CLK采取2HZ時(shí)鐘源,掃描時(shí)鐘信號(hào)CLKDSP采取32HZ時(shí)鐘源或更高;2、系統(tǒng)輸出:8位八段共陰極數(shù)碼管顯示輸出;LED花樣顯示輸出;3、系統(tǒng)功效具體描述:計(jì)時(shí):正常工作狀態(tài)下,每日按二十四小時(shí)計(jì)時(shí)制,蜂鳴器無(wú)聲,逢整點(diǎn)報(bào)時(shí)。顯示:要求采取掃描顯示方法驅(qū)動(dòng)8位8段數(shù)碼管顯示。整點(diǎn)報(bào)時(shí):蜂鳴器在“51”、“53”、“55”、“57”、校時(shí):在計(jì)時(shí)狀態(tài)下,按下按鍵SETMIN設(shè)定分鐘,按下按鍵SETHOUR設(shè)定小時(shí)。(三)設(shè)計(jì)思緒1、分別寫出六進(jìn)制、十進(jìn)制、二十四進(jìn)制、清零、設(shè)置時(shí)分、LED譯碼部分,在主體部分用元件例化語(yǔ)句計(jì)時(shí),清零設(shè)置時(shí)分、LED譯碼,再加上掃描模塊2、將六進(jìn)制、十進(jìn)制、二十四進(jìn)制、清零、設(shè)置時(shí)分、LED譯碼、掃描模塊分模塊寫在一個(gè)主中(四)系統(tǒng)電路結(jié)構(gòu)框圖二、設(shè)計(jì)步驟(一)多種進(jìn)制計(jì)時(shí)立即鐘控制模塊程序1、6進(jìn)制libraryieee;useieee.std_logic_1164.all;useieee.std_logic_unsigned.all;entitycounter6isport(clk,reset,set:instd_logic;ain:instd_logic_vector(3downto0);aout:outstd_logic_vector(3downto0);co:outstd_logic);endcounter6;architectureart2ofcounter6issignalcount:std_logic_vector(3downto0);beginprocess(clk)beginif(clk'eventandclk='1')thenif(reset='0')thencount<="0000";elsif(set='1')thencount<=ain;elsif(count="0101")thencount<="0000";co<='1';elsecount<=count+1;co<='0';endif;endif;endprocess;aout<=count;endart2;2、10進(jìn)制libraryieee;useieee.std_logic_1164.all;useieee.std_logic_unsigned.all;entitycounter10isport(clk,reset,set:instd_logic;ain:std_logic_vector(3downto0);aout:outstd_logic_vector(3downto0);co:outstd_logic);endcounter10;architectureart1ofcounter10issignalcount:std_logic_vector(3downto0);beginprocess(clk)beginif(clk'eventandclk='1')thenif(reset='0')thencount<="0000";elsif(set='1')thencount<=ain;elsif(count="1001")thencount<="0000";co<='1';elsecount<=count+1;co<='0';endif;endif;endprocess;aout<=count;endart1;3、24進(jìn)制ibraryieee;useieee.std_logic_1164.all;useieee.std_logic_unsigned.all;entitycounter24isport(clk,reset,set:instd_logic;ainh:instd_logic_vector(3downto0);ainl:instd_logic_vector(3downto0);aout:outstd_logic_vector(7downto0));endcounter24;architectureart3ofcounter24issignalcount:std_logic_vector(7downto0);beginprocess(clk)beginif(clk'eventandclk='1')thenif(reset='0')thencount<="00000000";elsif(set='1')thencount(7downto4)<=ainh;count(3downto0)<=ainl;elsif(count(7downto4)<"0011")thenif(count(7downto4)="0010"andcount(3downto0)="0011")thencount<="00000000";elsif(count(3downto0)="1001")thencount(3downto0)<="0000";count(7downto4)<=count(7downto4)+1;elsecount(3downto0)<=count(3downto0)+1;endif;endif;endif;--endif;endprocess;aout<=count;endart3;(二)系統(tǒng)整體程序libraryieee;useieee.std_logic_1164.all;useieee.std_logic_unsigned.all;entityclockisport(clk,b1,clks:instd_logic;reset:instd_logic;setmin,sethour:instd_logic;minutell,minutehh,hourll,hourhh,b2:instd_logic_vector(3downto0);secondl,secondh:outstd_logic_vector(3downto0);--second0,second2:outstd_logic_vector(6downto0);minutel,minuteh:outstd_logic_vector(3downto0);--minute0,minute2:outstd_logic_vector(6downto0);hourl,hourh:outstd_logic_vector(3downto0);--hour0,hour2,dout:outstd_logic_vector(6downto0);dout:outstd_logic_vector(6downto0);s:outstd_logic_vector(2downto0);singing,light:outstd_logic);endclock;architectureartofclockiscomponentcounter10isport(clk,reset,set:instd_logic;ain:instd_logic_vector(3downto0);aout:outstd_logic_vector(3downto0);co:outstd_logic);endcomponent;componentcounter6isport(clk,reset,set:instd_logic;ain:instd_logic_vector(3downto0);aout:outstd_logic_vector(3downto0);co:outstd_logic);endcomponent;componentcounter24isport(clk,reset,set:instd_logic;ainh,ainl:std_logic_vector(3downto0);aout:outstd_logic_vector(7downto0));endcomponent;componentled7isport(ain:instd_logic_vector(3downto0);aout:outstd_logic_vector(6downto0));endcomponent;signalcs0,cs1,cm0,cm1:std_logic;signals0,s1,m0,m1,h0,h1,cout:std_logic_vector(3downto0);signalh:std_logic_vector(7downto0);signalcount:std_logic_vector(2downto0);beginh0<=h(3downto0);h1<=h(7downto4);u1:counter10portmap(clk=>clk,reset=>reset,set=>b1,ain=>b2,aout=>s0,co=>cs0);u2:counter6portmap(clk=>cs0,reset=>reset,set=>b1,ain=>b2,aout=>s1,co=>cs1);u3:counter10portmap(clk=>cs1,reset=>reset,set=>setmin,ain=>minutell,aout=>m0,co=>cm0);u4:counter6portmap(clk=>cm0,reset=>reset,set=>setmin,ain=>minutehh,aout=>m1,co=>cm1);u5:counter24portmap(clk=>cm1,reset=>reset,set=>sethour,ainl=>hourll,ainh=>hourhh,aout=>h);u6:led7portmap(ain=>cout,aout=>dout);secondl<=s0;secondh<=s1;minutel<=m0;minuteh<=m1;hourl<=h0;hourh<=h1;process(m1,m0,s1,s0)beginif(m1="0101"andm0="1001"ands1="0101"ands0="1001")thensinging<='1';light<='1';elsesinging<='0';light<='0';endif;endprocess;process(clks)beginif(clks'eventandclks='1')thenif(count="101")thencount<="000";elsecount<=count+1;endif;s<=count;CASEcountIS when"000"=>cout<=s0;when"001"=>cout<=s1;when"010"=>cout<=m0;s<="010";when"011"=>cout<=m1;when"100"=>cout<=h0;when"101"=>cout<=h1;whenothers=>cout<="0000";endcase;endif;endprocess;endart;三、調(diào)試過(guò)程(一)仿真波形1、6進(jìn)制程序仿真波形2、10進(jìn)制程仿真波形3、24進(jìn)制程序仿真波形4、系統(tǒng)程序仿真波形(二)分析問(wèn)題1:u6:led7portmap(ain=>secondl,aout=>second0);u7:led7portmap(ain=>secondh,aout=>second1);u8:led7portmap(ain=>minutel,aout=>minute0);u9:led7portmap(ain=>minuteh,aout=>minute1);u10:led7portmap(ain=>hourl,aout=>hour0);u11:led7portmap(ain=>hourh,aout=>hour1);問(wèn)題分析:元件例化是并行語(yǔ)句,按此段代碼LDE并行顯示,每一個(gè)數(shù)碼管全部需要八個(gè)端口,這么就需要八排插口,而試驗(yàn)箱只有一排端口。處理措施:采取掃描顯示方法,修改程序?yàn)椋簎6:led7portmap(ain=>cout,aout=>dout);問(wèn)題2:u1:counter10portmap(clk=>clk,reset=>reset,aout=>s0,co=>cs0);問(wèn)題分析:此元件例化中有set,ain兩個(gè)端口沒(méi)有用到處理措施:設(shè)置兩個(gè)輸入端口使set和ain為無(wú)效信號(hào),設(shè)置b1,b2,使set=>b1,ain=>b2,b1,b2類型必需分別和set和ain相同,在連線時(shí)可用撥碼開(kāi)關(guān)將b1,b2置成對(duì)應(yīng)狀態(tài)。問(wèn)題3:對(duì)變量多重賦值處理措施:設(shè)置中間信號(hào)問(wèn)題4:元件例化模塊采取名稱映射時(shí)兩個(gè)變量類型不相同處理措施:名稱映射兩變量類型應(yīng)相同四、結(jié)果分析1、10進(jìn)制計(jì)數(shù)器分析:當(dāng)reset=‘0‘時(shí),aout<=’0000’當(dāng)set=‘1‘時(shí),aout<=ain(0011);當(dāng)reset=‘1‘且set=‘0‘時(shí),開(kāi)始計(jì)數(shù)從“0000”到“1001”,當(dāng)aout=“1001”時(shí)aout被置零,且進(jìn)位Co<=2、6進(jìn)制計(jì)數(shù)器分析:當(dāng)reset=‘0‘時(shí),aout<=’0000’當(dāng)set=‘1‘時(shí),aout<=ain(0101);當(dāng)reset=‘1‘
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年企業(yè)戶外家具采購(gòu)合同樣本
- 2025年協(xié)作方保密協(xié)議書樣本
- 2025合同樣式完整版
- 2025年人員調(diào)整意向協(xié)議書
- 2025年客戶策劃顧問(wèn)服務(wù)委托合作協(xié)議書草稿
- 2025年二手房交易過(guò)戶服務(wù)流程協(xié)議
- 2025年聯(lián)合房產(chǎn)展覽交流合作合同
- 2025年二手住宅交易定金協(xié)議
- 2025年創(chuàng)業(yè)伙伴間的合作協(xié)議指南
- 2025年典型汽車美容店租賃合同范本
- 食品抽檢核查處置重點(diǎn)安全性指標(biāo)不合格原因分析排查手冊(cè)
- 幼兒教師新年規(guī)劃
- 春節(jié)促銷活動(dòng)方案(7篇)
- 五年級(jí)數(shù)學(xué)上冊(cè) 圖形與幾何專題測(cè)試卷 (含答案)(北師大版)
- 2024年湖南省公務(wù)員錄用考試《行測(cè)》真題及答案解析
- 火災(zāi)自動(dòng)報(bào)警及其消防聯(lián)動(dòng)系統(tǒng)技術(shù)規(guī)格書
- 設(shè)備管理人員安全培訓(xùn)
- 分布式光伏培訓(xùn)
- 山東省房屋市政工程安全監(jiān)督機(jī)構(gòu)人員業(yè)務(wù)能力考試題庫(kù)-上(單選題)
- 2024新版(北京版)三年級(jí)英語(yǔ)上冊(cè)單詞帶音標(biāo)
- 財(cái)務(wù)審計(jì)服務(wù)方案投標(biāo)文件(技術(shù)方案)
評(píng)論
0/150
提交評(píng)論