




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、四、課程設(shè)計(jì)的總體步驟1、單個(gè)字符的顯示(如:黃):library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity xianshi isport( clk2:in std_logic;rck,sck:out std_logic;si:out std_logic);end ;architecture one of xianshi issignal sel:std_logic_vector(3 downto 0);signal q: std_logic_vector(31 downto 0);signa
2、l i:integer range 0 to 31;signal coi:std_logic;begin process(sel,clk1)begincase sel is when others =>null; end case; if clk1'event and clk1='1'then si<=q(i);i<=i+1;coi<='0' if i=31 then i<=0;coi<='1'sel<=sel+'1' end if; rck<=not coi; end if
3、;end process;sck<=clk1;end ;時(shí)序仿真:從圖中可以看出,當(dāng)clk1在第32個(gè)上升沿rck變?yōu)榈碗婎l,sck與clk1是同一電頻,故此程序滿足要求。 2、多個(gè)字符的跳動(dòng)顯示(如:黃小紅):library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity xianshi isport( clk1:in std_logic;clk2:in std_logic;rck,sck:out std_logic;si:out std_logic);end ;architecture o
4、ne of xianshi issignal lie:std_logic_vector(3 downto 0);signal sel:std_logic_vector(3 downto 0);signal q: std_logic_vector(31 downto 0);signal i:integer range 0 to 31;signal coi:std_logic;begin process(sel,clk1,clk2)beginif clk2'event and clk2='1' then lie<=lie+'1' end if; cas
5、e lie is when "0000"=> case sel is when others =>null; end case; when"0001"=> case sel is when others =>null; end case; when"0010"=> case sel is when others =>null; end case; when others=>null; end case; if clk1'event and clk1='1'then si
6、<=q(i);i<=i+1;coi<='0' if i=31 then i<=0;coi<='1'sel<=sel+'1' end if; rck<=not coi; end if;end process;sck<=clk1;end ; 時(shí)序仿真:從上圖看出,當(dāng)clk1在第32個(gè)上升沿rck變?yōu)榈碗婎l,sck與clk1是同一電頻,故此程序滿足要求。3、漢字的滾動(dòng)和動(dòng)畫(huà)顯示(如:黃小紅+笑臉):library ieee;use ieee.std_logic_1164.all;use ieee.std_
7、logic_unsigned.all;entity xianshi isport( clk1:in std_logic;clk2:in std_logic;rck,sck:out std_logic;si:out std_logic);end ;architecture one of xianshi issignal lie:std_logic_vector(3 downto 0);signal sel:std_logic_vector(3 downto 0);signal q: std_logic_vector(31 downto 0);signal i:integer range 0 to
8、 31;signal coi:std_logic;begin process(sel,clk1,clk2)beginif clk2'event and clk2='1' then lie<=lie+'1' end if; case lie is when "0000"=> case sel is when others =>null; end case; when"0001"=> case sel is when others =>null; end case; when"0
9、010"=> case sel is when others =>null; end case; when"0011"=> case sel is when others =>null; end case; when"0100"=> case sel is when others =>null; end case; when"0101"=> case sel is when others =>null; end case; when"0110"=> c
10、ase sel is when others =>null; end case; when"0111"=> case sel is when others =>null; end case; when"1000"=> case sel is when others =>null; end case; when"1001"=> case sel is when others =>null; end case; when"1010"=> case sel is when
11、others =>null; end case; when"1011"=> case sel is when others =>null; end case; when"1100"=> case sel is when others =>null; end case; when"1101"=> case sel is when others =>null; end case; when"1110"=> case sel is when others =>null
12、; end case; when"1111"=> case sel is when others =>null; end case;when others =>null; end case; if clk1'event and clk1='1'then si<=q(i);i<=i+1;coi<='0' if i=31 then i<=0;coi<='1'sel<=sel+'1' end if; rck<=not coi; end if;end
13、process;sck<=clk1;end ;時(shí)序仿真:從上圖看出,當(dāng)clk1在第32個(gè)上升沿rck變?yōu)榈碗婎l,sck與clk1是同一電頻,si為輸出電頻,故此程序滿足要求。五、結(jié)論與收獲在三周的EDA課程設(shè)計(jì)過(guò)程中,我對(duì)VHDL語(yǔ)言有了更加深刻的認(rèn)識(shí)。VHDL是超高速集成電路的硬件描述語(yǔ)言,它能夠描述硬件的結(jié)構(gòu)、行為與功能。另外,VHDL具有并發(fā)性,采用自上而下的結(jié)構(gòu)式設(shè)計(jì)方法,適合大型設(shè)計(jì)工程的分工合作。在編寫(xiě)程序的時(shí)候,我才發(fā)現(xiàn)能看懂程序和能自己寫(xiě)程序是兩個(gè)完全不同的概念,自己一開(kāi)始寫(xiě)程序時(shí),即便是一個(gè)很簡(jiǎn)單的功能模塊,在編譯時(shí)也可能產(chǎn)生很多錯(cuò)誤,在不斷的改錯(cuò)過(guò)程中,自己對(duì)VHDL語(yǔ)言的語(yǔ)法結(jié)構(gòu)有了深刻的理解,對(duì)編譯過(guò)程中常見(jiàn)的錯(cuò)誤也有了全面的認(rèn)識(shí)。通過(guò)這十三周的課程設(shè)計(jì),我在熟悉了基于FPGA設(shè)計(jì)的同時(shí),也學(xué)到了很多在學(xué)習(xí)課本知識(shí)時(shí)所體會(huì)不到的東西。完成此次設(shè)計(jì)后,我不僅能對(duì)Quartus II開(kāi)發(fā)仿真軟件熟練操作,能達(dá)到學(xué)以致用,同時(shí)還掌握了矩陣鍵盤(pán)和16×16點(diǎn)陣的工作原理。經(jīng)過(guò)這一過(guò)程,我發(fā)現(xiàn)平常的學(xué)習(xí)在注重理論知識(shí)的掌握同時(shí),要加強(qiáng)實(shí)驗(yàn)環(huán)節(jié),只有通過(guò)不斷
溫馨提示
- 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至2030年中國(guó)空氣壓縮引火儀市場(chǎng)分析及競(jìng)爭(zhēng)策略研究報(bào)告
- 2025至2030年中國(guó)壓電陶瓷傳感器市場(chǎng)分析及競(jìng)爭(zhēng)策略研究報(bào)告
- 防跌倒墜床的護(hù)理措施
- 起重裝卸培訓(xùn)
- 蒙氏幼兒園新學(xué)期培訓(xùn)
- 2025年吉林省電工證考試試卷帶解析及答案【典優(yōu)】
- 2025年安徽電子信息職業(yè)技術(shù)學(xué)院?jiǎn)握姓Z(yǔ)文測(cè)試題庫(kù)完整版
- 田野上的春天課件
- 上下班途中交通安全培訓(xùn)
- 教育系統(tǒng)校園安全培訓(xùn)
- 兒童護(hù)照辦理委托書(shū)
- 臨床技能培訓(xùn)中心建設(shè)方案
- 《中藥調(diào)劑技術(shù)》課件-中藥調(diào)劑的概念、起源與發(fā)展
- 《數(shù)據(jù)中心節(jié)能方法》課件
- 倉(cāng)儲(chǔ)式物流產(chǎn)業(yè)園建設(shè)項(xiàng)目可行性研究報(bào)告
- 國(guó)開(kāi)電大《親子關(guān)系與親子溝通》形考+大作業(yè)
- 勞務(wù)派遣服務(wù)投標(biāo)文件(技術(shù)方案)
- 2024年變電設(shè)備檢修工(高級(jí))技能鑒定理論考試題庫(kù)-上(選擇題)
- 中醫(yī)診所負(fù)責(zé)人合作協(xié)議書(shū)范文
- 四年級(jí)數(shù)學(xué)下冊(cè) 典型例題系列之第一單元:平移、旋轉(zhuǎn)和軸對(duì)稱(chēng)的綜合作圖專(zhuān)項(xiàng)練習(xí) 帶解析(蘇教版)
- 科技助力鴨養(yǎng)殖提效
評(píng)論
0/150
提交評(píng)論