




版權(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 商場消防工程施工合同5篇
- 《6.2垂直關(guān)系的性質(zhì)》講義
- 2023年高考全國乙卷理科綜合真題(原卷版)
- 避震山地車市場分析及競爭策略分析報告
- 《天然藥物學(xué)》課程標(biāo)準(zhǔn)
- 第五章 生活中的軸對稱單元練習(xí) 2024-2025學(xué)年北師大版七年級數(shù)學(xué)下冊
- 合伙人項(xiàng)目合作合同范本
- 衛(wèi)浴工程購銷合同范例
- 個性簡歷自我評價簡短
- 個人簡歷幼師自薦信
- 2024年共青團(tuán)入團(tuán)考試題庫及答案
- 2024解析:第十二章機(jī)械效率-講核心(原卷版)
- 2023年國家公務(wù)員錄用考試《申論》真題(副省卷)及答案解析
- 2023年海南省公務(wù)員錄用考試《行測》真題卷及答案解析
- 2024-2030年中國語言培訓(xùn)行業(yè)競爭分析及發(fā)展策略建議報告版
- 2024-2030年中國醫(yī)療器械維修設(shè)備行業(yè)供需狀況及發(fā)展策略分析報告
- 中國心力衰竭診斷和治療指南2024解讀(完整版)
- 女性健康知識講座課件
- DB11T 1787-2020 二氧化碳排放核算和報告要求 其他行業(yè)
- 企業(yè)網(wǎng)絡(luò)安全管理規(guī)范作業(yè)指導(dǎo)書
- 2024年大學(xué)試題(計(jì)算機(jī)科學(xué))-人工智能考試近5年真題集錦(頻考類試題)帶答案
評論
0/150
提交評論