![彩燈實(shí)驗(yàn)報(bào)告_第1頁(yè)](http://file3.renrendoc.com/fileroot_temp3/2022-1/5/e5c373f0-3789-4e09-a8cc-0e1afa09e19b/e5c373f0-3789-4e09-a8cc-0e1afa09e19b1.gif)
![彩燈實(shí)驗(yàn)報(bào)告_第2頁(yè)](http://file3.renrendoc.com/fileroot_temp3/2022-1/5/e5c373f0-3789-4e09-a8cc-0e1afa09e19b/e5c373f0-3789-4e09-a8cc-0e1afa09e19b2.gif)
![彩燈實(shí)驗(yàn)報(bào)告_第3頁(yè)](http://file3.renrendoc.com/fileroot_temp3/2022-1/5/e5c373f0-3789-4e09-a8cc-0e1afa09e19b/e5c373f0-3789-4e09-a8cc-0e1afa09e19b3.gif)
![彩燈實(shí)驗(yàn)報(bào)告_第4頁(yè)](http://file3.renrendoc.com/fileroot_temp3/2022-1/5/e5c373f0-3789-4e09-a8cc-0e1afa09e19b/e5c373f0-3789-4e09-a8cc-0e1afa09e19b4.gif)
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、彩燈實(shí)驗(yàn)報(bào)告 設(shè)計(jì)八 彩燈控制器 要求: 1、 設(shè)計(jì)一個(gè)彩燈控制器,使彩燈(led 管)能連續(xù)發(fā)出四種以上不同得顯示形式; 2、隨著彩燈顯示形式得變化,發(fā)出不同得音響聲。 設(shè)計(jì)提示: : 1、彩燈顯示得不同形式可由不同進(jìn)制計(jì)數(shù)器驅(qū)動(dòng)ed 顯示完成; 2、 音響由選擇不同頻率 c脈沖驅(qū)動(dòng)揚(yáng)聲器形成; 3、 彩燈顯示形式由實(shí)驗(yàn)箱中撥碼開關(guān)控制。 實(shí)驗(yàn)程序 lbary ieee; se ie、std_logic_14、al; use ieee、std_logic_unsigned、all; eniy cidekngzhiqi is port ( cl,rst,ck2 : ni std_ogic; c
2、ideng : ;)0 onwod 7(ocv_cigld toc:in std_ogcvectr(1 ownto 0); speake: ou d_loi ); e caidegnghiqi; artetur one of caidenkonghiq s ponent counter_8 pot ( clk,rs : in ;col_dtscont_ou : 7 ot 0 ega rgtni uo); en onent ; pent cidgongzi por ( ns: ;) otnwod (rotcev_ciol_dts niinpu : n intgr rang 0 to 7; : ;
3、cigolds noutut : ;)) otno 7(otcev_cgoldts tuen n ; ponnt fii port ( clk,rt : ;cig_tsnclk_1,lk_,cl_6,clk_8 : o toic ); nd pone ; ponent xz_ port ( rst :in std_ic; np: ;) otwod 1(rotcev_cigoldts niin1,i2,in3,in4 : ;cigol_ds nioutpt : o st_logi ); ed ponent ; ignal s,,k :sd_loic; sinal f:integr ange 0
4、o 3; signal :ntege ange 0 t 3; begin : outer_8 port m (k=ck1, rst=st, cou_u =); 2: cadengkongzh pot map (in=cz,npu=f, rrst, ouput =caideg); u3: fenpi por mp (clk=lk, rstst, c_1g, ck_4=m, clk_6=n, clk_8=k); u4: xzq4_1 prt mp (npcz, ,=2ni ,n ,ts=ts3n, n=k, optspear); end one; ibrry ieee; use ieee、std_
5、lic_1164、al; enit fnpinqi is op ( ,rst : ;cgol_dts n 8klc,_lc,4_kl,_l: gol_s tuo ;)end fenpnqi; archtetue d of fnpinqi s bin p:prcess(clk,rs) variable :inee rane 0 o ; in if =1 then c="0; a:; se if clkeven and lk=1hn if =3 hn a:=; cl_4="1; le :a1; clk_4"; n if; en if; end if; ed ocss
6、p; p2:procss(ck,rst) variable b:ntege rn 0 o 2; begin if rs=1 then c_0; :=0; ele i clkeet and lk=1the if b=5 then :=; cl_6=; else b:=b+1; k_6="0" end if; en if; en i; end roces 2; p3:proces(clk,rst) vaiabe :iteger range to 20; in if st=1" the k_8=0; c:0; ele if k"eet ad cl=1"
7、;th if c=7 the c:=0; cl_8"1; else c:=c+1; clk_8=0; end i; end if; end if; ed proces p3; p4:pos(lk,rs) vriable d:ntge range to 0; bein if rst=1" the l"0" d:=; ese if cevent an clk="1"hn if d=9 th :0; ck_0=1" else d:=d; clk_0=0"; en f; end f; nd if; ed rcss 4; e
8、n cd; libray eee; use ieee、sd_lgic_1164、all; entty xzq4_1 i ort ( rst:in stdlogc; inp:in s_vector(1 nto 0); ;cgl_dts ni : 4n,3ni,2ni,1i outpt : tuo t_logic ); ed x41; arcitetre of zq41 is bgin )pi,tsr( ssecorp nigeb if(rst=1) hen output=0" ee cs inp is wen 0'=tpt=i; whe 01'=outpt=in2; w
9、en 0=outpt=n3; when 11=uput=in4; when othrsll; end cas; ed if; nd pces; end a; libary eee; use eee、dloic_164、all; ntty counter_8 is tro ( tsr,l : std_lic; tu_nuo : 7 t 0 egnar regetni to ); ed cner_8; arciteue of conter_8 s begin )kc,tsr( ssorp vaable temp:intger rng to ; bein f rst" then ;0:pm
10、e eli (ck"evt nd lk=1") thn tp:temp+1; if(temp=8) ten temp:=0; end if; nd i; cont_ou=emp; ;ssecrp d end a; lirary ieee; use ee、std_logic_164、al; tiy caiengkonhi is por( sni :in sd_logic_ecto(1 donto 0); tpn : in itger range to 7; ;igolts i:tsr ptuo: tuo d_loi_ector(7 downto ); end adengkon
11、gzhi; architetue a of caidengkozi is bn )tpi( secop begn i rst then ouut=00000000'; else neh )00=sn(fi case nput is whn 0uput'000000; ;'00000010tuptuo=1 ehw ;000=tutuo=2 neh wn 3=output=000000; ;0001000'tuptuo4 ne whn output00000100; ;0000tuptuo= new ;'000000=ttuo7 nhw hen ohers=
12、ul; nd e; elsi(ins=1) th i upni e ;0100'=tut=0 nehw ;'0001100'=tutuo= nhw ;'011100=uptuo2 neh wen ouput='011100; wh utput01110; ;'1111110=tptuo5 neh ;01111111=uptuo= nhw ;11111=tuptu=7 ew ;u=srhto hw ;ec dne ne)'1sni(file si tupn e ;'100000'=tuptu=0 nhw when 1=output=1100001; ;1100011=uptuo2 hw when 3=output=110011; when 4=outut=11101'; ;11101'=tuptuo=5 nehw ;'111111tuptu6 nehw ;0000=uptuo= nhw he ohers=null; ;eac ne es si tup esc ;1100000'tuto=0 neh wen 1=otpu=00000110' ;1100=tptuo
溫馨提示
- 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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 【正版授權(quán)】 ISO/IEC 24741:2024 EN Information technology - Biometrics - Overview and application
- 【正版授權(quán)】 ISO 24322:2024 EN Timber structures - Methods of test for evaluation of long-term performance - Part 1: Wood-based products in bending
- 【正版授權(quán)】 ISO 5284:2025 EN Conveyor belts - List of equivalent terms
- 【正版授權(quán)】 ISO 22915-1:2024 EN Industrial trucks - Verification of stability - Part 1: General
- 2025年度高新技術(shù)產(chǎn)業(yè)園區(qū)運(yùn)營(yíng)承包經(jīng)營(yíng)合同
- 生物技術(shù)課程導(dǎo)入計(jì)劃
- 各行各業(yè)主管的共性與差異計(jì)劃
- 校外美術(shù)實(shí)踐基地建設(shè)計(jì)劃
- 老年醫(yī)學(xué)科醫(yī)生工作計(jì)劃
- 2025年灌裝機(jī)系列設(shè)備合作協(xié)議書
- 黑龍江省哈爾濱市香坊區(qū)風(fēng)華教育集團(tuán)2022-2023學(xué)年五年級(jí)下學(xué)期期末英語(yǔ)試題
- 裝配式建筑預(yù)制構(gòu)件運(yùn)輸與堆放-預(yù)制構(gòu)件運(yùn)輸基本要求
- Ar-CO2 混合氣安全技術(shù)說(shuō)明書
- 騰訊招聘測(cè)評(píng)題庫(kù)答案大全
- 《企業(yè)成功轉(zhuǎn)型》課件
- 接地電阻的計(jì)算
- 小學(xué)傳承經(jīng)典筑夢(mèng)未來(lái)演講稿500字11篇
- 五年級(jí)上冊(cè)數(shù)學(xué)應(yīng)用題100題及答案
- 2024年4月重慶公務(wù)員考試申論真題及答案解析
- 2024年南京科技職業(yè)學(xué)院高職單招(英語(yǔ)/數(shù)學(xué)/語(yǔ)文)筆試歷年參考題庫(kù)含答案解析
- 懷念戰(zhàn)友混聲四部合唱譜
評(píng)論
0/150
提交評(píng)論