




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
二辣大亨夕JIANGSUUNIVERSITY課程實(shí)驗(yàn)報(bào)告電子設(shè)計(jì)自動(dòng)化實(shí)驗(yàn)報(bào)告學(xué)院班級學(xué)院班級學(xué)號電氣信息工程學(xué)院2015年10月實(shí)驗(yàn)一半加器和全加器的設(shè)計(jì)一、實(shí)驗(yàn)?zāi)康氖煜ax+plusII軟件的作用學(xué)習(xí)用圖形輸入方式和VHDL語言輸入方式設(shè)計(jì)數(shù)字電路二、實(shí)驗(yàn)容圖形輸入方式設(shè)計(jì)半加器VHDL方式設(shè)計(jì)半加器libraryieee;useieee.std_logic_1164.all;entityhalf_adder11isport(a,b:instd_logic;so,co:outstd_logic);endentityhalf_adder11;architecturefh1ofhalf_adder11isbeginso<=(axorb);co<=(aandb);endarchitecturefhl;圖形輸入方式設(shè)計(jì)全加器VHDL方式設(shè)計(jì)全加器libraryieee;useieee.std_logic_1164.all;entityor1isport(a,b:instd_logic;c:outstd_logic);endentityor1;architecturefu1ofor1isbeginc<=aorb;endarchitecturefu1;libraryieee;useieee.std_logic_1164.all;entityh_aisport(a,b:instd_logic;so,co:outstd_logic);endentityh_a;architecturefh1ofh_aisbeginso<=(axorb);co<=(aandb);endarchitecturefh1;libraryieee;useieee.std_logic_1164.all;entityfull_adder11isport(ain,bin,cin:instd_logic;cout,sum:outstd_logic);endentityfull_adder11;architecturefd1offull_adder11iscomponenth_aport(a,b:instd_logic;co,so:outstd_logic);endcomponent;componentor1port(a,b:instd_logic;c:outstd_logic);endcomponent;signald,e,f:std_logic;beginu1:h_aportmap(a=>ain,b=>bin,co=>d,so=>e);u2:h_aportmap(a=>e,b=>cin,co=>f,so=>sum);u3:or1portmap(a=>d,b=>f,c=>cout);endarchitecturefd1;三、設(shè)計(jì)實(shí)現(xiàn)圖形輸入方式設(shè)計(jì)半加器VHDL方式設(shè)計(jì)半加器圖形輸入方式設(shè)計(jì)全加器VHDL方式設(shè)計(jì)全加器
COUTSUM四、仿真波形COUTSUM實(shí)驗(yàn)二四選一數(shù)據(jù)選擇器的設(shè)計(jì)一、實(shí)驗(yàn)?zāi)康氖煜ax+plusII軟件的作用學(xué)習(xí)用圖形輸入方式和VHDL語言輸入方式設(shè)計(jì)數(shù)字電路二、實(shí)驗(yàn)容1?If語句libraryieee;useieee.std_logic_1164.all;entitymux41aisport(a,b,c,d:instd_logic_vector(3downto0);sel:instd_logic_vector(1downto0);y:outstd_logic_vector(3downto0));endmux41a;architectureoneofmux41aisbeginprocess(a,b,c,d,sel)beginif(sel="00”)theny〈二a;elsif(sel="01”)theny<=b;elsif(sel="10”)theny<=c;elsif(sel="11”)theny<=d;endif;endprocess;endone;2.case語句useieee.std_logic_1164.all;entitymux41bisport(a,b,c,d:instd_logic_vector(3downto0);sel:instd_logic_vector(1downto0);y:outstd_logic_vector(3downto0));endmux41b;architectureoneofmux41bisbeginprocess(a,b,c,d,sel)begincaseseliswhen"00"=>y<=a;when"01"=>y<=b;when"10"=>y<=c;when"11"=>y<=d;whenothers=>y〈=null;endcase;endprocess;endone;3.when???else語句useieee.std_logic_1164.all;entitymux41cisport(a,b,c,d:instd_logic_vector(3downto0);sel:instd_logic_vector(1downto0);y:outstd_logic_vector(3downto0));endmux41c;architectureoneofmux41cisbeginy<=awhensel="00"elsebwhensel="01"elsecwhensel="10"elsedwhensel="11";endone;4.with.??select.??when語句libraryieee;useieee.std_logic_1164.all;entitymux41disport(a,b,c,d:instd_logic_vector(3downto0);
y:outstd_logic_vector(3downto0));endmux41d;architectureoneofmux41disbeginwithselselecty<=awhen"00”,bwhen"01”,cwhen"10”,dwhen"11”,nullwhenothers;endone;三、設(shè)計(jì)實(shí)現(xiàn)MUX41Afits62OE3
四、仿真波形日_劃代_樹>您伽妣珥hIlk舫誦1U■:111如Nk1加IIE血世K1:1111111」林1括匕hL1111■UL3卜|:L1|1111勵(lì)HC\±\110[|iI111',i1,.實(shí)驗(yàn)三可逆計(jì)數(shù)器的設(shè)計(jì)一、實(shí)驗(yàn)?zāi)康氖煜ax+plusII軟件的作用學(xué)習(xí)用圖形輸入方式和VHDL語言輸入方式設(shè)計(jì)數(shù)字電路二、實(shí)驗(yàn)容libraryieee;useieee.std_logic_1164.all;useieee.std_logic_unsigned.all;entitybicntisport(clk,rst,dir:instd_logic;q:bufferstd_logic_vector(3downto0));endbicnt;architectureoneofbicntisbeginprocess(clk,rst,dir)beginifrst='1'thenq<="0000”;elsif(clk'eventandclk二T)thenifdir='0'thenq〈=q+1;elseq<=q-1;endif;endif;endprocess;endone;三、設(shè)計(jì)實(shí)現(xiàn)
溫馨提示
- 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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 單獨(dú)招生(機(jī)電類)測試題與答案
- 個(gè)人寒假學(xué)習(xí)計(jì)劃
- 體育器械采購合同范本
- 企業(yè)聯(lián)銷合同范本
- 單位電力購買合同范本
- 醫(yī)療器械回收合同范本
- 出租光伏平房合同范本
- 衛(wèi)生院聘用合同范本
- 《讓世界充滿愛》教案設(shè)計(jì)
- 儲氣庫鉆井招投標(biāo)合同范本
- 《給校園植物掛牌》課件
- 氣道高反應(yīng)性教學(xué)演示課件
- 公文寫作格式規(guī)范課件
- 強(qiáng)酸強(qiáng)堿培訓(xùn)課件
- 蔬菜種植與有機(jī)農(nóng)業(yè)培訓(xùn)
- 寶鋼BQB 481-2023全工藝?yán)滠堉蓄l無取向電工鋼帶文件
- 企業(yè)文化變革的阻力與推進(jìn)策略
- 特種設(shè)備作業(yè)人員資格申請表(新版)
- 巡察組作風(fēng)紀(jì)律情況評估表
- 煤礦架空乘人裝置安裝檢驗(yàn)報(bào)告
- HSK標(biāo)準(zhǔn)教程5下-課件-L1
評論
0/150
提交評論