已阅读5页,还剩73页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1,中科院研究生院课程:VLSI测试与可测试性设计,第4讲逻辑与故障模拟李晓维中科院计算技术研究所Email:lxw,2,Chapter3,LogicandFaultSimulation,3,AbouttheChapter,CircuitsimulationmodelsLogicsimulationtechniquesFaultsimulationtechniques,4,LogicandFaultSimulation,IntroductionSimulationmodelsLogicsimulationFaultsimulationConcludingremarks,5,PredictthebehaviorofadesignpriortoitsphysicalrealizationDesignverification,LogicSimulation,6,FaultSimulation,PredictsthebehavioroffaultycircuitsAsaconsequenceofinevitablefabricationprocessimperfectionsAnimportanttoolfortestanddiagnosisEstimatefaultcoverageFaultsimulatorTestcompactionFaultdiagnosis,7,LogicandFaultSimulation,IntroductionSimulationmodelsLogicsimulationFaultsimulationConcludingremarks,8,Gate-LevelNetwork,Theinterconnectionsoflogicgates,9,SequentialCircuits,Theoutputsdependonboththecurrentandpastinputvalues,xi:primaryinput(PI)zi:primaryoutput(PO)yi:pseudoprimaryinput(PPI)Yi:pseudoprimaryoutput(PPO),10,APositiveEdge-TriggeredD-FF,11,Example:AFull-Adder,12,LogicSymbols,Themostcommonlyusedare0,1,uandZ1and0trueandfalseofthetwo-valueBooleanalgebrauUnknownlogicstate(maybe1or0)ZHigh-impedancestateNotconnectedtoVddorground,13,TernaryLogic,Threelogicsymbols:0,1,andu,14,InformationLossofTernaryLogic,SimulationbasedonternarylogicispessimisticAsignalmaybereportedasunknownwhenitsvaluecanbeuniquelydeterminedas0or1,15,High-ImpedanceStateZ,Tri-stategatespermitseveralgatestotime-shareacommonwire,calledbusAsignalisinhigh-impedancestateifitisconnectedtoneitherVddnorground,16,LogicElementEvaluationMethods,ChoiceofevaluationtechniquedependsonConsideredlogicsymbolsTypesandmodelsoflogicelementsCommonlyusedapproachesTruthtablebasedInputscanningInputcountingParallelgateevaluation,17,TruthTableBasedGateEvaluation,ThemoststraightforwardandeasytoimplementForbinarylogic,2nentriesforn-inputlogicelementMayusetheinputvalueastableindexTablesizeincreasesexponentiallywiththenumberofinputsCouldbeinefficientformulti-valuedlogicAk-symbollogicsystemrequiresatableof2mnentriesforann-inputlogicelementm=log2kTableindexedbymn-bitwords,18,ParallelGateEvaluation,ExploittheinherentconcurrencyinthehostcomputerA32-bitcomputercanperform32logicoperationsinparallel,19,TimingModels,TransportdelayInertialdelayWiredelayFunctionelementdelaymodel,20,TransportDelay,Thetimedurationittakesfortheeffectofgateinputchangestoappearatgateoutputs,21,InertialDelay,Theminimuminputpulsedurationnecessaryfortheoutputtoswitchstates,22,WireDelay,WiresareinherentlyresistiveandcapacitiveIttakesfinitetimeforasignaltopropagatealongawire,23,FunctionalElementDelayModel,Formorecomplicatedfunctionalelementslikeflip-flops,24,ModelingLevels,25,LogicandFaultSimulation,IntroductionSimulationmodelsLogicsimulationFaultsimulationConcludingremarks,26,CompiledCodeSimulation,Translatethelogicnetworkintoaseriesofmachineinstructionsthatmodelthegatefunctionsandinterconnections,27,LogicOptimization,Enhancethesimulationefficiency,28,Event-DrivenSimulation,Event:theswitchingofasignalsvalueAnevent-drivensimulatormonitorstheoccurrencesofeventstodeterminewhichgatestoevaluate,29,Zero-DelayEvent-DrivenSimulation,GateswitheventsattheirinputsareplacesintheeventqueueQ,30,Nominal-DelayEvent-DrivenSimulation,NeedasmarterschedulerthantheeventqueueNotonlywhichgatesbutalsowhentoevaluate,31,Two-PassEvent-DrivenSimulation,32,Event-DrivenAlgorithm(Example),33,Example,34,Compiled-Codevs.Event-DrivenSimulation,Compiled-codeCycle-basedsimulationHighswitchingactivitycircuitsParallelsimulationLimitedbycompilationtimesEvent-drivenImplementinggatedelaysanddetectinghazardsLowswitchingactivitycircuitsMorecomplicatedmemorymanagement,35,LogicandFaultSimulation,IntroductionSimulationmodelsLogicsimulationFaultsimulationConcludingremarks,36,FaultSimulation,IntroductionSerialFaultSimulationParallelFaultSimulationDeductiveFaultSimulationConcurrentFaultSimulationDifferentialFaultSimulationFaultDetectionComparisonofFaultSimulationTechniquesAlternativetoFaultSimulationConclusion,37,Introduction,Whatisfaultsimulation?GivenAcircuitAsetoftestpatternsAfaultmodelDetermineFaultyoutputsUndetectedfaultsFaultcoverage,38,TimeComplexity,Proportionalton:Circuitsize,numberoflogicgatesp:Numberoftestpatternsf:NumberofmodeledfaultsSincefisroughlyproportionalton,theoveralltimecomplexityisO(pn2),39,SerialFaultSimulation,First,performfault-freelogicsimulationontheoriginalcircuitGood(fault-free)responseForeachfault,performfaultinjectionandlogicsimulationFaultycircuitresponse,40,SerialFaultSimulation,41,AlgorithmFlow,42,Example,43,FaultDropping,HaltingsimulationofthedetectedfaultExampleSupposewearetosimulateP1,P2,P3inorderFaultfisdetectedbyP1DonotsimulatefforP2,P3ForfaultgradingMostfaultsaredetectedafterrelativelyfewtestpatternshavebeenappliedForfaultdiagnosisAvoidedtoobtaintheentirefaultsimulationresults,44,ProandCon,AdvantagesEasytoimplementAbilitytohandleawiderangeoffaultmodels(stuck-at,delay,Br,)DisadvantagesVeryslow,45,ParallelFaultSimulation,ExploittheinherentparallelismofbitwiseoperationsParallelfaultsimulationSeshu1965ParallelinfaultsParallelpatternfaultsimulationWaicukauski1986Parallelinpatterns,46,ParallelFaultSimulation,AssumptionUsebinarylogic:onebitisenoughtostorelogicsignalUsew-bitwidedatawordParallelsimulationw-1bitforfaultycircuits1bitforfault-freecircuitProcessfaultyandfault-freecircuitinparallelusingbitwiselogicoperations,47,ParallelFaultSimulation,48,FaultInjection,49,Example,50,ProandCon,AdvantagesAlargenumberoffaultsaredetectedbyeachpatternwhensimulatingthebeginningoftestsequenceDisadvantagesOnlyapplicabletotheunitorzerodelaymodelsFaultscannotbedroppedunlessall(w-1)faultsaredetected,51,ParallelPatternFaultSimulation,Parallelpatternsinglefaultpropagation(PPSFP)ParallelpatternWithaw-bitdatawidth,wtestpatternsarepackedintoawordandsimulatedforthefault-freeorfaultycircuitSinglefaultFirst,fault-freesimulationNext,foreachfault,faultinjectionandfaultycircuitsimulation,52,AlgorithmFlow,53,Example,54,ProandCon,AdvantagesFaultisdroppedassoonasdetectedBestforsimulatingtestpatternsthatcomelater,wherefaultdroppingrateperpatternislowerDisadvantagesNotsuitableforsequentialcircuits,55,DeductiveFaultSimulation,Armstrong1972BasedonlogicreasoningratherthansimulationFaultlistattachedwithsignalxdenotedasLxSetoffaultscausingxtodifferfromitsfault-freevalueFaultlistpropagationDerivethefaultlistofagateoutputfromthoseofthegateinputsbasedonlogicreasoning,56,FaultListPropagationRules,Allgateinputsholdnon-controllingvalueAtleastoneinputholdscontrollingvalue,c:controllingvaluei:inversionvalueI:setofgateinputsz:gateoutputS:inputsholdingcontrollingvalue,(3.1),(3.2),57,AlgorithmFlow,58,Example,P1,byEq.(3.1),59,Example(contd),P2,A,B,C,E,F,J,L,H,K,0,0,1,LB=B/1,LC=C/0,1,1,0,0,1,C/0,1,C/0,C/0,C/0,C/0,60,Example(contd),P3,byEq.(3.2),LC=C/1,61,ProandCon,AdvantagesVeryefficientSimulateallfaultsinonepassDisadvantagesNoteasytohandleunknownsOnlyforzero-delaytimingmodelPotentialmemorymanagementproblem,62,ConcurrentFaultSimulation,Ulrich1974SimulateonlydifferentialpartsofwholecircuitEvent-drivensimulationwithfault-freeandfaultycircuitssimulatedaltogetherConcurrentfaultlistforeachgateConsistofasetofbadgatesFaultindex&associatedgateI/OvaluesInitiallyonlycontainslocalfaultsFaultpropagatefrompreviousstage,63,GoodEventandBadEvent,GoodeventEventsthathappeningoodcircuitAffectbothgoodgatesandbadgatesBadeventEventsthatoccurinthefaultycircuitofcorrespondingfaultAffectonlybadgatesDivergeAdditionofnewbadgatesConvergeRemovalofbadgateswhoseI/Osignalsarethesameascorrespondinggoodgates,64,AlgorithmFlow,65,Example,P1,66,Example(contd),P2,67,Example(contd),P3,68,ProandCon,AdvantagesEfficientDisadvantagesPotentialmemoryproblemSizeoftheconcurrentfaultlistchangesatruntime,69,FaultDetection,HarddetectedfaultOutputsoffault-freeandfaultycircuitaredifferent1/0or0/1Nounknowns,noZPotentiallydetectedfaultWhetherthefaultisdetectedisunclearExample:stuck-at-0onenablesignaloftri-statebuffer,70,FaultDetection(contd),OscillationfaultsCausecircuittooscillateImpossibletopredictfaultycircuitoutputsHyperactivefaultsCatastrophicfaulteffectFaultsimulationistimeandmemoryconsumingExample:stuck-atfaultonclockUsuallycountedasdetectedSavefaultsimulationtime,71,ComparisonofFaultSimulationTechniques(1),SpeedSerialfaultsimulation:slowestParallelfaultsimulation:O(n3),n:numofgatesDeductivefaultsimulation:O(n2)ConcurrentfaultisfasterthandeductivefaultsimulationDifferentialfaultsimulation:evenfasterthanconcurrentfaultsimulationandPPSFPMemoryusageSerialfaultsimulation,parallelfaultsimulation:noproblemDeductivefaultsimulation:dynamicallocatememoryandhardtopredictsizeConcurrentfaultsimulation:moreseverethandeductivefaultsimulationDifferentialfaultsimulation:lessmemoryproblemthanconcurrentfaultsimulation,72,ComparisonofFaultSimulationTechniques(2),Multi-valuedfaultsimulationtohandleunknown(X)and/orhigh-impedance(Z)Serialfaultsimulation,concurrentfaultsimulation,differentialfaultsimulation:easytohandleParallelfaultsimulation:difficultDelayandfunctionalmodelingcapabilitySerialfaultsimulation:noproblemParallelfaultsimulation,deductivefaultsimulation:notcapableConcurrentfaultsimulation:capableDifferentialfaultsimulation:capable,73,ComparisonofFaultSimulationTechniques(3),SequentialcircuitSerialfaultsimulation,parallelfaultsimulation,concurrentfaultsimulation,differentialfaultsimulation:noproblemPPSFP:difficultDeductivef
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年煤矿安全管理人员三级安全教育试卷及答案:安全管理职责篇
- 在线小学英语口语互动方案
- 2025年煤矿应急演练评估安全培训试卷及答案-自然灾害应急响应测试
- 医药行业GMP管理执行报告
- 2025年安全培训顾问三级安全培训评估试卷及答案
- 2025年安全培训试卷及答案:矿井安全教育培训效果评估
- 2025年带班领导安全培训试卷及答案:安全教育培训方法
- 2025年应急演练评估安全培训试卷及答案-矿井火灾应急响应
- 2026届湖南省汨罗第二中学高一化学第一学期期末复习检测模拟试题含解析
- 2026届河北省滦县第二中学高一化学第一学期期末学业质量监测试题含解析
- 2025云南宣富高速楚雄市东南绕城高速元绿高速那兴高速高速公路收费员招聘341人笔试历年参考题库附带答案详解
- 2025医院安全隐患排查治理专项行动的实施方案(详细版)
- 彼得·蒂尔:硅谷教父的叛逆人生
- 2025外研版新教材英语七年级上册单词表(复习必背)
- 四级手术术前多学科讨论制度(2025年)
- 艺术设计专业英语李洪春教学课件全套
- 小学科学项目式学习教学设计案例
- 压铸模具基础知识培训课件
- 风电厂冬季安全培训课件
- 2024年华北电力大学公开招聘辅导员笔试题含答案
- 2025云南昆明元朔建设发展有限公司第一批收费员招聘20人备考考试题库附答案解析
评论
0/150
提交评论