ug_intro_to_megafunctions(7)
时间:2026-01-19
时间:2026-01-19
UG-01056-3.0May2013
InstantiatingMegafunctionsinHDL7
Figure3:IPFilesGeneratedbyMegaWizardPlug-In
Manager
RelatedInformation
SynopsysSimplifySupport
InstantiatingMegafunctionsinHDL
YoucaninstantiateamegafunctiondirectlyinyourHDLcodebycallingthemegafunctionandsettingitsparametersasyouwouldinanyothermodule,component,orsubdesign.WheninstantiatingamegafunctioninVHDL,besuretoincludethecorrectlibraries.
UsingHDLCodeTemplates
TheQuartusIIsoftwareincludescodeexamplesortemplatesforinferredRAMs,ROMs,shiftregisters,arithmeticfunctions,andDSPfunctionsoptimizedforAlteradevices.ToaccessHDLcodetemplatestodefinemegafunctions,followthesesteps:
1.Openafileinthetexteditor.2.OntheEdit>Inserttemplate.
3.IntheInsertTemplatedialogbox,clickthe+icontoexpandeithertheVerilogHDLcategoryortheVHDLcategory,dependingontheHDLyouprefer.
4.UnderFullDesigns,expandthenavigationtreetodisplaythetypeoffunctionsyouwanttoinfer.5.SelectthefunctiontodisplaythecodefortheselectedtemplateinthePreviewpane,andclickInsert.Note:FornewDSPfeaturesoptimizedforArriaV,CycloneV,andStratixV,expandtheArithmetic
category,andthenexpandtheDSPfeatures(Stratix-V,Arria-VandCyclone-V)category.
IntroductiontoMegafunctionIPCores
AlteraCorporation
下一篇:什么是周长