您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 咨询培训 > xilinx时序约束培训教材
PracticalDesignforXilinx,Section7,12/29/98Page1ConstraintsPracticalDesignforXilinx!!该文的版权归Xilinx公司所有!由收集整理。MakeEDAserveyou!PracticalDesignforXilinx,Section7,12/28/98Page2WhentouseTimingConstraints?Constraintsaddtoruntime,sodon’tusethemunlessyouneedtoFasterdesignsneedconstraining—itdependsonthespeedgradeofthedeviceselected,butingeneral,anydesignwithaclockspeedof50MHzorlessandareasonablenumberoflogiclevels(7orless),doesn’tneedtimingconstraints—designsover50MHzshouldusetimingconstraintsDesignswithmultipleclockshouldhavetimingconstraints—ifyouhaveasignalclockandareunderthe50MHzlimitabove,youwillnotneedtimingconstraints-youcanalwaysaddthemlaterifyouneedtoIfyouhavemulti-cycleclockpaths,youneedconstraints—thesearepathswhereyouknowyouhavetwoormoreclockcyclesforlogictosteady-stateafteraninputchangeRuleofThumb:runnon-timingdrivenPARwithoutconstraints,unlessyouarenotreachingyourtiminggoals.—addconstraintssparingly,DONOToverconstrainyourdesign-itwon’thelp,andincreasescanincreaseyourruntimedramatically!!PracticalDesignforXilinx,Section7,12/28/98Page3WhyuseDesignConstraints?Constraintsallowyoutolockyourpinsaftertheboardpinoutisfixed—XilinxM1.5isoftwarehasautomaticpinlocking,andusestheconstraintsfiletopassthesepinlockstofuturerunsofthedesignConstraintsallowyoutogiveyourexacttimingrequirementtotheplaceandrouteorfittingsoftware—formanydesigns,theconstraintsarenotneededforplaceandroutetomeettiming-butareanexcellentwaytogetadetailedstatictimingreportwhetherornotyourdesignmeetsyourgoals—formorechallengingdesigns,theconstraintstellthesoftwarewherethecriticalpathsare-andwheretofocustheireffortsToknowquicklyifyourdesignmetyourgoals—XilinxhasthebesttiminganalysistoolsintheFPGAindustry—applyingsomesimpleconstraintswillallowyoutogetaquickGO/NO-GOafterplaceandroute.Thesoftwarewilltellyoualltheconstraintsweremet,andyoucanquicklymoveontoboarddebug,withouteverlookingatareport—ifyourconstraintswerenotmet,Xilinxgivesyouthelevelofdetailneededtoquicklyunderstandwhy-andwhereyourdesignneedsmorework.PracticalDesignforXilinx,Section7,12/28/98Page4WhatNeedsConstraining?InternalclockspeedforoneormoreclocksI/OspeedLogicusingmulti-cycleclocksPintopintimingPinlocationsandlogiclocationsOUT1XYZ0:92LevelsofLogicI/OSpeedPin2PinSpeedI/OSpeedLogicLocations1LevelofLogicQDQDCLKClk&CESpeedPinLocationsOUT2PinLocationsPracticalDesignforXilinx,Section7,12/28/98Page5TypesofConstraintsSupportedTimingConstraints—specifydelayalonglogicpaths—allowsboth“quickanddirty”and“highlydetailed”timingcontrolLocationConstraints—specifylocationofcomponentsonFPGA—specifymappingconstraintsINSTMY_FMAPBLKNM=ABCINSTFLOP1BLKNM=ABCINSTFLOP2BLKNM=ABCPracticalDesignforXilinx,Section7,12/28/98Page6WheredoConstraintsgo?Timingconstraintsmaybeappliedtoaschematicusingthetimespecsymbol(FROM:TO’s)TheycanbeaddedtoHDLsourcecodeifyourcompilersupportsthemTheycanbeinputinaseparatefilecalleda.UCF(userconstraintsfile),orasynthesizergenerated.NCF(netlistconstraintsfile)SomeconstraintsmustbeplacedinthePCF(physicalconstraintsfile).Normally,thePCFshouldbeavoidedbyusers.TIMESPECPracticalDesignforXilinx,Section7,12/28/98Page7HowdoICreateConstraints?WritethembyhandusingtheXilinxLibrariesGuideasasyntaxguide—thisisthemostdifficultmethod,butprovidesthemostcontrolEnterthemwithyourHDLorschematic,andpassthemthroughwiththenetlist—thisisamucheasiermethod—ithaslimitedcontroloverthenamingofconstraints-insomecasescanoverconstrainthedesign—additionally,youneedtolearntwoconstraintlanguages-thesynthesizer’sandeventuallyXilinx’sUsetheXilinxGraphicConstraintsEditor—providestheeasiestpathtoenteringmostconstraints—exportsstandardXilinxConstraintsSyntax—givescompletecontroloverthedesign—insomecase,someadvancedconstraintsarenotyetsupported,liketemperatureorvoltageforexamplePracticalDesignforXilinx,Section7,12/28/98Page8ConstraintsEditorRemovestheneedtoknowconstraintsyntaxDoesnotremovetheneedtoknowthedesignCreatesXilinxtimeandplacementconstraintsFivetabsusedforconstraining:—GlobalConstraints:PERIOD,OFFSETINBEFORE,OFFSETOUTAFTER,PadtoPad—PortConstraints:PinLocations,OFFSETINBEFORE,OFFSETOUTAFTER,FAST/SLOW,PinProhibits—AdvancedConstraints:TIMEGRP,TPTHRU,GroupOFFSETINBEFORE,GroupOFFSETOUTAFTER,FROM:TO,FROM:TO:TIG,NETTIG—EditableConstraints:Listgroupsandconstraintscreated.Disablingordeletionofconstraints.—SourceConstraints:ReadOnly.Constraintfrom.ngdfile.Constraintscanbeoverridden,butnotremoved.PracticalDesignforXilinx,Section7,12/28/98Page9BriefReviewofConstraintFlowPHYSICALDOMAINUsernetlistandexistingconstraintsPARTRCEEPICNGDANNODRCXNF/EDIFnetlistConstraintEditorUCFNGDBUILDMAP.PCF.NCDConstraintsEditorNGDBUILDDesign_name.ngdXNF/EDIFnetlistExistingUCFUserConstraintsFileLOGICALDOMAINDESIGNTRANSLATIONMappeddesignandphysicalconstraintsPracticalDesignforXilinx,Section7,12/29/98Page10TimingConstraints(I)UsingConstraintEditortocreatePERIODandOFFSETconstraintsPracticalDesignforXilinx,Section7,12/28/98Page11GlobalTABPeriod,PadtoSetup,andClockToPad,PadtoPadwillbeautomaticallyfilledinbyCEfromyourUCFpe
本文标题:xilinx时序约束培训教材
链接地址:https://www.777doc.com/doc-961214 .html