中国高校课件下载中心 》 教学资源 》 大学文库

《EDA技术》课程教学资源(课件讲稿)第6章 QUARTUSΙΙ宏功能模块应用

文档信息
资源类别:文库
文档格式:PDF
文档页数:37
文件大小:2.38MB
团购合买:点击进入团购
内容简介
《EDA技术》课程教学资源(课件讲稿)第6章 QUARTUSΙΙ宏功能模块应用
刷新页面文档预览

技术EDA第6章QUARTUSII宏功能模块应用

第6章 QUARTUSΙΙ 宏功能模块应用 EDA 技 术

6.1流水线乘法累加器设计6.1.1电路结构与工作原理MULTOclockOITPUTCLKSUM15..01dataalz.01resutl15.01Unsianeddatabiz.01mutiplicationinstADDEROoO10会2J6dataal15.01clockresult/15.01A+Edatabl15.01o'zlerep[o'Zlerepcoutinst2MULTOSSLSUclockdataalz.01TPTCOUTresultl15.01DATAa[7..0]MPI/Unsianeddatabi.01multiplicationDATAb[7.0]inst3NPIh图6-1流水线乘法累加器顶层设计

6.1流水线乘法累加器设计 6.1.1 电路结构与工作原理 图6-1 流水线乘法累加器顶层设计

6.1流水线乘法果加器设计6.1.2电路结构与工作原理Symbol1.调用乘法器Libraries围d/alteta60/quartus60/ibraries/MegaWizardPlug-InManager[page1]The MegaWizard Plug-In Manager helps you create or modifydesign files that contain custom yariations of megafunctions.Which action do you want to perform?Create a new custom megafunchionyaniatiorCEdit an existing custommegafunctionvaristionCCopy an existing custom megafunction variation4Name:Copyright?1991-2006.Altera CorporationRepeat-insert modeCancelBaclNext>S Insert symbol as blocLaunciMegawizardPlug-inMegawizard Plug-in Manager.QKCance图6-2定制新的宏功能块

6.1流水线乘法累加器设计 6.1.2 电路结构与工作原理 图6-2 定制新的宏功能块 1. 调用乘法器

XMegawizardPlug-InManagerLpage2alWhichmegafunctionwould youliketo customize?Which device family will you beCyclonelIIusing?SelectamegafunctionfromthelistbelowWhich type of output file do you want to create? InstalledPlug-InsAlteraSOPCBuilderAHDLArithmetic-CVHDLALTACCUMULATE园CVerlog HDLALTFP ADD SUBALTFP MULTBrowse....Whatnamedoyouwantfortheoutputfile?ALTMEMMULTD:MULADDAMULTOALTMULT_ACCUM(MAC)店ALTMULT ADDGenerate clearbox netlistfile instead of adefault wrapperfileALTSQRT务LPM_ABS(forusewith supported EDAsynthesistools onlyRSLPM_ADD_SUBReturn tothis pageforanothercreateoperationLPM_COMPARETLPM COUNTERNote:Tocompileaproject successfully in theQuartusll software,your design files mustbe in theproject directory,inthe globaluser大LPMDIVIDElibraries specified in the Options dialog box (Tools menul,or a userLPM MULTlibrary specified in the User Libraries page of the Settings dialogPARALLEL ADD天box (Assignmentsmenu).Gates+Your current user library directories are:1/0X图6-3选择LPM宏功能模块

6.1流水线乘法累加器设计 6.1.2 电路结构与工作原理 图6-3 选择LPM宏功能模块 1. 调用乘法器

xMegawizardPlug-InManager-LpMMULT[page1of5]LPM_MULTVersion6.0AboutDocumentation1Parameter2SimulationSummarySettingsLibraryPageGeneralGeneral2PipeliningMultiplier configurationMULTOMultiply dataa inputbydatab inputdataa[7..0]Multiply'dataa'inputbyitself(squaringoperation)resut[15.0]Unsigneddatab[7..0]multiplication-bitsHow wide should the'dataa' input bus be?How wide should the'datab'input bus be?bitsCreatea'sum'input bus withawidth ofbitsHow shouldthewidthofthe'result'outputbedetermined?OAutomatically calculate thewidth16RestrictthewidthtobitsResource Usage117lutCancelEinish图6-4设置乘法器参数

3.1流水线乘法累加器设计 3.1.2 电路结构与工作原理 图6-4 设置乘法器参数 1. 调用乘法器

6.1流水线乘法果加器设计6.1.2电路结构与工作原理1.调用乘法器Does the'datab'input bus havea constant value?MULTOONOdataa[7.0]Yes,the valueisresut[15.0]JUnsigneddatab[7..0]multiplicationWhich type of multiplication do you want?OUnsignedSignedWhichmultiplierimplementationshouldbeused?Usethedefault implementationUse dedicated multiplier circuitry (Not available forall families)OUselogicelements图6-5设置乘法器结构类型

6.1流水线乘法累加器设计 6.1.2 电路结构与工作原理 图6-5 设置乘法器结构类型 1. 调用乘法器

6.1流水线乘法果加器设计6.1.2电路结构与工作原理1.调用乘法器Doyouwanttopipelinethefunction?MULTONoclock1OYes,Iwantanoutputlatencyofclock cyclesdataa[7..0]resut[15..0]CreateanasynchronousClear input+Unsigneddatab[7..0]multiplicationCreatea Clock Enable inputWhichtypeofoptimizationdoyouwant?ODefaultOSpeedOArea图6-6将LPM乘法器设置为流水线工作方式

6.1流水线乘法累加器设计 6.1.2 电路结构与工作原理 图6-6将LPM乘法器设置为流水线工作方式 1. 调用乘法器

6.1流水线乘法累加器设计6.1.2电路结构与工作原理2.调用加法器和锁存器MegaWizardPlug-InManager-LPM ADD_SUB[page1of6]X:LPMADDSUBVersion6.0AboutDocumentationParameter2Simulation3summarySettingsLibrarPageGeneralGeneral2>PortsPipeliningCurrently selected device family:Cyclone IIADDEREdataa[15.0]resut[15.0]16How wide should the'dataa' and'datab' input buses be?bitA+Edatab[15.0]Which operating mode do you want for the adder/subtractor?Addition onlySubtractiononlyCreate an'add_sub'input port to allow meto do both(1 adds; 0 subtracts)图6-7设置LPM加法器类型

6.1流水线乘法累加器设计 6.1.2 电路结构与工作原理 图6-7 设置LPM加法器类型 2. 调用加法器和锁存器

6.1流水线乘法累加器设计6.1.2电路结构与工作原理2.调用加法器和锁存器ADDEROdataa[15.01mIsthe'dataa'or'datab'input bus yaluea constant?resut[15.0.A+BONo,both values varydatab[15.0]$Yes,dataa=DecYes,datab=图6-8选择加法器数据输入类型

6.1流水线乘法累加器设计 6.1.2 电路结构与工作原理 图6-8 选择加法器数据输入类型 2. 调用加法器和锁存器

6.1流水线乘法累加器设计6.1.2电路结构与工作原理2.调用加法器和锁存器ADDERODo youwantany optional inputsoroutputs?dataa[15.01Input:resut[15..0]Createacarry inputA+Bdatab[15.0]Outputs:coutCreatea carry outputCreateanoverflowoutput图6-9为加法器增加进位输出

6.1流水线乘法累加器设计 6.1.2 电路结构与工作原理 图6-9 为加法器增加进位输出 2. 调用加法器和锁存器

刷新页面下载完整文档
VIP每日下载上限内不扣除下载券和下载次数;
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
相关文档