


下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、“項(xiàng)目四秒表設(shè)計(jì)”實(shí)驗(yàn)報(bào)告專業(yè)班級:電子144 姓名: 秦慧樺學(xué)號: 2014014273 實(shí)驗(yàn)日期: 一、實(shí)驗(yàn)?zāi)康?)熟悉并掌握計(jì)數(shù)器的設(shè)計(jì);2)熟悉數(shù)碼管的設(shè)計(jì);3)熟悉VHDL語言的分層次設(shè)計(jì);二實(shí)驗(yàn)內(nèi)容:1)對50MHz晶振進(jìn)行500000分頻,得到100Hz信號;2)對該100Hz信號進(jìn)行0-9的循環(huán)計(jì)數(shù),并用一位數(shù)碼管顯示;3) 在2成功的基礎(chǔ)上進(jìn)行擴(kuò)展,實(shí)現(xiàn)100Hz信號的0-99循環(huán)計(jì)數(shù),并用兩位數(shù)碼管進(jìn)行顯示;4)擴(kuò)展內(nèi)容:計(jì)數(shù)初值可以設(shè)置,計(jì)數(shù)值可以人為干預(yù);三、實(shí)驗(yàn)結(jié)果1. 對50MHz晶振進(jìn)行500000分頻,得到100Hz信號的程序代碼library ieee;use
2、 ieee.std_logic_1164.AII;use ieee.std_logic_unsigned.All;use ieee.std_logic_arith.All;entity div25 isport(clkin:in std_logic;clkout:buffer std_logic);end;architecture ret1 of div25 isbeginprocess(clkin)variable count:integer range 0 to 249999;beginif clkin' event and clkin='1' then if co
3、unt<249999 then count:=count+1;elsecount:=0;clkout<=not clkout;end if;end if;end process;end;2. 對 100Hz 信號的 0-99 循環(huán)計(jì)數(shù)程序代碼及仿真結(jié)果library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;use ieee.std_logic_arith.all;entity cnt99 isport (clkout:in std_logic;gw:out std_logic_vector(3
4、 downto 0);sw:out std_logic_vector(3 downto 0); end;architecture rtl of cnt99 isbeginprocess(clkout)variable num:std_logic_vector (3 downto 0) ;variable s:std_logic_vector (3 downto 0) ; beginif clkout' event and clkout='1' thenif (num<9) thennum:=num+1;else num:="0000"s:=s+
5、1; if (s>9) then s:="0000"end if;end if ;end if;gw<=num;sw<=s;end process;end ;3頂層文件的截屏、引腳鎖定及實(shí)驗(yàn)現(xiàn)象截圖,并對實(shí)驗(yàn)現(xiàn)象進(jìn)行分析 © Edit: X 7Node NameDirectionLocationI/O Bankfnf GroupI/O StandarddkInputPIN G21>B6 N12.5 V (default)q6OutputPIN.F137B7 N12.5 V (default)OutputPIN F127B7N1乙 5 V (
6、deFault)Outputpm Gi21B7 hll2,5 V (defadt)OutputPIN屮苗?B7 N12-5 V (default)OutputPIN H12J*B7 N12.5 V (蟲fault)OutputP1N FL17B7 N12.5 V (default)OutputPIN EllJE7 N12.5 V (default)OutputPIN A157B7 N12-5 V (default)OutputPIN E1B7 N12.5 V (default)OutputP1N B147B7 N12.5 V (default)OutputPIN A147B7 N1乙 5 V
7、(default)OutputPIN C137B7 N1V (default)OutputPIN B137B7 N1N5 V (deFault)s0Outpu tPIN A137B7 N12.5 V (default)實(shí)驗(yàn)現(xiàn)象分析:單片機(jī)數(shù)碼管顯示從 099秒的計(jì)時(shí)四、如何實(shí)現(xiàn)秒表的倒計(jì)時(shí)功能?請給出程序及實(shí)驗(yàn)結(jié)果library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;use ieee.std_logic_arith.all;entity cntd99 isport (clkout:in std_logi
8、c;gw:out std_logic_vector(3 downto 0);sw:out std_logic_vector(3 downto 0);end;architecture rtl of cntd99 isbeginprocess(clkout)variable num:std_logic_vector (3 downto 0);variable s:std_logic_vector (3 downto 0);beginif clkout' event and clkout='1' thenif (num<9) thennum:=num+1;else nu
9、m:="0000"s:=s+1;if (s>9) then s:="0000"end if;end if ;end if;gw<=9_num;sw<=9-s;end process;end ;實(shí)驗(yàn)總結(jié)Ll_psA) ns.itu. U ns Z4U. U ns JU. U ns 4UJ. U ns ilm t»U. U ns t*iU. U ns fZU. U ns.占HI II liIie.9 nsJArmniwiwiMmnmwuinnjinnjinwmnwumnminnjuinjumijmnmnwuuVUC91XmX7JC引rnr5X4】;(131)G本次實(shí)驗(yàn)是在上次實(shí)驗(yàn)的基礎(chǔ)上進(jìn)行的,上次實(shí)驗(yàn)中,我們做了059的計(jì)數(shù),這次我們
溫馨提示
- 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)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 質(zhì)詢會主持流程
- 工程地質(zhì)培訓(xùn)
- 新媒體培訓(xùn)課件
- 腫瘤危重癥高血鈣癥護(hù)理
- VTE護(hù)理教學(xué)查房
- 罪犯教育適應(yīng)區(qū)
- 如何提高團(tuán)隊(duì)凝聚力
- 與心靈相約 與健康同行-心理健康主題演講稿
- 我國農(nóng)業(yè)機(jī)械化智能化產(chǎn)業(yè)現(xiàn)狀與區(qū)域發(fā)展差異分析報(bào)告
- 2025年海上風(fēng)力發(fā)電場運(yùn)維管理與技術(shù)創(chuàng)新策略深度報(bào)告
- 邊坡噴護(hù)檢驗(yàn)批質(zhì)量驗(yàn)收記錄表
- GB∕T 31062-2014 聚合物多元醇
- 氧、氬、二氧化碳?xì)怏w充裝企業(yè)風(fēng)險(xiǎn)點(diǎn)分級管控資料
- 醫(yī)學(xué)專題杏林中人乳腺穴位敷貼
- 公路水運(yùn)工程施工安全標(biāo)準(zhǔn)化指南(42頁)
- 人教版 2021-2022學(xué)年 五年級下冊數(shù)學(xué)期末測試試卷(一)含答案
- 錫槽缺陷手冊(上
- (完整版)全國校園籃球特色學(xué)校申報(bào)材料
- 西門子SAMA圖DEH邏輯講解
- 施工現(xiàn)場安全、文明施工檢查評分表
- 管道支架重量計(jì)算表常用圖文精
評論
0/150
提交評論