




下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
PAGEPAGE1 西華大學(xué)實驗報告第組.第組實驗報告(計算機類)開課學(xué)院及實驗室:實驗時間:年月日學(xué)生姓名學(xué)號成績學(xué)生所在學(xué)院年級/專業(yè)/班課程名稱EDA技術(shù)(機械)課程代碼實驗項目名稱序列計數(shù)器項目代碼指導(dǎo)教師項目學(xué)分一、實驗?zāi)康?.了解VHDL語言編程方法,學(xué)會熟練運用quartus軟件2.了解如何使用VHDL設(shè)計序列計數(shù)器二、內(nèi)容與設(shè)計思想1.序列計數(shù)器是經(jīng)常出現(xiàn)在通信協(xié)議編碼器電路中的器件,其基本功能是對一個8bit寬的二進制中出現(xiàn)的連續(xù)為0的個數(shù)進行統(tǒng)計2.在單個時鐘脈沖時間內(nèi),完成對一個8bit寬的二進制中出現(xiàn)的連續(xù)為0的個數(shù)進行統(tǒng)計,且要求只能有一串連0出現(xiàn),即8bit中0是相鄰的。此時認為輸出有效,并且輸出連0的個數(shù);否則認為無效,并且連0計數(shù)器清零,同時輸出錯誤指示信號。這里規(guī)定全1的序列為有效序列,其連0個數(shù)為0個。三、使用環(huán)境winXP或win7Quartusii編程環(huán)境核心代碼及調(diào)試過程序列計數(shù)器zero1模塊libraryieee;useieee.std_logic_1164.all;useieee.std_logic_unsigned.all;entityzero1is port(d:instd_logic_vector(7downto0); clk,clr:instd_logic; ge:outstd_logic_vector(3downto0); alm:outstd_logic );endzero1;architectureze_arcofzero1isbegin process(clk,clr) variables:std_logic_vector(6downto0); variablesd,ss:std_logic_vector(3downto0);begin ifclr='0'then alm<='0'; elsifclk'eventandclk='1'then s(0):=d(0)xord(1); ifs(0)='1'then ss:=ss+1; endif; s(1):=d(1)xord(2); ifs(1)='1'then ss:=ss+1; endif; s(2):=d(2)xord(3); ifs(2)='1'then ss:=ss+1; endif; s(3):=d(3)xord(4); ifs(3)='1'then ss:=ss+1; endif; s(4):=d(4)xord(5); ifs(4)='1'then ss:=ss+1; endif; s(5):=d(5)xord(6); ifs(5)='1'then ss:=ss+1; endif; s(6):=d(6)xord(7); ifs(6)='1'then ss:=ss+1; endif; ifd(0)='1'then sd:=sd+1; endif; ifd(1)='1'then sd:=sd+1; endif; ifd(2)='1'then sd:=sd+1; endif; ifd(3)='1'then sd:=sd+1; endif; ifd(4)='1'then sd:=sd+1; endif; ifd(5)='1'then sd:=sd+1; endif; ifd(6)='1'then sd:=sd+1; endif; ifd(7)='1'then sd:=sd+1; endif; ifd(0)='0'then ifss>1then alm<='1'; ge<="0000"; else ge<=8-sd; endif; endif; endif; sd:="0000"; ss:="0000"; endprocess; endze_arc;disp模塊libraryieee;useieee.std_logic_1164.all;entitydispis port(d:instd_logic_vector(3downto0); q:outstd_logic_vector(6downto0) );enddisp;architecturedisp_arcofdispisbegin process(d) begin casedis when"0000"=>q<="0111111"; when"0001"=>q<="0000110"; when"0010"=>q<="1011011"; when"0011"=>q<="1001111"; when"0100"=>q<="1100110"; when"0101"=>q<="1101101"; when"0110"=>q<="1111101"; when"0111
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 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年司鉆作業(yè)考試題及答案
- 2025年核技術(shù)輻射安全與防護職業(yè)技能資格知識考試題庫與答案
- 2025年三年英語上冊試題及答案
- 2025年機械基礎(chǔ)測試題及答案
- 2025年泛微軟件面試題及答案
- 2025年今日消防考試試題及答案
- 2025年數(shù)字命理學(xué)測試題及答案
- 2025年求基期考試題及答案
- 《企業(yè)內(nèi)部控制與制度設(shè)計》期末考試A卷答案
- 2025年黃貞權(quán)文論試題及答案
- 生物工程設(shè)備課件
- 提高團隊協(xié)作與溝通技巧
- 2022版高中生物必修二第一章測試題及答案解析
- 《商標基礎(chǔ)知識》課件
- 勞動用工協(xié)議書范本正規(guī)范本(通用版)1
- 無職業(yè)病危害承諾書
- 京東集團員工手冊-京東
- 正確識記現(xiàn)代漢語常用字字形課件
- 化工機械安裝維修
- 讀后續(xù)寫微技巧情感描寫
- 2023年《中華人民共和國婦女權(quán)益保障法》知識競賽試題及答案
評論
0/150
提交評論