




版權(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)畫顯示(如:黃小紅+笑臉):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ì)工程的分工合作。在編寫程序的時(shí)候,我才發(fā)現(xiàn)能看懂程序和能自己寫程序是兩個(gè)完全不同的概念,自己一開(kāi)始寫程序時(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í)還掌握了矩陣鍵盤和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年醫(yī)院信息化建設(shè)新趨勢(shì):電子病歷系統(tǒng)醫(yī)療信息化技術(shù)創(chuàng)新報(bào)告001
- 2025年醫(yī)院電子病歷系統(tǒng)優(yōu)化與醫(yī)療信息化產(chǎn)業(yè)生態(tài)協(xié)同創(chuàng)新模式實(shí)踐報(bào)告001
- 2025年醫(yī)藥企業(yè)研發(fā)外包(CRO)模式下的合同管理與合規(guī)性報(bào)告
- 2025年工業(yè)互聯(lián)網(wǎng)平臺(tái)量子通信技術(shù)在智能物流領(lǐng)域的應(yīng)用研究報(bào)告
- 風(fēng)格美學(xué)培訓(xùn)課件
- 2025年工業(yè)互聯(lián)網(wǎng)平臺(tái)區(qū)塊鏈智能合約安全防護(hù)技術(shù)與風(fēng)險(xiǎn)評(píng)估報(bào)告
- 2025年財(cái)富管理行業(yè)客戶需求研究與服務(wù)升級(jí)策略報(bào)告
- 2025年儲(chǔ)能電池?zé)峁芾硐到y(tǒng)在智慧農(nóng)業(yè)領(lǐng)域的應(yīng)用前景報(bào)告
- 會(huì)計(jì)培訓(xùn)試講課件
- 證監(jiān)局法制培訓(xùn)課件下載
- 2025年 浙江省考行測(cè)考試試題附答案
- JJF 2252-2025機(jī)動(dòng)車檢測(cè)用渦流式金屬探傷儀校準(zhǔn)規(guī)范
- 2025年安徽亳州機(jī)場(chǎng)管理有限公司招聘筆試參考題庫(kù)含答案解析
- 2025年四川省遂寧市中考語(yǔ)文試卷及答案
- 2025至2030年中國(guó)酮洛芬行業(yè)市場(chǎng)發(fā)展調(diào)研及投資方向分析報(bào)告
- 人教版(2024)八年級(jí)下冊(cè)物理期末復(fù)習(xí):知識(shí)點(diǎn)清單+重難點(diǎn)考點(diǎn) 學(xué)案
- 2025年高考江蘇卷物理高考真題+解析(參考版)
- 四川省眉山市東坡區(qū)2023-2024學(xué)年高二下學(xué)期6月期末聯(lián)合考試數(shù)學(xué)試題(解析版)
- 2025新高考英語(yǔ)Ⅱ卷真題聽(tīng)力原文
- 小學(xué)數(shù)學(xué)一年級(jí)下冊(cè)《思維能力》訓(xùn)練題(共6組-附答案)
- 2025年貴州茅臺(tái)酒廠集團(tuán)招聘筆試參考題庫(kù)含答案解析
評(píng)論
0/150
提交評(píng)論