edcfxh旅_游合同中游客利益保護(hù)法律問(wèn)題研究.doc_第1頁(yè)
edcfxh旅_游合同中游客利益保護(hù)法律問(wèn)題研究.doc_第2頁(yè)
edcfxh旅_游合同中游客利益保護(hù)法律問(wèn)題研究.doc_第3頁(yè)
edcfxh旅_游合同中游客利益保護(hù)法律問(wèn)題研究.doc_第4頁(yè)
免費(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)論

0/150

提交評(píng)論