




已閱讀5頁(yè),還剩8頁(yè)未讀, 繼續(xù)免費(fèi)閱讀
版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
EDA課程設(shè)計(jì)報(bào)告報(bào) 告 題 目: 作者所在系部: 作者所在專(zhuān)業(yè): 作者所在班級(jí): 作 者 姓 名 : 指導(dǎo)教師姓名: 完 成 時(shí) 間 : 內(nèi)容摘要搶答器是為智力競(jìng)賽參賽者答題時(shí)進(jìn)行搶答而設(shè)計(jì)的一種優(yōu)先判決器電路,競(jìng)賽者可以分為若干組,搶答時(shí)各組對(duì)主持人提出的問(wèn)題要在最短的時(shí)間內(nèi)做出判斷,并按下?lián)尨鸢存I回答問(wèn)題。當(dāng)?shù)谝粋€(gè)人按下按鍵后,則在顯示器上顯示該組的號(hào)碼,對(duì)應(yīng)的燈亮,同時(shí)電路將其他各組按鍵封鎖,使其不起作用。若搶答時(shí)間內(nèi)無(wú)人搶答,則報(bào)警燈亮?;卮鹜陠?wèn)題后,由主持人將所有按鍵恢復(fù),重新開(kāi)始下一輪搶答。因此要完成搶答器的邏輯功能,該電路應(yīng)包括搶答器鑒別模塊、搶答器計(jì)數(shù)模塊、報(bào)警模塊、譯碼模塊、分頻模塊。關(guān)鍵詞:搶答鑒別 封鎖 計(jì)數(shù) 報(bào)警Abstract Responder is the answer for the quiz participants to answer in the design when a priority decision circuit, and the race can be divided into several groups, answer in each group on the host issues raised in the shortest possible time to make judgments , and press the answer in answer key. After pressing the button when the first person, then the display shows the number of the group, the corresponding lights, while other groups will be key circuit block, it does not work. If the answer in time, no answer in, the alarm lights. Answering questions, all the keys from the host to restore and re-start the next round of the Responder. So to complete the answering device logic functions, the circuit should include Responder identification module, Responder counting module, alarm module, decoding module, frequency module. KEY: Responder Identification Blockade Count Alarm一、 設(shè)計(jì)要求1.搶答器同時(shí)供4名選手或4個(gè)代表隊(duì)比賽,分別用4個(gè)按鈕S0 S3表示。2.設(shè)置一個(gè)系統(tǒng)清除和搶答控制開(kāi)關(guān)rst,該開(kāi)關(guān)由主持人控制。3搶答器具有鎖存與顯示功能。即選手按動(dòng)按鈕,鎖存相應(yīng)的編號(hào),并在LED和數(shù)碼管上顯示,同時(shí)提示燈亮。選手搶答實(shí)行優(yōu)先鎖存,優(yōu)先搶答選手的編號(hào)一直保持到主持人將系統(tǒng)清除為止。4. 搶答器具有定時(shí)搶答功能,且一次搶答的時(shí)間由主持人設(shè)定(如20秒)5. 如果定時(shí)時(shí)間已到,無(wú)人搶答,本次搶答無(wú)效,系統(tǒng)報(bào)警并禁止搶答,定時(shí)顯示器上顯示20。二、方案設(shè)計(jì)與論證1、 概述將該任務(wù)分成五個(gè)模塊進(jìn)行設(shè)計(jì),分別為:搶答器鑒別模塊、搶答器計(jì)時(shí)模塊、報(bào)警模塊、分頻模塊、譯碼模塊。2、 搶答器鑒別模塊:在這個(gè)模塊中主要實(shí)現(xiàn)搶答過(guò)程中的搶答功能,并能對(duì)超前搶答進(jìn)行警告,還能記錄無(wú)論是正常搶答還是朝前搶答者的臺(tái)號(hào),并且能實(shí)現(xiàn)當(dāng)有一路搶答按鍵按下時(shí),該路搶答信號(hào)將其余的搶答信號(hào)封鎖的功能。其中有四個(gè)搶答信號(hào)s0、s1、s2、s3;搶答狀態(tài)顯示信號(hào)states;搶答與警報(bào)時(shí)鐘信號(hào)clk2;系統(tǒng)復(fù)位信號(hào)rst;警報(bào)信號(hào)warm。3、 搶答器計(jì)數(shù)模塊:在這個(gè)模塊中主要實(shí)現(xiàn)搶答過(guò)程中的計(jì)時(shí)功能,在有搶答開(kāi)始后進(jìn)行20秒的倒計(jì)時(shí),并且在20秒倒計(jì)時(shí)后無(wú)人搶答顯示超時(shí)并報(bào)警。其中有搶答時(shí)鐘信號(hào)clk1;系統(tǒng)復(fù)位信號(hào)rst;搶答使能信號(hào)start;無(wú)人搶答警報(bào)信號(hào)warn;計(jì)時(shí)中止信號(hào)stop;計(jì)時(shí)十位和個(gè)位信號(hào)tb,ta。4、 報(bào)警模塊:在這個(gè)模塊中主要實(shí)現(xiàn)搶答過(guò)程中的報(bào)警功能,當(dāng)主持人按下控制鍵,有限時(shí)間內(nèi) 人搶答或是計(jì)數(shù)到時(shí)蜂鳴器開(kāi)始報(bào)警,計(jì)數(shù)停止信號(hào)stop;狀態(tài)輸出信號(hào)alm;計(jì)數(shù)脈沖clk。5、 譯碼模塊:在這個(gè)模塊中主要實(shí)現(xiàn)搶答過(guò)程中將BCD碼轉(zhuǎn)換成7段的功能。6、 分頻模塊:在這個(gè)模塊中主要實(shí)現(xiàn)搶答過(guò)程中所需的時(shí)鐘信號(hào)。7、 頂層文件:在這個(gè)模塊中是對(duì)前五個(gè)模塊的綜合編寫(xiě)的頂層文件。三、單元電路設(shè)計(jì)(一)搶答鑒別模塊1.VHDL源程序library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity xuanshou is port(rst,clk2:in std_logic; s0,s1,s2,s3:in std_logic; states:buffer std_logic_vector(3 downto 0); light:buffer std_logic_vector(3 downto 0);warm:out std_logic);end xuanshou ;architecture one of xuanshou issignal st:std_logic_vector(3 downto 0);beginp1:process(s0,rst,s1,s2,s3,clk2) begin if rst=0 then warm=0;st=0000; elsif clk2event and clk2=1 then if (s0=1 or st(0)=1)and not( st(1)=1 or st(2)=1 or st(3)=1 ) then st(0)=1; end if ; if (s1=1 or st(1)=1)and not( st(0)=1 or st(2)=1 or st(3)=1 ) then st(1)=1; end if ; if (s2=1 or st(2)=1)and not( st(0)=1 or st(1)=1 or st(3)=1 ) then st(2)=1; end if ; if (s3=1 or st(3)=1)and not( st(0)=1 or st(1)=1 or st(2)=1 ) then st(3)=1; end if ;warm=st(0) or st(1) or st(2) or st(3);end if ;end process p1;p2:process(states(0),states(1),states(2),states(3),light) begin if (st=0000) then states=0000; elsif (st=0001) then states=0001;elsif (st=0010) then states=0010; elsif (st=0100) then states=0011;elsif (st=1000) then states=0100; end if; light=st;end process p2;end one;2. 搶答鑒別仿真圖3搶答鑒別元件圖(二)計(jì)數(shù)模塊1. VHDL源程序library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity JS is port(clk1,rst,start,stop:in std_logic; ta,tb:buffer std_logic_vector(3 downto 0);end JS;architecture one of JS issignal co:std_logic;beginp1:process(clk1,rst,start,stop,ta) begin if rst=0 or stop=1 then ta=0000; elsif clk1event and clk1=1 then co=0; if start=1 then if ta=0000 then ta=1001;co=1; else ta=ta-1; end if; end if; end if;end process p1;p2:process(co,rst,start,stop,tb) begin if rst=0 or stop=1 then tb=0010; elsif coevent and co=1 then if start=1 then if tb=0000 then tb=0011; else tb=tb-1; end if; end if; end if;end process p2;end one ;2.計(jì)數(shù)仿真圖3.計(jì)數(shù)元件圖 (三)報(bào)警模塊1. VHDL源程序library ieee;use ieee.std_logic_1164.all;entity shengyin isport(rst:in std_logic; warn:in std_logic; clk:in std_logic; ta,tb:in integer range 0 to 9; stop:in std_logic; alm:out std_logic ); end; architecture bhv of shengyin is begin process(warn,ta,tb,stop,clk) begin if rst=0then alm=0; elsif stop=1then alm=0; elsif ta=0 and tb=0 then alm=clk; elsif warn=1then alm=clk; else almdoutdoutdoutdoutdoutdoutdoutdoutdoutdoutdout=1111111; END CASE; END PROCESS; END rtl;2.譯碼元件圖(五)分頻模塊(用500HZ的時(shí)鐘和1HZ的計(jì)數(shù)時(shí)鐘)1Div100library ieee; use ieee.std_logic_1164.all; entity div100 is port( clk:in std_logic; clk100:out std_logic ); end div100; architecture art of div100 is signal num: integer range 0 to 99; signal temp:std_logic; begin process(clk) begin if clkevent and clk=1thenif num=99 then num=0;temp=not temp;else num=num+1; end if; clk100=temp; end if; end process; end art; 仿真圖:Div100元件圖:2.DIV50M:這是一個(gè)50M分頻,將50MHZ的信號(hào)分為1HZ。LIBRARY IEEE;USE IEEE.STD_LOGIC_1164.ALL;USE IEEE.STD_LOGIC_ARITH.ALL;USE IEEE.STD_LOGIC_UNSIGNED.ALL;ENTITY fenpin ISPORT(clk : IN STD_LOGIC;clk50 : OUT STD_LOGIC);END fenpin;ARCHITECTURE rtl OF fenpin ISSIGNAL count : STD_LOGIC_VECTOR(25 DOWNTO 0);BEGINPROCESS(clk)BEGINIF (clkevent AND clk=1) THENIF(count=10111110101111000010000000) THENCount =00000000000000000000000000;ELSECount = count +1;END IF ;END IF ;END PROCESS;PROCESS(clk)BEGINIF (clkevent AND clk=1) THENIF(count=10111110101111000010000000) THENclk50 = 1;ELSEclk50 = 0;END IF ;END IF ;END PROCESS;END; fenpin元件圖(六)頂層文件1.仿真圖:2. QDQ_1主電路圖連線四 鎖定引腳及下載1.選擇鎖定引腳,再重新編譯一次。在編程窗的Mode中選擇Active Serial programming編程模式,打開(kāi)編程文件,選中QD
溫馨提示
- 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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年中國(guó)6-氨基己酸數(shù)據(jù)監(jiān)測(cè)報(bào)告
- 2025年中國(guó)15%甲硫.霉威懸浮劑數(shù)據(jù)監(jiān)測(cè)報(bào)告
- 2025至2030年中國(guó)高效脫硫麻石水膜除塵器市場(chǎng)分析及競(jìng)爭(zhēng)策略研究報(bào)告
- 2025至2030年中國(guó)門(mén)框滾壓成型機(jī)市場(chǎng)分析及競(jìng)爭(zhēng)策略研究報(bào)告
- 2025至2030年中國(guó)金屬清洗兼防銹劑市場(chǎng)分析及競(jìng)爭(zhēng)策略研究報(bào)告
- 2025至2030年中國(guó)視頻資料服務(wù)管理系統(tǒng)市場(chǎng)分析及競(jìng)爭(zhēng)策略研究報(bào)告
- 2025至2030年中國(guó)膠帶輸送自動(dòng)調(diào)偏器市場(chǎng)分析及競(jìng)爭(zhēng)策略研究報(bào)告
- 2025至2030年中國(guó)管道自動(dòng)增壓泵市場(chǎng)分析及競(jìng)爭(zhēng)策略研究報(bào)告
- 2025至2030年中國(guó)白晶粉市場(chǎng)分析及競(jìng)爭(zhēng)策略研究報(bào)告
- 2025至2030年中國(guó)浮雕雙龍棍劍市場(chǎng)分析及競(jìng)爭(zhēng)策略研究報(bào)告
- PSS的生產(chǎn)工藝及原理課件
- 2023-2024學(xué)年浙江省富陽(yáng)市小學(xué)數(shù)學(xué)五年級(jí)下冊(cè)期末自測(cè)試卷
- 防火墻安全策略檢查表
- 研究借鑒晉江經(jīng)驗(yàn)-加快縣域經(jīng)濟(jì)發(fā)展
- GB/T 12706.4-2020額定電壓1 kV(Um=1.2 kV)到35 kV(Um=40.5 kV)擠包絕緣電力電纜及附件第4部分:額定電壓6 kV(Um=7.2 kV)到35 kV(Um=40.5 kV)電力電纜附件試驗(yàn)要求
- 2023年鎮(zhèn)江丹陽(yáng)市民政局系統(tǒng)事業(yè)單位招聘筆試模擬試題及答案
- 國(guó)開(kāi)電大 操作系統(tǒng) 實(shí)驗(yàn)4:文件管理實(shí)驗(yàn)報(bào)告
- 北京理工附中小升初分班考試真題
- 安徽省小學(xué)學(xué)生學(xué)籍表
- 無(wú)創(chuàng)腦血氧監(jiān)護(hù)儀技術(shù)審評(píng)報(bào)告
- 糖尿病足的診斷與治療ppt課件
評(píng)論
0/150
提交評(píng)論