技术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 Usage117lutCancel<BackNext >Einish图6-4设置乘法器参数
3.1流水线乘法累加器设计 3.1.2 电路结构与工作原理 图6-4 设置乘法器参数 1. 调用乘法器