



免費(fèi)預(yù)覽已結(jié)束,剩余1頁(yè)可下載查看
下載本文檔
版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
此文檔收集于網(wǎng)絡(luò),如有侵權(quán),請(qǐng)聯(lián)系網(wǎng)站刪除EDA測(cè)試一、 思想對(duì)公對(duì)私窗口各由四個(gè)數(shù)碼管分別顯示,互不干擾。都采用左移循環(huán)顯示的方式。1.對(duì)公窗口:由兩個(gè)鍵控制 cNext cDeal以下是顯示組合:cNextcDeal數(shù)碼管顯示00C00H01C00H10CxxH11CxxP2.對(duì)私窗口:有兩個(gè)鍵控制 pNext pDeal以下是顯示組合:pNextpDeal數(shù)碼管顯示00P00H01P00H10PxxH11PxxP其中,xx計(jì)數(shù)加1的結(jié)果。二、 實(shí)現(xiàn)1. 實(shí)現(xiàn)方式VHDL語(yǔ)言實(shí)現(xiàn),本次設(shè)計(jì)沒(méi)有分模塊設(shè)計(jì),而是直接將掃描電路整合到VHDL語(yǔ)言中。2. 源代碼library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity Jiaohaoji isport(clk,scanclk: in std_logic;cNext,cDeal: in std_logic;pNext,pDeal: in std_logic;duanxuan: out std_logic_vector(6 downto 0);pianxuan: buffer std_logic_vector(7 downto 0) );end Jiaohaoji;architecture bhv of Jiaohaoji issignal lednum : std_logic_vector(2 downto 0):=000;signal movenum: std_logic_vector(2 downto 0):=000;signal lcc1,lcc2,lpc1,lpc2,cPH,pPH:std_logic_vector(6 downto 0):=0000000;signal cn1,cn2,pn1,pn2: integer range 15 downto 0;signal l1,l2,l3,l4,l5,l6,l7,l8:std_logic_vector(6 downto 0);beginprocess(clk)beginif(clkevent and clk=1)thenif cNext=1thenif cDeal=1 thencn1=cn1;cn2=cn2;cPH=1100111;-CxxPelsecn2=cn2+1;if cn2=9 thencn2=0;cn1=cn1+1;if cn1=9 thencn1=0;end if;end if;cPH=0110111;-CxxHend if;else cn1=0;cn2=0;cPH=0110111;end if;if pNext=1thenif pDeal=1 thenpn1=pn1;pn2=pn2;pPH=1100111;-PxxPelsepn2=pn2+1;if pn2=9 thenpn2=0;pn1=pn1+1;if pn1=9 thenpn1=0;end if;end if;pPH=0110111;-PxxHend if;else pn1=0;pn2=0;pPH=0110111;end if;end if;end process;led:process(clk) begin if clkevent and clk=1 then if lednum=000 then l1=0000000;l2=0000000;l3=0000000;l4=0000000;l5=0000000;l6=0000000;l7=0000000;l8=0000000;lednum=001;elsif lednum=001 thenl1=0000000;l2=0000000;l3=0000000;l4=1001110;l5=0000000;l6=0000000;l7=0000000;l8=1100111;lednum=010;elsif lednum=010 thenl1=0000000;l2=0000000;l3=1001110;l4=lcc1;l5=0000000;l6=0000000;l7=1100111;l8=lpc1;lednum=011;elsif lednum=011 thenl1=0000000;l2=1001110;l3=lcc1;l4=lcc2;l5=0000000;l6=1100111;l7=lpc1;l8=lpc2;lednum=100;elsif lednum=100 thenl1=1001110;l2=lcc1;l3=lcc2;l4=cPH;l5=1100111;l6=lpc1;l7=lpc2;l8=pPH;lednum=101; elsif lednum=101 thenl1=lcc1;l2=lcc2;l3=cPH;l4=0000000;l5=lpc1;l6=lpc2;l7=pPH;l8=0000000;lednum=110; elsif lednum=110 thenl1=lcc2;l2=cPH;l3=0000000;l4=0000000;l5=lpc2;l6=pPH;l7=0000000;l8=0000000;lednum=111; elsif lednum=111 thenl1=cPH;l2=0000000;l3=0000000;l4=0000000;l5=pPH;l6=0000000;l7=0000000;l8=0000000;lednum=000;else lednumpianxuan=00000001;duanxuan=l1;movenumpianxuan=00000010;duanxuan=l2;movenumpianxuan=00000100;duanxuan=l3;movenumpianxuan=00001000;duanxuan=l4;movenumpianxuan=00010000;duanxuan=l5;movenumpianxuan=00100000;duanxuan=l6;movenumpianxuan=01000000;duanxuan=l7;movenumpianxuan=10000000;duanxuan=l8;movenum=000; end case; end if; end process move;with cn1 selectlcc1= 1111110 when 0, 0110000 when 1, 1101101 when 2, 1111001 when 3, 0110011 when 4, 1011011 when 5, 1011111 when 6, 1110000 when 7, 1111111 when 8, 1111011 when 9, 0000000 when others;with cn2 selectlcc2= 1111110 when 0, 0110000 when 1, 1101101 when 2, 1111001 when 3, 0110011 when 4, 1011011 when 5, 1011111 when 6, 1110000 when 7, 1111111 when 8, 1111011 when 9, 0000000 when others;with pn1 selectlpc1=1111110 when 0, 0110000 when 1, 1101101 when 2, 1111001 when 3, 0110011 when 4, 1011011 when 5, 1011111 when 6, 1110000 when 7, 1111111 when 8, 1111011 when 9, 0000000 when others;with pn2 selectlpc2=1111110 when 0, 0110000 whe
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 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ì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 交互信任評(píng)估-洞察及研究
- 滴灌系統(tǒng)施工技術(shù)優(yōu)化與推廣
- 公司投資并購(gòu)管理辦法
- 微凸點(diǎn)在溫度循環(huán)荷載作用下的力學(xué)行為研究
- 生活技能課程中的實(shí)踐性教學(xué)設(shè)計(jì)研究
- 星級(jí)酒店大堂管理辦法
- 醫(yī)院財(cái)務(wù)退費(fèi)管理辦法
- 港區(qū)人員安全行為分析-洞察及研究
- 旅游經(jīng)濟(jì)學(xué)科課程體系構(gòu)建與教學(xué)標(biāo)準(zhǔn)研究
- AI生成內(nèi)容侵權(quán)認(rèn)定的法律適用問(wèn)題研究
- 法拍房后申請(qǐng)住房補(bǔ)貼申請(qǐng)書(shū)
- 蘇教版譯林初中英語(yǔ)詞匯表(七年級(jí)至九年級(jí))
- 《外科學(xué)》課程基本要求與教學(xué)大綱本科生
- 工作銷(xiāo)項(xiàng)計(jì)劃表
- 抑郁病診斷證明書(shū)
- 典型振動(dòng)頻譜圖范例
- 石化質(zhì)檢員試題
- GB/T 6417.1-2005金屬熔化焊接頭缺欠分類(lèi)及說(shuō)明
- GB/T 32350.2-2015軌道交通絕緣配合第2部分:過(guò)電壓及相關(guān)防護(hù)
- GB/T 19520.16-2015電子設(shè)備機(jī)械結(jié)構(gòu)482.6 mm(19 in)系列機(jī)械結(jié)構(gòu)尺寸第3-100部分:面板、插箱、機(jī)箱、機(jī)架和機(jī)柜的基本尺寸
- (約克)機(jī)組熱回收技術(shù)
評(píng)論
0/150
提交評(píng)論