©2007AlteraCorporation—ConfidentialQuartusIISoftwareDesignSeries:TimingAnalysis©2007AlteraCorporation—ConfidentialAltera,Stratix,Arria,Cyclone,MAX,HardCopy,Nios,Quartus,andMegaCorearetrademarksofAlteraCorporation2常见术语的中文翻译Tsetup:建立时间Thold:保持时间Skew:传输时差,时钟歪斜Slack:余量Fmax:最大频率Inputmaximumdelay:输入最大延时Inputminimumdelay:输入最小延时Outputmaximumdelay:输出最大延时Outputminimumdelay:输出最小延时Maxdelay:最大延时MinDelay:最小延时Recoverytime:恢复时间Removaltime:移去时间Jitter:抖动©2007AlteraCorporation—ConfidentialAltera,Stratix,Arria,Cyclone,MAX,HardCopy,Nios,Quartus,andMegaCorearetrademarksofAlteraCorporation3TimeQuestAgendaIntroductiontoTimeQuestTimeQuestterminologyreviewUsingTimeQuestExampleApplication©2007AlteraCorporation—ConfidentialAltera,Stratix,Arria,Cyclone,MAX,HardCopy,Nios,Quartus,andMegaCorearetrademarksofAlteraCorporation4TimeQuestTimingAnalyzerNewtimingengineinQuartusIIProvidetiminganalysissolutionmeetingrequirementsofallusersFPGAdesignbackgroundASICdesignbackgroundEasy-to-useinterfaceStandardreporting&constraintterminologyScriptingemphasis©2007AlteraCorporation—ConfidentialAltera,Stratix,Arria,Cyclone,MAX,HardCopy,Nios,Quartus,andMegaCorearetrademarksofAlteraCorporation5TimeQuestTimingAnalyzer(cont.)Moreaccurateanalysisrise/falldelaysSDCSupportMoreadvanced&standardizedconstraintmethodologyEasilysupportsmorecomplexdesignsandanalysisComplexclockingschemesSource-synchronousdesigns©2007AlteraCorporation—ConfidentialValidatingPerformancewiththeTimeQuestStaticTimingAnalyzerTimeQuestTerminologyReview©2007AlteraCorporation—ConfidentialAltera,Stratix,Arria,Cyclone,MAX,HardCopy,Nios,Quartus,andMegaCorearetrademarksofAlteraCorporation7TimeQuestTerminologyReviewLaunch&latchedgesArrivaltimevs.requiredtimeSetup&holdanalysisSlackSDCterminology©2007AlteraCorporation—ConfidentialAltera,Stratix,Arria,Cyclone,MAX,HardCopy,Nios,Quartus,andMegaCorearetrademarksofAlteraCorporation8Path&AnalysisTypesThreetypesofPaths:1.ClockPaths2.DataPath3.AsynchronousPaths*ClockPathsAsyncPathDataPathAsyncPathDQCLRPREDQCLRPRETwotypesofAnalysis:1.Synchronous–clock&datapaths2.Asynchronous*–clock&asyncpaths*Asynchronousreferstosignalsfeedingtheasynchronouscontrolportsoftheregisters©2007AlteraCorporation—ConfidentialAltera,Stratix,Arria,Cyclone,MAX,HardCopy,Nios,Quartus,andMegaCorearetrademarksofAlteraCorporation9Setup&HoldSetup:TheminimumtimedatasignalmustbestableBEFOREclockedgeHold:TheminimumtimedatasignalmustbestableAFTERclockedgeDQCLRPRECLKThValidDATATsuCLKDATATogether,thesetuptimeandholdtimeformaDataRequiredWindow,thetimearoundaclockedgeinwhichdatamustbestable.©2007AlteraCorporation—ConfidentialAltera,Stratix,Arria,Cyclone,MAX,HardCopy,Nios,Quartus,andMegaCorearetrademarksofAlteraCorporation10Launch&LatchEdgesCLKREG1DQSETCLRREG2DQSETCLRComb.LogicCLKLaunchEdgeLatchEdgeDataValidDATALaunchEdge:theedgewhich“launches”thedatafromsourceregisterLatchEdge:theedgewhich“latches”thedataatdestinationregister(withrespecttothelaunchedge,typically1cycle)©2007AlteraCorporation—ConfidentialAltera,Stratix,Arria,Cyclone,MAX,HardCopy,Nios,Quartus,andMegaCorearetrademarksofAlteraCorporation11Launch&LatchEdgesLaunchEdge:Clockedgethatactivatesthesourceregisterinaregister-to-registerpathLatchEdge:ClockedgethatactivatesthedestinationregisterBACLKACLKBCLKACLKBTherelationshipbetweentheedgesisderivedfromtheuser-definedclocksettings©2007AlteraCorporation—ConfidentialAltera,Stratix,Arria,Cyclone,MAX,HardCopy,Nios,Quartus,andMegaCorearetrademarksofAlteraCorporation12DataArrivalTimeThetimefordatatoarriveataregister’sDinputTclk1TdataμTcoQQSETCLRDQQSETCLRDCLKTclk1Tclk2TdataμTcoμTsu/μThREG1REG2CLKREG1.CLKREG1.QREG2.DDataArrivalTime=launchedge+Tclk1+μTco+TdataLaunchEdge©2007AlteraCorporation—ConfidentialAltera,Stratix,Arria,Cyclone,MAX,HardCopy,Nios,Quartus,andMegaCorearetrademarksofAlteraCorporation13ClockArrivalTimeThetimeforclocktoarriveataregister’sclockinputQQSETCLRDQQSETCLRDCLKTclk1Tclk2TdataμTcoμTsu/μThREG1REG2CLKREG2.CLKTclk2ClockArrivalTime=latchedge+Tclk2LatchEdge©2007AlteraCorporation—ConfidentialAltera,Stratix,Arria,Cyclone,MAX,HardCopy,Nios,Quartus,andMegaCorearetrademarksofAlteraCorporation14DataRequiredTime-SetupTimesignalmustarriveatdestinationregistertobeproperlysampledQQSETCLRDQQSETCLRDCLKTclk1Tclk2TdataμTcoμTsu/μThREG1REG2CLKREG2.CLKTclk2μTsuDataRequiredTime=ClockArrivalTime–μTsuLatchEdge©2007AlteraCorporation—ConfidentialAltera,Stratix,Arria,Cyclone,MAX,HardCopy,Nios,Quartus,andMegaCorearetrademarksofAlteraCorporation15DataRequiredTime-HoldQQSETCLRDQQSETCLRDCLKTclk1Tclk2TdataμTcoμTsu/μThREG1REG2CLKREG2.CLKTclk2μThDataRequiredTime=ClockArrivalTime+μThLatchEdgeEarliesttimesignalcanarriveatdestinationregisterandnotinterferewithdatasampledonpreviousclockedge©2007AlteraCorporation—ConfidentialAltera,Stratix,Arria,Cyclone,MAX,HardCopy,Nios,Quartus,andMegaCorearetrademarksofAlteraCorporation16SlackSetupSlack=SetupRequiredTime–DataArrivalTimeHoldSlack=DataArrivalTime–HoldRequiredTimeSlackmustbepositivetoensureproperoperationEquationsworkforinternalandI/Opa