并行乘法器-南京理工大學(xué)紫金學(xué)院vhdl實(shí)驗(yàn)報告-eda_第1頁
并行乘法器-南京理工大學(xué)紫金學(xué)院vhdl實(shí)驗(yàn)報告-eda_第2頁
并行乘法器-南京理工大學(xué)紫金學(xué)院vhdl實(shí)驗(yàn)報告-eda_第3頁
并行乘法器-南京理工大學(xué)紫金學(xué)院vhdl實(shí)驗(yàn)報告-eda_第4頁
并行乘法器-南京理工大學(xué)紫金學(xué)院vhdl實(shí)驗(yàn)報告-eda_第5頁
已閱讀5頁,還剩5頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

EDA技術(shù)與應(yīng)用實(shí)驗(yàn)報告實(shí)驗(yàn)名稱:并行乘法器姓名:學(xué)號:班級:通信時間:2013南京理工大學(xué)紫金學(xué)院電光系實(shí)驗(yàn)?zāi)康?、學(xué)習(xí)包集和元件例化語句的使用。2、學(xué)習(xí)FLU(全加器單元)電路的設(shè)計(jì)。3、學(xué)習(xí)并行乘法電路的設(shè)計(jì)。實(shí)驗(yàn)原理并行乘法器的電路原理圖如下圖所示,主要由全加器和與門構(gòu)成。并行乘法器原理圖實(shí)驗(yàn)內(nèi)容and_2libraryieee;useieee.std_logic_1164.all;entityand_2is port(a,b:instd_logic; y:outstd_logic);endand_2;architectureand_2ofand_2isbegin y<=aandb; endand_2;componentlower_rowis port(sin,cin:instd_logic_vector(2downto0); p:outstd_logic_vector(3downto0));endcomponent;endmy_components;multiplierlibraryieee;useieee.std_logic_1164.all;usework.my_components.all;entitymultiplieris port(a,b:instd_logic_vector(3downto0); prod:outstd_logic_vector(7downto0));endmultiplier;architecturestructuralofmultiplieris typematrixisarray(0to3)of std_logic_vector(2downto0); signals,c:matrix;begin U1:componenttop_rowportmap(a(0),b,s(0),c(0), prod(0)); U2:componentmid_rowportmap(a(1),b,s(0),c(0),s(1), c(1),prod(1)); U3:componentmid_rowportmap(a(2),b,s(1),c(1),s(2), c(2),prod(2)); U4:componentmid_rowportmap(a(3),b,s(2),c(2),s(3), c(3),prod(3)); U5:componentlower_rowportmap(s(3),c(3), prod(7downto4));endstructural;8、仿真9、把multiplier代碼改為百位、十位、個位輸出代碼如下:libraryieee;useieee.std_logic_1164.all;useieee.std_logic_unsigned.all;usework.my_components.all;entitymultiplieris port(a,b:instd_logic_vector(3downto0); hun,ten,one:outstd_logic_vector(3downto0));endmultiplier;architecturestructuralofmultiplieris typematrixisarray(0to3)of std_logic_vector(2downto0); signals,c:matrix; signalp:std_logic_vector(7downto0);begin U1:componenttop_rowportmap(a(0),b,s(0),c(0), p(0)); U2:componentmid_rowportmap(a(1),b,s(0),c(0),s(1), c(1),p(1)); U3:componentmid_rowportmap(a(2),b,s(1),c(1),s(2), c(2),p(2)); U4:componentmid_rowportmap(a(3),b,s(2),c(2),s(3), c(3),p(3)); U5:componentlower_rowportmap(s(3),c(3), p(7downto4));process(p)variabletemp:std_logic_vector(7downto0);begin ifp>"1100_0111"then hun<="0010"; temp:=p-"1100_1000"; elsifp>"0110_0011"then hun<="0001"; temp:=p-"0110_0100"; else hun<="0000"; temp:=p; endif; iftemp>"0101_1001"then ten<="1001"; temp:=temp-"0101_1010"; elsiftemp>"0100_1111"then ten<="1000"; temp:=temp-"1010_0000"; elsiftemp>"0100_0101"then ten<="0111"; temp:=temp-"0100_0110"; elsiftemp>"0011_1011"then ten<="0110"; temp:=temp-"0011_1100"; elsiftemp>"0011_0001"then ten<="0101"; temp:=temp-"0011_0010"; elsiftemp>"0010_0111"then ten<="0100"; temp:=temp-"0010_1000"; elsiftemp>"0001_1101"then ten<="0011"; temp:=temp-"0001_1110"; elsiftemp>"0001_0011"then ten<="0010"; temp:=temp-"0001_0100"; elsiftemp>"0000_1001"then ten<="0001"; temp:=temp-"00

溫馨提示

  • 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)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論