版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、本科課程設(shè)計(jì)報(bào)告課程名稱: EDA計(jì)數(shù)與FPGA應(yīng)用設(shè)計(jì) 設(shè)計(jì)題目: 交通燈控制器 實(shí)驗(yàn)地點(diǎn): 跨越機(jī)房 專業(yè)班級: 電信0901 學(xué)號: 2009001249 學(xué)生姓名: 趙巖 指導(dǎo)教師: 張文愛 年 月 日 設(shè)計(jì)一:三位十進(jìn)制計(jì)數(shù)顯示器一、 設(shè)計(jì)目的:1、 掌握時(shí)序電路中多進(jìn)程的VHDL的描述方法。2、 掌握層次化設(shè)計(jì)方法。3、熟悉EDA的仿真分析和硬件測試技術(shù)。二、設(shè)計(jì)原理三位十進(jìn)制計(jì)數(shù)顯示器分三部分完成,先設(shè)計(jì)十進(jìn)制計(jì)數(shù)電路,再設(shè)計(jì)顯示譯碼電路,最后設(shè)計(jì)一個(gè)頂層文件將兩者連接起來。三源程序1、 三位十進(jìn)制計(jì)數(shù)器的三位分三個(gè)進(jìn)程描述,含有同步清0信號RESET和計(jì)數(shù)使能控制信號CINLI
2、BRARY IEEE;USE IEEE.STD_LOGIC_1164.ALL;USE IEEE.STD_LOGIC_UNSIGNED.ALL;ENTITY COU3 IS PORT(CLK,RESET,CIN:IN STD_LOGIC; CO:OUT STD_LOGIC; A,B,C:OUT STD_LOGIC_VECTOR(3 DOWNTO 0); END COU3 ;ARCHITECTURE ART OF COU3 IS SIGNAL AP,BP,CP:STD_LOGIC_VECTOR(3 DOWNTO 0); BEGIN KK1:PROCESS(CLK) BEGIN IF (CLK
3、9;EVENT AND CLK='1') THEN IF (RESET='0') THEN AP<="0000" ELSIF (CIN='1') THEN IF (AP="1001") THEN AP<="0000" ; ELSE AP<=AP+'1' END IF; END IF; END IF; END PROCESS KK1;KK2:PROCESS(CLK) BEGIN IF (CLK'EVENT AND CLK='1')
4、THEN IF (RESET='0') THEN BP<="0000" ELSIF (CIN='1') AND (AP="1001") THEN IF BP="1001" THEN BP<="0000" ELSE BP<=BP+'1' END IF; END IF; END IF; END PROCESS KK2;KK3: PROCESS(CLK) BEGIN IF (CLK'EVENT AND CLK='1') THEN I
5、F (RESET='0') THEN CP<="0000" ELSIF (CIN='1') AND (AP="1001") AND (BP="1001") THEN IF CP="1001" THEN CP<="0000" ELSE CP<=CP+'1' END IF; END IF; END IF; END PROCESS KK3;PROCESS(CLK) IS BEGIN IF CLK'EVENT AND CLK=
6、39;1' THEN IF AP="1001" AND BP="1001" AND CP="1001" THEN CO<='1' ELSE CO<='0' END IF; END IF; END PROCESS; A<=AP; B<=BP; C<=CP;END ART;2、七段顯示譯碼電路VHDL設(shè)計(jì)文件LIBRARY IEEE;USE IEEE.STD_LOGIC_1164.ALL; ENTITY YIMA7 IS PORT(A:IN STD_LOGIC_VECT
7、OR(3 DOWNTO 0); YIMA:OUT STD_LOGIC_VECTOR(6 DOWNTO 0); END YIMA7; ARCHITECTURE ART OF YIMA7 IS BEGIN PROCESS(A) IS BEGIN CASE A IS WHEN "0000"=>YIMA<="1000000" WHEN "0001"=>YIMA<="1111001" WHEN "0010"=>YIMA<="0100100" WHEN
8、 "0011"=>YIMA<="0110000" WHEN "0100"=>YIMA<="0011001" WHEN "0101"=>YIMA<="0010010" WHEN "0110"=>YIMA<="0000010" WHEN "0111"=>YIMA<="1111000" WHEN "1000"=>YIM
9、A<="0000000" WHEN "1001"=>YIMA<="0010000" WHEN OTHERS=>YIMA<="1111111" END CASE; END PROCESS; END ART;3、三位顯示譯碼頂層文件LIBRARY IEEE;USE IEEE.STD_LOGIC_1164.ALL;ENTITY JISHUXIANSHI IS PORT(CLK,RESET,EN:IN STD_LOGIC; SEG1,SEG2,SEG3:OUT STD_LOGIC_VECTOR
10、(6 DOWNTO 0);END JISHUXIANSHI; ARCHITECTURE ART OF JISHUXIANSHI IS COMPONENT YIMA7 PORT(A:IN STD_LOGIC_VECTOR(3 DOWNTO 0); YIMA:OUT STD_LOGIC_VECTOR(6 DOWNTO 0); END COMPONENT; COMPONENT COU3 PORT(CLK,RESET,CIN:IN STD_LOGIC; CO:OUT STD_LOGIC; A,B,C:OUT STD_LOGIC_VECTOR(3 DOWNTO 0); END COMPONENT; SI
11、GNAL IN_A,IN_B,IN_C:STD_LOGIC_VECTOR(3 DOWNTO 0); BEGIN U0:COU3 PORT MAP(CLK,RESET,EN,IN_A,IN_B,IN_C); U1:YIMA7 PORT MAP(IN_A,SEG1); U2:YIMA7 PORT MAP(IN_B,SEG2); U3:YIMA7 PORT MAP(IN_C,SEG3);END ART;四、仿真出圖五、下載到電路板得到設(shè)計(jì)結(jié)果顯示三位十進(jìn)制計(jì)數(shù)設(shè)計(jì)二:交通燈控制器一、設(shè)計(jì)要求設(shè)計(jì)一個(gè)由一條支干道和一條主干道的匯合點(diǎn)形成的十字交叉路口的交通燈控制器,主要要求如下:(1).主、支干道各設(shè)
12、有一個(gè)綠、黃、紅指示燈,兩個(gè)顯示數(shù)碼管。(2)主干道處于常允許狀態(tài),兩支干道有車來才允許通行。(3)當(dāng)主、支干道有車時(shí),兩者交替通行,主干道每次放行45s,支干道每次放行25s,在每次由亮綠燈變成亮紅燈轉(zhuǎn)換過程中,要亮5s黃燈作為過渡,并進(jìn)行減計(jì)時(shí)顯示。二、 設(shè)計(jì)方案1、分模塊設(shè)計(jì)1)、紅、綠、黃燈控制模塊,模塊名JTDKZ;2)、倒計(jì)時(shí)傳輸、控制模塊XSKZ;3)、倒計(jì)時(shí)45sCNT45s;4)、倒計(jì)時(shí)25sCNT25s;5)、倒計(jì)時(shí)5sCNT05s。6)、輸入、輸出。2、模塊設(shè)計(jì)思路1)、JTDKZ根據(jù)交通燈顯示有4種狀態(tài),可以采用CASE語句設(shè)置選擇4種狀態(tài)。設(shè)置3個(gè)輸入:CLK(時(shí)鐘脈
13、沖)、SB(支干道傳感器)、SM(主干道傳感器)。2)、XSKZ根據(jù)需要交通燈顯示的不同數(shù)倒計(jì)時(shí)據(jù)設(shè)置4個(gè)輸入使能信號:EN45(45s倒計(jì)時(shí)使能信號)、EN25(25s倒計(jì)時(shí)使能信號)、EN05(5s倒計(jì)時(shí)使能信號);再設(shè)置5個(gè)倒計(jì)時(shí)計(jì)數(shù)數(shù)據(jù)輸入信號將此時(shí)倒計(jì)時(shí)數(shù)據(jù)輸出:AIN45M、AIN45B、AIN25M、AIN25B、AIN05;2個(gè)輸出信號使數(shù)碼管顯示正在倒計(jì)時(shí)的時(shí)間。3)、CNT45S根據(jù)倒計(jì)時(shí)計(jì)數(shù)的要求設(shè)置3個(gè)輸入信號:CLK(計(jì)數(shù)脈沖)、EN45(計(jì)數(shù)使能)、SB(支干道傳感器信號);2個(gè)輸出DOUT45M、DOUT45B,分別用于主、支干道顯示。 4)、CNT25s根據(jù)倒計(jì)
14、時(shí)計(jì)數(shù)的要求設(shè)置4個(gè)輸入信號:CLK(計(jì)數(shù)脈沖)、EN45(計(jì)數(shù)使能)、SM(主干道傳感器信號)、SB(支干道傳感器信號);2個(gè)輸出DOUT25M、DOUT25B,分別用于主、支干道顯示。 5)、CNT05s根據(jù)倒計(jì)時(shí)計(jì)數(shù)的要求設(shè)置3個(gè)輸入信號:CLK(計(jì)數(shù)脈沖)、EN05B(計(jì)數(shù)使能)、EN05M(計(jì)數(shù)使能);1個(gè)輸出DOUT05,用于主、支干道顯示。 6)、輸入輸出模塊,3個(gè)輸入分別為:CLK、SB、SM,2個(gè)輸出分別為DOUT17.0、DOUT27.0。三、設(shè)計(jì)源程序:LIBRARY IEEE;USE IEEE.STD_LOGIC_1164.ALL;ENTITY JTDKZ IS POR
15、T(CLK,SM,SB:IN STD_LOGIC; MR,MY0,MG0,BR,BY0,BG0:OUT STD_LOGIC);END ENTITY JTDKZ;ARCHITECTURE ART OF JTDKZ IS TYPE STATE_TYPE IS(A,B,C,D); SIGNAL STATE:STATE_TYPE; BEGIN CNT:PROCESS(CLK)IS VARIABLE S:INTEGER RANGE 0 TO 45; VARIABLE CLR,EN:BIT; BEGIN IF(CLK'EVENT AND CLK='1')THEN IF CLR=
16、39;0'THEN S:=0; ELSIF EN='0'THEN S:=S; ELSE S:=S+1; END IF; CASE STATE IS WHEN A=>MR<='0'MY0<='0'MG0<='1'BR<='1'BY0<='0'BG0<='0' IF(SB AND SM)='1' THEN IF S=45 THEN STATE<=B;CLR:='0'EN:='0' EL
17、SE STATE<=A;CLR:='1'EN:='1' END IF; ELSIF(SB AND(NOT SM)='1'THEN STATE<=B;CLR:='0'EN:='0' ELSE STATE<=A;CLR:='1'EN:='1' END IF; WHEN B=>MR<='0'MY0<='1'MG0<='0'BR<='1'BY0<='0'BG0
18、<='0' IF S=5 THEN STATE<=C;CLR:='0'EN:='0' ELSE STATE<=B;CLR:='1'EN:='1' END IF; WHEN C=>MR<='1'MY0<='0'MG0<='0'BR<='0'BY0<='0'BG0<='1' IF(SM AND SB)='1'THEN IF S=25 THEN STA
19、TE<=D;CLR:='0'EN:='0' ELSE STATE<=C;CLR:='1'EN:='1' END IF; ELSIF SB='0' THEN STATE<=D;CLR:='0'EN:='0' ELSE STATE<=C;CLR:='1'EN:='1' END IF; WHEN D=>MR<='1'MY0<='0'MG0<='0'BR<=&
20、#39;0'BY0<='1'BG0<='0' IF S=5 THEN STATE<=A;CLR:='0'EN:='0' ELSE STATE<=D;CLR:='1'EN:='1' END IF; END CASE; END IF;END PROCESS CNT;END ARCHITECTURE ART;設(shè)計(jì)仿真的截圖:XSKZ模塊的實(shí)現(xiàn)簡單設(shè)計(jì)思路:根據(jù)EN45、EN25、EN05M、EN05B的信號以及3個(gè)倒計(jì)時(shí)計(jì)數(shù)器的計(jì)數(shù)狀態(tài)決定輸出3個(gè)倒計(jì)時(shí)計(jì)數(shù)器中某個(gè)的狀態(tài)輸
21、出。原理圖模塊:設(shè)計(jì)源程序:LIBRARY IEEE;USE IEEE.STD_LOGIC_1164.ALL;USE IEEE.STD_LOGIC_UNSIGNED.ALL;ENTITY CSKZ IS PORT(INA:IN STD_LOGIC; OUTA:OUT STD_LOGIC);END ENTITY CSKZ;ARCHITECTURE ART OF CSKZ IS BEGIN PROCESS(INA)IS BEGIN IF INA='1'THEN OUTA<='1' ELSE OUTA<='0' END IF; END PR
22、OCESS;END ARCHITECTURE ART;設(shè)計(jì)仿真的截圖:CNT45S模塊的實(shí)現(xiàn)簡單思路:CLK上升沿到來時(shí),若到計(jì)時(shí)使能信號和SB信號有效,CNT45S開始計(jì)數(shù),并將輸入狀態(tài)通過DOUT45M、DOUT45B分別輸出到主、支干道顯示。 設(shè)計(jì)的原理圖模塊: 設(shè)計(jì)源程序:3LIBRARY IEEE;USE IEEE.STD_LOGIC_1164.ALL;USE IEEE.STD_LOGIC_UNSIGNED.ALL;ENTITY CNT45S IS PORT(SB,CLK,EN45:IN STD_LOGIC; DOUT45M,DOUT45B:OUT STD_LOGIC_VECTOR(
23、7 DOWNTO 0);END CNT45S;ARCHITECTURE ART OF CNT45S IS SIGNAL CNT6B:STD_LOGIC_VECTOR(5 DOWNTO 0); BEGIN PROCESS(SB,CLK,EN45) IS BEGIN IF SB='0' THEN CNT6B<=CNT6B-CNT6B-1; ELSIF(CLK'EVENT AND CLK='1')THEN IF EN45='1'THEN CNT6B<=CNT6B+1; ELSIF EN45='0'THEN CNT6B
24、<=CNT6B-CNT6B-1; END IF;END IF;END PROCESS;PROCESS(CNT6B)ISBEGINCASE CNT6B ISWHEN"000000"=>DOUT45M<="01000101"DOUT45B<="01010000"WHEN"000001"=>DOUT45M<="01000100"DOUT45B<="01001001"WHEN"000010"=>DOUT45M<
25、="01000011"DOUT45B<="01001000"WHEN"000011"=>DOUT45M<="01000010"DOUT45B<="01000111"WHEN"000100"=>DOUT45M<="01000001"DOUT45B<="01000110"WHEN"000101"=>DOUT45M<="01000000"DOUT45
26、B<="01000101"WHEN"000110"=>DOUT45M<="00111001"DOUT45B<="01000100"WHEN"000111"=>DOUT45M<="00111000"DOUT45B<="01000011"WHEN"001000"=>DOUT45M<="00110111"DOUT45B<="01000010"W
27、HEN"001001"=>DOUT45M<="00110110"DOUT45B<="01000001"WHEN"001010"=>DOUT45M<="00110101"DOUT45B<="01000000"WHEN"001011"=>DOUT45M<="00110100"DOUT45B<="01101001"WHEN"001100"=>D
28、OUT45M<="00110011"DOUT45B<="00111000"WHEN"001101"=>DOUT45M<="00110010"DOUT45B<="00110111"WHEN"001110"=>DOUT45M<="00110001"DOUT45B<="00110110"WHEN"001111"=>DOUT45M<="00110000&q
29、uot;DOUT45B<="00110101"WHEN"010000"=>DOUT45M<="00101001"DOUT45B<="00110100"WHEN"010001"=>DOUT45M<="00101000"DOUT45B<="00110011"WHEN"010010"=>DOUT45M<="00100111"DOUT45B<="00110
30、010"WHEN"010011"=>DOUT45M<="00100110"DOUT45B<="00110001"WHEN"010100"=>DOUT45M<="00100101"DOUT45B<="00110000"WHEN"010101"=>DOUT45M<="00100100"DOUT45B<="00101001"WHEN"010110&q
31、uot;=>DOUT45M<="00100011"DOUT45B<="00101000"WHEN"010111"=>DOUT45M<="00100010"DOUT45B<="00100111"WHEN"011000"=>DOUT45M<="00100001"DOUT45B<="00100110"WHEN"011001"=>DOUT45M<="
32、00100000"DOUT45B<="00100101"WHEN"011010"=>DOUT45M<="00011001"DOUT45B<="00100100"WHEN"011011"=>DOUT45M<="00011000"DOUT45B<="00100011"WHEN"011100"=>DOUT45M<="00010111"DOUT45B<=&
33、quot;00100010"WHEN"011101"=>DOUT45M<="00010110"DOUT45B<="00100001"WHEN"011110"=>DOUT45M<="00010101"DOUT45B<="00100000"WHEN"011111"=>DOUT45M<="00010100"DOUT45B<="00011001"WHEN&quo
34、t;100000"=>DOUT45M<="00010011"DOUT45B<="00011000"WHEN"100001"=>DOUT45M<="00010010"DOUT45B<="00010111"WHEN"100010"=>DOUT45M<="00010001"DOUT45B<="00010110"WHEN"100011"=>DOUT45M&
35、lt;="00010000"DOUT45B<="00010101"WHEN"100100"=>DOUT45M<="00001001"DOUT45B<="00010100"WHEN"100101"=>DOUT45M<="00001000"DOUT45B<="00010011"WHEN"100110"=>DOUT45M<="00000111"DOU
36、T45B<="00010010"WHEN"100111"=>DOUT45M<="00000110"DOUT45B<="00010001"WHEN"101000"=>DOUT45M<="00000101"DOUT45B<="00010000"WHEN"101001"=>DOUT45M<="00000100"DOUT45B<="00001001&quo
37、t;WHEN"101010"=>DOUT45M<="00000011"DOUT45B<="00001000"WHEN"101011"=>DOUT45M<="00000010"DOUT45B<="00000111"WHEN"101100"=>DOUT45M<="00000001"DOUT45B<="00000110"WHEN OTHERS=>DOUT45M&l
38、t;="00000000"DOUT45B<="00000000"END CASE;END PROCESS;END;設(shè)計(jì)仿真的截圖:CNT25S模塊的實(shí)現(xiàn)簡單思路:CLK上升沿到來時(shí),若到計(jì)時(shí)使能信號、SM信號和SB信號有效,CNT25S開始計(jì)數(shù),并將輸入狀態(tài)通過DOUT25M、DOUT25B分別輸出到主、支干道顯示。設(shè)計(jì)的原理圖模塊:設(shè)計(jì)源程序:LIBRARY IEEE;USE IEEE.STD_LOGIC_1164.ALL;USE IEEE.STD_LOGIC_UNSI GNED.ALL;ENTITY CNT25S IS PORT(SB,SM,C
39、LK,EN25:IN STD_LOGIC; DOUT25M,DOUT25B:OUT STD_LOGIC_VECTOR(7 DOWNTO 0);END ENTITY CNT25S;ARCHITECTURE ART OF CNT25S IS SIGNAL CNT5B:STD_LOGIC_VECTOR(4 DOWNTO 0); BEGINPROCESS(SB,SM,CLK,EN25)ISBEGIN IF SB='0'THEN CNT5B<=CNT5B-CNT5B-1; ELSIF SM='0'THEN CNT5B<=CNT5B-CNT5B-1; ELSIF
40、(CLK'EVENT AND CLK='1')THEN IF EN25='1'THEN CNT5B<=CNT5B+1; ELSIF EN25='0'THEN CNT5B<=CNT5B-CNT5B-1; END IF; END IF; END PROCESS; PROCESS(CNT5B)IS BEGIN CASE CNT5B IS WHEN"00000"=>DOUNT25B<="00100101"DOUT25M<="00110000" WHEN&qu
41、ot;00001"=>DOUNT25B<="00100100"DOUT25M<="00101001" WHEN"00010"=>DOUNT25B<="00100011"DOUT25M<="00101000" WHEN"00011"=>DOUNT25B<="00100010"DOUT25M<="00100111" WHEN"00100"=>DOUNT
42、25B<="00100001"DOUT25M<="00100110" WHEN"00101"=>DOUNT25B<="00100000"DOUT25M<="00100101" WHEN"00110"=>DOUNT25B<="00011001"DOUT25M<="00100100" WHEN"00111"=>DOUNT25B<="00011000&q
43、uot;DOUT25M<="00100011" WHEN"01000"=>DOUNT25B<="00010111"DOUT25M<="00100010" WHEN"01001"=>DOUNT25B<="00010110"DOUT25M<="00100001" WHEN"01010"=>DOUNT25B<="00010101"DOUT25M<="00
44、100000" WHEN"01011"=>DOUNT25B<="00010100"DOUT25M<="00011001" WHEN"01100"=>DOUNT25B<="00010011"DOUT25M<="00011000" WHEN"01101"=>DOUNT25B<="00010010"DOUT25M<="00010111" WHEN"0
45、1110"=>DOUNT25B<="00010001"DOUT25M<="00010110" WHEN"01111"=>DOUNT25B<="00010000"DOUT25M<="00010101" WHEN"10000"=>DOUNT25B<="00001001"DOUT25M<="00010100" WHEN"10001"=>DOUNT25B&
46、lt;="00001000"DOUT25M<="00010011" WHEN"10010"=>DOUNT25B<="00000111"DOUT25M<="00010010" WHEN"10011"=>DOUNT25B<="00000110"DOUT25M<="00010001" WHEN"10100"=>DOUNT25B<="00000101"
47、DOUT25M<="00010000" WHEN"10101"=>DOUNT25B<="00000100"DOUT25M<="00001001" WHEN"10110"=>DOUNT25B<="00000011"DOUT25M<="00001000" WHEN"10111"=>DOUNT25B<="00000010"DOUT25M<="000001
48、11" WHEN"11000"=>DOUNT25B<="00000001"DOUT25M<="00000110" WHEN OTHERS=>DOUNT25B<="00000000"DOUT25M<="00000000"END CASE;END PROCESS;END;設(shè)計(jì)仿真的截圖:CNT05S模塊的實(shí)現(xiàn)簡單思路:CLK上升沿到來時(shí),若到計(jì)時(shí)使能信號有效,CNT25S開始計(jì)數(shù),并將輸入狀態(tài)通過DOUT05輸出到主、支干道顯示。設(shè)計(jì)的原理圖模塊:設(shè)計(jì)源
49、程序LIBRARY IEEE;USE IEEE.STD_LOGIC_1164.ALL;USE IEEE.STD_LOGIC_UNSIGNED.ALL;ENTITY CNT05S ISPORT(CLK,EN05M,EN05B:IN STD_LOGIC; DOUT5:OUT STD_LOGIC_VECTOR(7 DOWNTO 0);END CNT05S;ARCHITECTURE ART OF CNT05S IS SIGNAL CNT3B:STD_LOGIC_VECTOR(2 DOWNTO 0); BEGIN PROCESS(CLK,EN05M,EN05B)IS BEGIN IF(CLK'E
50、VENT AND CLK='1')THEN IF EN05M='1'THEN CNT3B<=CNT3B+1; ELSIF EN05B='1'THEN CNT3B<=CNT3B+1; ELSIF EN05B='0'THEN CNT3B<=CNT3B-CNT3B-1; END IF; END IF; END PROCESS; PROCESS(CNT3B) BEGIN CASE CNT3B IS WHEN"000"=>DOUT5<="00000101" WHEN&qu
51、ot;001"=>DOUT5<="00000100" WHEN"010"=>DOUT5<="00000011" WHEN"011"=>DOUT5<="00000010" WHEN"100"=>DOUT5<="00000001" WHEN OTHERS=>DOUT5<="00000000" END CASE; END PROCESS;END;設(shè)計(jì)仿真的截圖:顯示譯碼器L
52、IBRARY IEEE;USE IEEE.STD_LOGIC_1164.ALL; ENTITY YIMA7 IS PORT(A:IN STD_LOGIC_VECTOR(3 DOWNTO 0); YIMA:OUT STD_LOGIC_VECTOR(6 DOWNTO 0); END YIMA7; ARCHITECTURE ART OF YIMA7 IS BEGIN PROCESS(A) IS BEGIN CASE A IS WHEN "0000"=>YIMA<="1000000" WHEN "0001"=>YIMA<
53、;="1111001" WHEN "0010"=>YIMA<="0100100" WHEN "0011"=>YIMA<="0110000" WHEN "0100"=>YIMA<="0011001" WHEN "0101"=>YIMA<="0010010" WHEN "0110"=>YIMA<="0000010" WHE
54、N "0111"=>YIMA<="1111000" WHEN "1000"=>YIMA<="0000000" WHEN "1001"=>YIMA<="0010000" WHEN "1010"=>YIMA<="0001000" WHEN "1011"=>YIMA<="0000011" WHEN "1100"=>YI
55、MA<="1000110" WHEN "1101"=>YIMA<="0100001" WHEN "1110"=>YIMA<="0000110" WHEN "1111"=>YIMA<="0001110" WHEN OTHERS=>NULL; END CASE; END PROCESS; END ART;整體組裝和測試自動轉(zhuǎn)換出來的源程序:LIBRARY ieee;USE ieee.std_logic_1164.
56、all; LIBRARY work;ENTITY Block1 IS port( CLK : IN STD_LOGIC;SM : IN STD_LOGIC;SB : IN STD_LOGIC;MR : OUT STD_LOGIC;MY : OUT STD_LOGIC;MG : OUT STD_LOGIC;BR : OUT STD_LOGIC;BY : OUT STD_LOGIC;BG : OUT STD_LOGIC;DOUT1 : OUT STD_LOGIC_VECTOR(7 downto 0);DOUT2 : OUT STD_LOGIC_VECTOR(7 downto 0);END Bloc
57、k1;ARCHITECTURE bdf_type OF Block1 IS component cnt05sPORT(CLK : IN STD_LOGIC; EN05M : IN STD_LOGIC; EN05B : IN STD_LOGIC; DOUT5 : OUT STD_LOGIC_VECTOR(7 downto 0);end component;component cnt25sPORT(SB : IN STD_LOGIC; SM : IN STD_LOGIC; CLK : IN STD_LOGIC; EN25 : IN STD_LOGIC; DOUT25B : OUT STD_LOGI
58、C_VECTOR(7 downto 0); DOUT25M : OUT STD_LOGIC_VECTOR(7 downto 0);end component;component cnt45sPORT(SB : IN STD_LOGIC; CLK : IN STD_LOGIC; EN45 : IN STD_LOGIC; DOUT45B : OUT STD_LOGIC_VECTOR(7 downto 0); DOUT45M : OUT STD_LOGIC_VECTOR(7 downto 0);end component;component jtdkzPORT(CLK : IN STD_LOGIC;
59、 SM : IN STD_LOGIC; SB : IN STD_LOGIC; MR : OUT STD_LOGIC; MY0 : OUT STD_LOGIC; MG0 : OUT STD_LOGIC; BR : OUT STD_LOGIC; BY0 : OUT STD_LOGIC; BG0 : OUT STD_LOGIC);end component;component xskzPORT(EN45 : IN STD_LOGIC; EN25 : IN STD_LOGIC; EN05M : IN STD_LOGIC; EN05B : IN STD_LOGIC; AIN05 : IN STD_LOG
60、IC_VECTOR(7 downto 0); AIN25B : IN STD_LOGIC_VECTOR(7 downto 0); AIN25M : IN STD_LOGIC_VECTOR(7 downto 0); AIN45B : IN STD_LOGIC_VECTOR(7 downto 0); AIN45M : IN STD_LOGIC_VECTOR(7 downto 0); DOUTB : OUT STD_LOGIC_VECTOR(7 downto 0); DOUTM : OUT STD_LOGIC_VECTOR(7 downto 0);end component;signalSYNTHESIZED_WIRE_13 : STD_LOGIC;signalSYNTHESIZED_WIRE_14 : STD_LOGIC;signalSYNTHE
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 事故反思報(bào)告范文
- 上海視覺藝術(shù)學(xué)院《路由與交換技術(shù)》2023-2024學(xué)年第一學(xué)期期末試卷
- 上海視覺藝術(shù)學(xué)院《互聯(lián)網(wǎng)開發(fā)Web框架與應(yīng)用》2023-2024學(xué)年第一學(xué)期期末試卷
- 2025酒店裝修合同書協(xié)議
- 課題申報(bào)書:高質(zhì)量教育視域下科學(xué)本質(zhì)理解轉(zhuǎn)化的實(shí)證研究
- 課題申報(bào)書:高校思想政治教育的信任問題及其紓解研究
- 2023-2024屆高考作文備考導(dǎo)向創(chuàng)新
- 25少年閏土 公開課一等獎創(chuàng)新教學(xué)設(shè)計(jì)
- 上海閔行職業(yè)技術(shù)學(xué)院《數(shù)字化教學(xué)資源設(shè)計(jì)與開發(fā)(C)》2023-2024學(xué)年第一學(xué)期期末試卷
- 上海民航職業(yè)技術(shù)學(xué)院《建設(shè)工程招投標(biāo)》2023-2024學(xué)年第一學(xué)期期末試卷
- 太常引建康中秋夜為呂叔潛賦課件
- 韓國豪華游輪7日游課件
- 高中數(shù)學(xué)成績分析報(bào)告
- 自來水廠安全教育課件
- 關(guān)愛自己從心開始課件
- 智慧航天物聯(lián)網(wǎng)
- RM60實(shí)用操作課件
- 2024歷史建筑測繪建檔規(guī)程
- 工地水電倉庫管理制度
- 2024上海高校大學(xué)《輔導(dǎo)員》招聘考試題庫及答案
- 幼兒園玩具教具投標(biāo)方案(技術(shù)標(biāo))
評論
0/150
提交評論