




版權(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山東省安全員-C證考試(專職安全員)題庫及答案
- 2025-2030學生運動服裝市場發(fā)展分析及行業(yè)投資戰(zhàn)略研究報告
- 2025-2030嬰幼兒洗衣液行業(yè)市場現(xiàn)狀供需分析及投資評估規(guī)劃分析研究報告
- 2025-2030嬰兒濕巾行業(yè)市場發(fā)展分析及發(fā)展趨勢前景預測報告
- 2025-2030聲學材料行業(yè)市場現(xiàn)狀供需分析及投資評估規(guī)劃分析研究報告
- 2025-2030塑料花市場行業(yè)市場現(xiàn)狀供需分析及投資評估規(guī)劃分析研究報告
- 空調(diào)安裝合同
- 2025-2030固體飲料行業(yè)風險投資發(fā)展分析及投資融資策略研究報告
- 2025-2030啟用無線個域網(wǎng)的設(shè)備行業(yè)市場現(xiàn)狀供需分析及投資評估規(guī)劃分析研究報告
- 2025-2030口袋面具行業(yè)市場現(xiàn)狀供需分析及重點企業(yè)投資評估規(guī)劃分析研究報告
- 《冠心病》課件(完整版)
- 醫(yī)療機構(gòu)安全管理制度與實施細則
- 針刺傷預防與處理-2024中華護理學會團體標準
- 標志設(shè)計(全套課件88P)
- 2024年度工程檢測服務(wù)框架協(xié)議版
- 制氫技術(shù)與工藝 課件 第5章 電解水制氫
- 2022年福建省高考真題化學試題(解析版)
- GB/T 12939-2024工業(yè)車輛輪輞規(guī)格系列
- 7.1文化的內(nèi)涵和功能課件-高中政治統(tǒng)編版必修四哲學與文化
- 主管護師預測卷兒科護理專業(yè)實踐能力含答案
- 02幾何壓軸小題-【黃金沖刺】考前10天中考數(shù)學極限滿分沖刺(浙江專用)原卷版+解析
評論
0/150
提交評論