




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、四、課程設(shè)計的總體步驟1、單個字符的顯示(如:黃):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 ;時序仿真:從圖中可以看出,當clk1在第32個上升沿rck變?yōu)榈碗婎l,sck與clk1是同一電頻,故此程序滿足要求。 2、多個字符的跳動顯示(如:黃小紅):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 ; 時序仿真:從上圖看出,當clk1在第32個上升沿rck變?yōu)榈碗婎l,sck與clk1是同一電頻,故此程序滿足要求。3、漢字的滾動和動畫顯示(如:黃小紅+笑臉):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 ;時序仿真:從上圖看出,當clk1在第32個上升沿rck變?yōu)榈碗婎l,sck與clk1是同一電頻,si為輸出電頻,故此程序滿足要求。五、結(jié)論與收獲在三周的EDA課程設(shè)計過程中,我對VHDL語言有了更加深刻的認識。VHDL是超高速集成電路的硬件描述語言,它能夠描述硬件的結(jié)構(gòu)、行為與功能。另外,VHDL具有并發(fā)性,采用自上而下的結(jié)構(gòu)式設(shè)計方法,適合大型設(shè)計工程的分工合作。在編寫程序的時候,我才發(fā)現(xiàn)能看懂程序和能自己寫程序是兩個完全不同的概念,自己一開始寫程序時,即便是一個很簡單的功能模塊,在編譯時也可能產(chǎn)生很多錯誤,在不斷的改錯過程中,自己對VHDL語言的語法結(jié)構(gòu)有了深刻的理解,對編譯過程中常見的錯誤也有了全面的認識。通過這十三周的課程設(shè)計,我在熟悉了基于FPGA設(shè)計的同時,也學到了很多在學習課本知識時所體會不到的東西。完成此次設(shè)計后,我不僅能對Quartus II開發(fā)仿真軟件熟練操作,能達到學以致用,同時還掌握了矩陣鍵盤和16×16點陣的工作原理。經(jīng)過這一過程,我發(fā)現(xiàn)平常的學習在注重理論知識的掌握同時,要加強實驗環(huán)節(jié),只有通過不斷
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年勞動合同續(xù)簽審批表
- 2025標準合同樣本:廣告制作合同示范文本
- 2025實習生合同協(xié)議書(帶封面模板)
- 2025年城市供水特許經(jīng)營合同協(xié)議及注意事項(合同協(xié)議范本)
- 2025年遼寧省營口市中考二模語文試題
- 我眼中的計算機-計算機開機背后的故事
- 2025年助理物流師試題
- 2025年班主任德育工作個人總結(jié)模版
- 幼兒園趣味互動課件
- 2024年及2025年一季度上市銀行業(yè)績解讀:非息短期擾動業(yè)績基本面向好趨勢不變213mb
- 2025年安徽合肥東部新中心建設(shè)投資限公司招聘8人高頻重點提升(共500題)附帶答案詳解
- 水循環(huán)課件完整版本
- 2025年福建福州地鐵招聘筆試參考題庫含答案解析
- 2024年公司政工專業(yè)技術(shù)工作總結(jié)樣本(4篇)
- 2024年小學生航空航天知識競賽題庫附答案 (共150題)
- 2023新修訂版《中華人民共和國公司法》學習解讀
- 環(huán)境影響評價工程師之環(huán)評法律法規(guī)題庫及答案
- 教育系統(tǒng)后備干部考試題庫及答案
- DB36T 1899-2023 水運工程大臨建設(shè)指南
- 2025年公務(wù)員考試《行測》模擬題及答案(詳細解析)
- 2024員工質(zhì)量意識培訓
評論
0/150
提交評論