SlideShare a Scribd company logo
1 of 45
Fault Simulator
Testing of VLSI Design
Usha Mehta
Acknowledge
• This presentation has been summarized from
various books, papers, websites and presentations
on VLSI Design and its various topics all over the
world. I couldn’t itemwise mention from where
these large pull of hints and work come. However,
I’d like to thank all professors and scientists who
created such a good work on this emerging field.
Without those efforts in this very emerging
technology, these notes and slides can’t be
finished.
03-12-2019 Dr Usha Mehta 2
Introduction
• Applying
Deterministic TPG:
• For given fault
– Fault sensitization
– Fault Propagation
– Justification
• It will generate 31
possible patterns
for given fault
03-12-2019 Dr Usha Mehta 3
• TPG generates “Many patterns for one fault”
• Do we really need this many patterns for one fault?
• TPG is the time consuming iterative process.
• As the number of fault is large, the TPG is to be
executed for each of the fault.
• Why not to have “One pattern for many faults”?
• Fault simulation
Comparatively fault simulation is easy and fast
03-12-2019 Dr Usha Mehta 4
03-12-2019 Dr Usha Mehta 5
• Randomly selecting
any pattern
– 1 0 0 0 1-----11111
– This pattern generates
0 on o/p of G1, 1 on
G2 to G5 and 0 on G6
– Hence it can detect sa1
on G
– 1 1-----11111
– This pattern can detect
sa0 on any net
• Two pattern can
detect 33 faults!
Fault Simulation process
1. Generate a random pattern
2. Determine the output of the circuit for that random pattern as
input
3. Take fault from the fault list and modify the Boolean
functionally of the gate whose input has the fault.
4. Determine output of the circuit with fault for that random
pattern as input.
5. If the output of normal circuit varies from the one with fault,
then the random pattern detects the fault under consideration.
6. f the fault is detected, it is removed from the fault list.
7. Steps 3 to 6 are repeated for another fault in the list. This
continues till all faults are considered.
8. Steps 1 to 7 are repeated for another random pattern. This
continues till all faults are detected.
03-12-2019 Dr Usha Mehta 6
Major Steps of Fault Simulation
1. Generate random pattern
2. For given pattern, find the golden output of the
fault free circuit (Circuit/Logic Simulation)
3. Insert the intended fault in the fault free circuit
4. Again apply the generated pattern and find the
output of the circuit in presence of fault (Fault
Simulation)
03-12-2019 Dr Usha Mehta 7
Circuit (Logic)
Simulators
03-12-2019 Dr Usha Mehta 8
Simulator
• Definition
– Simulation refers to modelling of a design, eg. its function
and performance.
• A software simulator is a computer program
• An emulator is a hardware simulator
• Simulator is used for design verification
– Validate assumptions
– Verify logic
– Verify performance (timing)
03-12-2019 Dr Usha Mehta 9
Simulator-Block Diagram
03-12-2019 Dr Usha Mehta 10
Specification
Circuit
Description
Simulated
Responses
Input Stimuli
Expected
Responses
Manual design
or via Synthesis
Testbench
Development
Response
Analysis
Bug?
Next Design
Stage
yes
no
Simulation Process
03-12-2019 Dr Usha Mehta 11
Abstraction Level for Simulator
• System level
• Architecture level
• Functional level/RTL level
• Gate/structural level
• Switch/transistor/circuit level
• Mixed level
03-12-2019 Dr Usha Mehta 12
Modelling
• Modules, blocks or components described by
– Input/output (I/O) function
– Delays associated with I/y /O signals
– Examples: binary adder, Boolean gate, etc.
• Interconnects represent
– Ideal signal carriers or ideal electrical conductors
• Netlist
– A format (or language) that describes a design as an
interconnection of modules. Netlist may use hierarchy.
03-12-2019 Dr Usha Mehta 13
Signal States
• Two-states (0, 1) can be used for purely
combinational logic with zero-delay.
• Three-states (0, 1, X) are essential for timing
hazards and for sequential logic initialization.
• Four-states (0, 1, X, Z) are essential for MOS
devices. See example below.
• Analog signals are used for exact timing of digital
logic and for analog circuits.
03-12-2019 Dr Usha Mehta 14
Information Loss in ternary Logic
• Simulation based on ternary logic is pessimistic
• A signal may be reported as unknown when its value can be
uniquely determined as 0 or 1
03-12-2019 Dr Usha Mehta 15
A
B
C u
u
u
u
u
K
G2
G4
G3G1
0
1
A
B
C 0 or 1
0
1 or 0
0 or 1
0 or 1
K
G2
G4
G3G1
0
1
Gate Evaluation Method
• Choice of evaluation technique depends on
– Considered logic symbols
– Types and models of logic elements
• Commonly used approaches
– Truth table based
– Input scanning
– Input counting
– Parallel gate evaluation
03-12-2019 Dr Usha Mehta 16
Truth Table Based
Gate Evaluation Method
• The most straightforward and easy to implement
– For binary logic, 2n entries for n-input logic
element
– May use the input value as table index
– Table size increases exponentially with the
number of inputs
• Could be inefficient for multi-valued logic
– A k-symbol logic system requires a table of 2mn
entries for an n-input logic element
• m = log2k
• Table indexed by mn-bit words
03-12-2019 Dr Usha Mehta 17
Input Scanning Based
Gate Evaluation Method
• The gate output can be determined by the types of
inputs
– If any of the inputs is the controlling value, the gate
output is ci
– Otherwise, if any of the inputs is u, the gate output is u
– Otherwise, the gate output is c'i
03-12-2019 Dr Usha Mehta 18
Table 3.2: Thec (controlling)and
i (inversion) values of basic gates
c i
AND 0 0
OR 1 0
NAND 0 1
NOR 1 1
Input Scanning
03-12-2019 Dr Usha Mehta 19
Input Counting Based
Gate Evaluation Method
• Knowing the number of unknown and controlling
inputs is sufficient to evaluate the AND, OR, NAND
and NOR gates
• c_count, u_count
• When any gate input is changed, these two
variables are updated.
• Suppose, for NOR, one of the input changes from 1
to u, then c_count is decreased and u_count is
increases.
• Then similar to input scanning…
03-12-2019 Dr Usha Mehta 20
Simulator
• Event driven
• Cycle Based
• Compiled Code
03-12-2019 Dr Usha Mehta 21
Event Driven Simulator
• Event: change in logic value at a node, at a certain instant of
time ® (V,T)
• Performs both timing and functional verification
– All nodes are visible
– Glitches are detected
• Most heavily used and well-suited for all types of designs
• Uses a time wheel to manage the relationship between
components
• Time wheel = list of all events not processed yet, sorted in
time (complete ordering)
• When event is generated, it is put in the appropriate point in
the time wheel to ensure causality
• Faster compared to cycle based simulator because in large
logic circuits about 0.1 to 10% gates become active for an
input change
03-12-2019 Dr Usha Mehta 22
Event Driven Simulation
03-12-2019 Dr Usha Mehta 23
Event Driven Simulation FlowChart
03-12-2019 Dr Usha Mehta 24
Efficiency of Event Based Simulator
• Simulates events (value changes) only
• Speed up over compiled-code can be ten times or
more; in large logic circuits about 0.1 to 10% gates
become active for an input change
03-12-2019 Dr Usha Mehta 25
Large logic
block without
activity
Steady 0
0 to 1 event
Steady 0
(no event)
Cycle Based Simulator
• Take advantage of the fact that most digital designs
are largely synchronous (state elements change
value on active edge of clock)
• Compute steady-state response of the circuit
• at each clock cycle
• at each boundary node
• Only boundary nodes are evaluated
03-12-2019 Dr Usha Mehta 26
Compiled Code Simulation
• To translate the logic network into series of
machine instruction
• Logic Optimization and Levelization is performed
before actual code generation process
03-12-2019 Dr Usha Mehta 27
Logic Optimization
03-12-2019 Dr Usha Mehta 28
Levelization
03-12-2019 Dr Usha Mehta 29
Levelization
03-12-2019 Dr Usha Mehta 30
Code generation and Simulation
03-12-2019 Dr Usha Mehta 31
Compiled Code Simulation
• Applicable to zero-delay combinational logic
• Also used for cycle-accurate synchronous sequential circuits
for logic verification
• Efficient for highly active circuits, but inefficient for low-
activity circuits
• High-level (e.g., C language) models can be used
03-12-2019 Dr Usha Mehta 32
Fault Simulation
• Fault simulation
– In general, simulating a circuit in the presence
of faults is known as fault simulation
– Predicts the behavior of faulty circuits As a
consequence of inevitable fabrication process
imperfections
• The main goals of fault simulation
– Measuring the effectiveness of the test patterns
– Guiding the test pattern generator program
– Generating fault dictionaries
03-12-2019 Dr Usha Mehta 33
Fault Simulation…..
• Outputs of fault simulation
– Fault coverage - fraction (or percentage) of
modeled faults detected by test vectors
– Set of undetected faults
• An important tool for test and diagnosis
– Estimate fault coverage
– Fault simulator
– Test compaction
– Fault diagnosis
03-12-2019 Dr Usha Mehta 34
Fault Simulation Tasks
• What is fault simulation?
– Given
• A circuit
• A set of test patterns
• A fault model
– Determine
• Faulty outputs
• Undetected faults
• Fault coverage
03-12-2019 Dr Usha Mehta 35
Time Complexity
of Fault Simulator
• Proportional to
– n: Circuit size, number of logic gates
– p: Number of test patterns
– f : Number of modeled faults
• Since f is roughly proportional to n, the overall time
complexity is O(pn2)
03-12-2019 Dr Usha Mehta 36
Faults
• Mostly single stuck-at faults
• Sometimes stuck-open, transition, and path-delay
faults; analog circuit fault simulators are not yet in
common use
• Equivalence fault collapsing of single stuck-at
faults
• Fault-dropping -- a fault once detected is dropped
from consideration as more vectors are simulated;
fault-dropping may be suppressed for diagnosis
• Fault sampling -- a random sample of faults is
simulated when the circuit is large
03-12-2019 Dr Usha Mehta 37
Fault Simulator (in detail)
03-12-2019 Dr Usha Mehta 38
Serial Fault Simulation
• First, perform fault-free logic simulation on the original circuit
– Good (fault-free) response
• For each fault, perform fault injection and logic simulation
– Modify netlist by injecting one fault
– Simulate modified netlist, vector by vector, comparing responses
with saved responses
– If response differs, report fault detection and suspend simulation
of remaining vectors
• Advantages:
• Easy to implement; needs only a true-value simulator, less
memory
• Most faults, including analog faults, can be simulated
03-12-2019 Dr Usha Mehta 39
Serial Fault Simulator (cont.)
• Disadvantage: Much repeated computation; CPU
time prohibitive for VLSI circuits
• Alternative: Simulate many faults together
03-12-2019 Dr Usha Mehta 40Courtesy: Agrawal & Bushnell
Parallel Simulators
• To speed up the logic simulation
• To simulate the concurrency on host computer
where there is 32-64 bit wide processor available
• For four bit data word, parallelism of four input
combinations are possible, e.g.
• abc = {110, 010, 011, 100}
03-12-2019 Dr Usha Mehta 41
Parallel Fault Simulation
• Compiled-code method; best with two-states (0,1)
• Exploits inherent bit-parallelism of logic operations
on computer words
• Storage: one word per line for two-state simulation
• Multi-pass simulation: Each pass simulates w-1
new faults, where w is the machine word length
• Speed up over serial method ~ w-1
• Not suitable for circuits with timing-critical and
non-Boolean logic
03-12-2019 Dr Usha Mehta 42
03-12-2019 Dr Usha Mehta 43
Courtesy: Agrawal & Bushnell
Parallel Simulation of
Multivalued Logic
03-12-2019 Dr Usha Mehta 44
• For three valued logic
• For w bit data words, two words denoted by X1 and X2
are used for signal X
• AND and OR are still same
• The compliment operation is :
• Note that the compliment of u is still unknown i.e. u
Limitations of Parallel Fault
Simulation
• Useful for two (1,0) or three (0,1,X) logic values, not
suitable for multiple logic values, e.g. (0,1,U,R,F,…)
– Multiple logic values can be handled but operations are
complex
• Wasted computations
– Fault dropping not carried out effectively
– Not possible to discard faults that are in the same word
03-12-2019 Dr Usha Mehta 45

More Related Content

What's hot

2019 1 testing and verification of vlsi design_introduction
2019 1 testing and verification of vlsi design_introduction2019 1 testing and verification of vlsi design_introduction
2019 1 testing and verification of vlsi design_introductionUsha Mehta
 
Deterministic Test Pattern Generation ( D-Algorithm of ATPG) (Testing of VLSI...
Deterministic Test Pattern Generation ( D-Algorithm of ATPG) (Testing of VLSI...Deterministic Test Pattern Generation ( D-Algorithm of ATPG) (Testing of VLSI...
Deterministic Test Pattern Generation ( D-Algorithm of ATPG) (Testing of VLSI...Usha Mehta
 
Design for testability and automatic test pattern generation
Design for testability and automatic test pattern generationDesign for testability and automatic test pattern generation
Design for testability and automatic test pattern generationDilip Mathuria
 
2019 2 testing and verification of vlsi design_verification
2019 2 testing and verification of vlsi design_verification2019 2 testing and verification of vlsi design_verification
2019 2 testing and verification of vlsi design_verificationUsha Mehta
 
Sta by usha_mehta
Sta by usha_mehtaSta by usha_mehta
Sta by usha_mehtaUsha Mehta
 
2 when to_test_role_of_testing
2 when to_test_role_of_testing2 when to_test_role_of_testing
2 when to_test_role_of_testingUsha Mehta
 
BUilt-In-Self-Test for VLSI Design
BUilt-In-Self-Test for VLSI DesignBUilt-In-Self-Test for VLSI Design
BUilt-In-Self-Test for VLSI DesignUsha Mehta
 
6 verification tools
6 verification tools6 verification tools
6 verification toolsUsha Mehta
 
Delays in verilog
Delays in verilogDelays in verilog
Delays in verilogJITU MISTRY
 
01 Transition Fault Detection methods by Swetha
01 Transition Fault Detection methods by Swetha01 Transition Fault Detection methods by Swetha
01 Transition Fault Detection methods by Swethaswethamg18
 
Static_Timing_Analysis_in_detail.pdf
Static_Timing_Analysis_in_detail.pdfStatic_Timing_Analysis_in_detail.pdf
Static_Timing_Analysis_in_detail.pdfUsha Mehta
 
11 static timing_analysis_2_combinational_design
11 static timing_analysis_2_combinational_design11 static timing_analysis_2_combinational_design
11 static timing_analysis_2_combinational_designUsha Mehta
 
Dft (design for testability)
Dft (design for testability)Dft (design for testability)
Dft (design for testability)shaik sharief
 
Multi mode multi corner (mmmc)
Multi mode multi corner (mmmc)Multi mode multi corner (mmmc)
Multi mode multi corner (mmmc)shaik sharief
 
3 test economic_test_equipments_yield
3 test economic_test_equipments_yield3 test economic_test_equipments_yield
3 test economic_test_equipments_yieldUsha Mehta
 

What's hot (20)

Logic Simulation, Modeling, and Testing
Logic Simulation, Modeling, and TestingLogic Simulation, Modeling, and Testing
Logic Simulation, Modeling, and Testing
 
Transition fault detection
Transition fault detectionTransition fault detection
Transition fault detection
 
2019 1 testing and verification of vlsi design_introduction
2019 1 testing and verification of vlsi design_introduction2019 1 testing and verification of vlsi design_introduction
2019 1 testing and verification of vlsi design_introduction
 
Deterministic Test Pattern Generation ( D-Algorithm of ATPG) (Testing of VLSI...
Deterministic Test Pattern Generation ( D-Algorithm of ATPG) (Testing of VLSI...Deterministic Test Pattern Generation ( D-Algorithm of ATPG) (Testing of VLSI...
Deterministic Test Pattern Generation ( D-Algorithm of ATPG) (Testing of VLSI...
 
Design for testability and automatic test pattern generation
Design for testability and automatic test pattern generationDesign for testability and automatic test pattern generation
Design for testability and automatic test pattern generation
 
2019 2 testing and verification of vlsi design_verification
2019 2 testing and verification of vlsi design_verification2019 2 testing and verification of vlsi design_verification
2019 2 testing and verification of vlsi design_verification
 
Spyglass dft
Spyglass dftSpyglass dft
Spyglass dft
 
Sta by usha_mehta
Sta by usha_mehtaSta by usha_mehta
Sta by usha_mehta
 
2 when to_test_role_of_testing
2 when to_test_role_of_testing2 when to_test_role_of_testing
2 when to_test_role_of_testing
 
BUilt-In-Self-Test for VLSI Design
BUilt-In-Self-Test for VLSI DesignBUilt-In-Self-Test for VLSI Design
BUilt-In-Self-Test for VLSI Design
 
Static_Time_Analysis.pptx
Static_Time_Analysis.pptxStatic_Time_Analysis.pptx
Static_Time_Analysis.pptx
 
dft
dftdft
dft
 
6 verification tools
6 verification tools6 verification tools
6 verification tools
 
Delays in verilog
Delays in verilogDelays in verilog
Delays in verilog
 
01 Transition Fault Detection methods by Swetha
01 Transition Fault Detection methods by Swetha01 Transition Fault Detection methods by Swetha
01 Transition Fault Detection methods by Swetha
 
Static_Timing_Analysis_in_detail.pdf
Static_Timing_Analysis_in_detail.pdfStatic_Timing_Analysis_in_detail.pdf
Static_Timing_Analysis_in_detail.pdf
 
11 static timing_analysis_2_combinational_design
11 static timing_analysis_2_combinational_design11 static timing_analysis_2_combinational_design
11 static timing_analysis_2_combinational_design
 
Dft (design for testability)
Dft (design for testability)Dft (design for testability)
Dft (design for testability)
 
Multi mode multi corner (mmmc)
Multi mode multi corner (mmmc)Multi mode multi corner (mmmc)
Multi mode multi corner (mmmc)
 
3 test economic_test_equipments_yield
3 test economic_test_equipments_yield3 test economic_test_equipments_yield
3 test economic_test_equipments_yield
 

Similar to Fault Simulation (Testing of VLSI Design)

Test pattern Generation for 4:1 MUX
Test pattern Generation for 4:1 MUXTest pattern Generation for 4:1 MUX
Test pattern Generation for 4:1 MUXUrmilasSrinivasan
 
2019 3 testing and verification of vlsi design_sta
2019 3 testing and verification of vlsi design_sta2019 3 testing and verification of vlsi design_sta
2019 3 testing and verification of vlsi design_staUsha Mehta
 
Design Verification and Test Vector Minimization Using Heuristic Method of a ...
Design Verification and Test Vector Minimization Using Heuristic Method of a ...Design Verification and Test Vector Minimization Using Heuristic Method of a ...
Design Verification and Test Vector Minimization Using Heuristic Method of a ...ijcisjournal
 
Wavelet Based on the Finding of Hard and Soft Faults in Analog and Digital Si...
Wavelet Based on the Finding of Hard and Soft Faults in Analog and Digital Si...Wavelet Based on the Finding of Hard and Soft Faults in Analog and Digital Si...
Wavelet Based on the Finding of Hard and Soft Faults in Analog and Digital Si...ijcisjournal
 
Design for Testability in Timely Testing of Vlsi Circuits
Design for Testability in Timely Testing of Vlsi CircuitsDesign for Testability in Timely Testing of Vlsi Circuits
Design for Testability in Timely Testing of Vlsi CircuitsIJERA Editor
 
Advancing VLSI Design Reliability: A Comprehensive Examination of Embedded De...
Advancing VLSI Design Reliability: A Comprehensive Examination of Embedded De...Advancing VLSI Design Reliability: A Comprehensive Examination of Embedded De...
Advancing VLSI Design Reliability: A Comprehensive Examination of Embedded De...IRJET Journal
 
Crash course on data streaming (with examples using Apache Flink)
Crash course on data streaming (with examples using Apache Flink)Crash course on data streaming (with examples using Apache Flink)
Crash course on data streaming (with examples using Apache Flink)Vincenzo Gulisano
 
Module5 Testing and Verification.pdf
Module5 Testing and Verification.pdfModule5 Testing and Verification.pdf
Module5 Testing and Verification.pdfBhavanaHN5
 
10 static timing_analysis_1_concept_of_timing_analysis
10 static timing_analysis_1_concept_of_timing_analysis10 static timing_analysis_1_concept_of_timing_analysis
10 static timing_analysis_1_concept_of_timing_analysisUsha Mehta
 
Design and Implementation of Test Vector Generation using Random Forest Techn...
Design and Implementation of Test Vector Generation using Random Forest Techn...Design and Implementation of Test Vector Generation using Random Forest Techn...
Design and Implementation of Test Vector Generation using Random Forest Techn...IRJET Journal
 
Discrete-event simulation: best practices and implementation details in Pytho...
Discrete-event simulation: best practices and implementation details in Pytho...Discrete-event simulation: best practices and implementation details in Pytho...
Discrete-event simulation: best practices and implementation details in Pytho...Carlos Natalino da Silva
 
Mining System Logs to Learn Error Predictors, Universität Stuttgart, Stuttgar...
Mining System Logs to Learn Error Predictors, Universität Stuttgart, Stuttgar...Mining System Logs to Learn Error Predictors, Universität Stuttgart, Stuttgar...
Mining System Logs to Learn Error Predictors, Universität Stuttgart, Stuttgar...Barbara Russo
 

Similar to Fault Simulation (Testing of VLSI Design) (20)

Test pattern Generation for 4:1 MUX
Test pattern Generation for 4:1 MUXTest pattern Generation for 4:1 MUX
Test pattern Generation for 4:1 MUX
 
2019 3 testing and verification of vlsi design_sta
2019 3 testing and verification of vlsi design_sta2019 3 testing and verification of vlsi design_sta
2019 3 testing and verification of vlsi design_sta
 
Design Verification and Test Vector Minimization Using Heuristic Method of a ...
Design Verification and Test Vector Minimization Using Heuristic Method of a ...Design Verification and Test Vector Minimization Using Heuristic Method of a ...
Design Verification and Test Vector Minimization Using Heuristic Method of a ...
 
Wavelet Based on the Finding of Hard and Soft Faults in Analog and Digital Si...
Wavelet Based on the Finding of Hard and Soft Faults in Analog and Digital Si...Wavelet Based on the Finding of Hard and Soft Faults in Analog and Digital Si...
Wavelet Based on the Finding of Hard and Soft Faults in Analog and Digital Si...
 
Design for Testability in Timely Testing of Vlsi Circuits
Design for Testability in Timely Testing of Vlsi CircuitsDesign for Testability in Timely Testing of Vlsi Circuits
Design for Testability in Timely Testing of Vlsi Circuits
 
Applications of ATPG
Applications of ATPGApplications of ATPG
Applications of ATPG
 
Advancing VLSI Design Reliability: A Comprehensive Examination of Embedded De...
Advancing VLSI Design Reliability: A Comprehensive Examination of Embedded De...Advancing VLSI Design Reliability: A Comprehensive Examination of Embedded De...
Advancing VLSI Design Reliability: A Comprehensive Examination of Embedded De...
 
Soc.pptx
Soc.pptxSoc.pptx
Soc.pptx
 
final report
final reportfinal report
final report
 
report.pdf
report.pdfreport.pdf
report.pdf
 
Crash course on data streaming (with examples using Apache Flink)
Crash course on data streaming (with examples using Apache Flink)Crash course on data streaming (with examples using Apache Flink)
Crash course on data streaming (with examples using Apache Flink)
 
Major project iii 3
Major project  iii  3Major project  iii  3
Major project iii 3
 
Module5 Testing and Verification.pdf
Module5 Testing and Verification.pdfModule5 Testing and Verification.pdf
Module5 Testing and Verification.pdf
 
10 static timing_analysis_1_concept_of_timing_analysis
10 static timing_analysis_1_concept_of_timing_analysis10 static timing_analysis_1_concept_of_timing_analysis
10 static timing_analysis_1_concept_of_timing_analysis
 
Design and Implementation of Test Vector Generation using Random Forest Techn...
Design and Implementation of Test Vector Generation using Random Forest Techn...Design and Implementation of Test Vector Generation using Random Forest Techn...
Design and Implementation of Test Vector Generation using Random Forest Techn...
 
Discrete-event simulation: best practices and implementation details in Pytho...
Discrete-event simulation: best practices and implementation details in Pytho...Discrete-event simulation: best practices and implementation details in Pytho...
Discrete-event simulation: best practices and implementation details in Pytho...
 
Gene's law
Gene's lawGene's law
Gene's law
 
12 mf3im15
12 mf3im1512 mf3im15
12 mf3im15
 
Resume
ResumeResume
Resume
 
Mining System Logs to Learn Error Predictors, Universität Stuttgart, Stuttgar...
Mining System Logs to Learn Error Predictors, Universität Stuttgart, Stuttgar...Mining System Logs to Learn Error Predictors, Universität Stuttgart, Stuttgar...
Mining System Logs to Learn Error Predictors, Universität Stuttgart, Stuttgar...
 

More from Usha Mehta

Basic Design Flow for Field Programmable Gate Arrays
Basic Design Flow for Field Programmable Gate ArraysBasic Design Flow for Field Programmable Gate Arrays
Basic Design Flow for Field Programmable Gate ArraysUsha Mehta
 
Field Programmable Gate Arrays : Architecture
Field Programmable Gate Arrays : ArchitectureField Programmable Gate Arrays : Architecture
Field Programmable Gate Arrays : ArchitectureUsha Mehta
 
Programmable Logic Devices : SPLD and CPLD
Programmable Logic Devices : SPLD and CPLDProgrammable Logic Devices : SPLD and CPLD
Programmable Logic Devices : SPLD and CPLDUsha Mehta
 
Programmable Switches for Programmable Logic Devices
Programmable Switches for Programmable Logic DevicesProgrammable Switches for Programmable Logic Devices
Programmable Switches for Programmable Logic DevicesUsha Mehta
 
2_DVD_ASIC_Design_FLow.pdf
2_DVD_ASIC_Design_FLow.pdf2_DVD_ASIC_Design_FLow.pdf
2_DVD_ASIC_Design_FLow.pdfUsha Mehta
 
3_DVD_IC_Fabrication_Flow_designer_perspective.pdf
3_DVD_IC_Fabrication_Flow_designer_perspective.pdf3_DVD_IC_Fabrication_Flow_designer_perspective.pdf
3_DVD_IC_Fabrication_Flow_designer_perspective.pdfUsha Mehta
 
7_DVD_Combinational_MOS_Logic_Circuits.pdf
7_DVD_Combinational_MOS_Logic_Circuits.pdf7_DVD_Combinational_MOS_Logic_Circuits.pdf
7_DVD_Combinational_MOS_Logic_Circuits.pdfUsha Mehta
 
5_DVD_VLSI Technology Trends.pdf
5_DVD_VLSI Technology Trends.pdf5_DVD_VLSI Technology Trends.pdf
5_DVD_VLSI Technology Trends.pdfUsha Mehta
 
8_DVD_Sequential_MOS_logic_circuits.pdf
8_DVD_Sequential_MOS_logic_circuits.pdf8_DVD_Sequential_MOS_logic_circuits.pdf
8_DVD_Sequential_MOS_logic_circuits.pdfUsha Mehta
 
9_DVD_Dynamic_logic_circuits.pdf
9_DVD_Dynamic_logic_circuits.pdf9_DVD_Dynamic_logic_circuits.pdf
9_DVD_Dynamic_logic_circuits.pdfUsha Mehta
 
13_DVD_Latch-up_prevention.pdf
13_DVD_Latch-up_prevention.pdf13_DVD_Latch-up_prevention.pdf
13_DVD_Latch-up_prevention.pdfUsha Mehta
 
14 static timing_analysis_5_clock_domain_crossing
14 static timing_analysis_5_clock_domain_crossing14 static timing_analysis_5_clock_domain_crossing
14 static timing_analysis_5_clock_domain_crossingUsha Mehta
 
9 semiconductor memory
9 semiconductor memory9 semiconductor memory
9 semiconductor memoryUsha Mehta
 
13 static timing_analysis_4_set_up_and_hold_time_violation_remedy
13 static timing_analysis_4_set_up_and_hold_time_violation_remedy13 static timing_analysis_4_set_up_and_hold_time_violation_remedy
13 static timing_analysis_4_set_up_and_hold_time_violation_remedyUsha Mehta
 
12 static timing_analysis_3_clocked_design
12 static timing_analysis_3_clocked_design12 static timing_analysis_3_clocked_design
12 static timing_analysis_3_clocked_designUsha Mehta
 
5 verification methods
5 verification methods5 verification methods
5 verification methodsUsha Mehta
 
Verification flow and_planning_vlsi_design
Verification flow and_planning_vlsi_designVerification flow and_planning_vlsi_design
Verification flow and_planning_vlsi_designUsha Mehta
 

More from Usha Mehta (19)

Basic Design Flow for Field Programmable Gate Arrays
Basic Design Flow for Field Programmable Gate ArraysBasic Design Flow for Field Programmable Gate Arrays
Basic Design Flow for Field Programmable Gate Arrays
 
Field Programmable Gate Arrays : Architecture
Field Programmable Gate Arrays : ArchitectureField Programmable Gate Arrays : Architecture
Field Programmable Gate Arrays : Architecture
 
Programmable Logic Devices : SPLD and CPLD
Programmable Logic Devices : SPLD and CPLDProgrammable Logic Devices : SPLD and CPLD
Programmable Logic Devices : SPLD and CPLD
 
Programmable Switches for Programmable Logic Devices
Programmable Switches for Programmable Logic DevicesProgrammable Switches for Programmable Logic Devices
Programmable Switches for Programmable Logic Devices
 
2_DVD_ASIC_Design_FLow.pdf
2_DVD_ASIC_Design_FLow.pdf2_DVD_ASIC_Design_FLow.pdf
2_DVD_ASIC_Design_FLow.pdf
 
3_DVD_IC_Fabrication_Flow_designer_perspective.pdf
3_DVD_IC_Fabrication_Flow_designer_perspective.pdf3_DVD_IC_Fabrication_Flow_designer_perspective.pdf
3_DVD_IC_Fabrication_Flow_designer_perspective.pdf
 
7_DVD_Combinational_MOS_Logic_Circuits.pdf
7_DVD_Combinational_MOS_Logic_Circuits.pdf7_DVD_Combinational_MOS_Logic_Circuits.pdf
7_DVD_Combinational_MOS_Logic_Circuits.pdf
 
5_DVD_VLSI Technology Trends.pdf
5_DVD_VLSI Technology Trends.pdf5_DVD_VLSI Technology Trends.pdf
5_DVD_VLSI Technology Trends.pdf
 
8_DVD_Sequential_MOS_logic_circuits.pdf
8_DVD_Sequential_MOS_logic_circuits.pdf8_DVD_Sequential_MOS_logic_circuits.pdf
8_DVD_Sequential_MOS_logic_circuits.pdf
 
9_DVD_Dynamic_logic_circuits.pdf
9_DVD_Dynamic_logic_circuits.pdf9_DVD_Dynamic_logic_circuits.pdf
9_DVD_Dynamic_logic_circuits.pdf
 
13_DVD_Latch-up_prevention.pdf
13_DVD_Latch-up_prevention.pdf13_DVD_Latch-up_prevention.pdf
13_DVD_Latch-up_prevention.pdf
 
14 static timing_analysis_5_clock_domain_crossing
14 static timing_analysis_5_clock_domain_crossing14 static timing_analysis_5_clock_domain_crossing
14 static timing_analysis_5_clock_domain_crossing
 
9 semiconductor memory
9 semiconductor memory9 semiconductor memory
9 semiconductor memory
 
13 static timing_analysis_4_set_up_and_hold_time_violation_remedy
13 static timing_analysis_4_set_up_and_hold_time_violation_remedy13 static timing_analysis_4_set_up_and_hold_time_violation_remedy
13 static timing_analysis_4_set_up_and_hold_time_violation_remedy
 
12 static timing_analysis_3_clocked_design
12 static timing_analysis_3_clocked_design12 static timing_analysis_3_clocked_design
12 static timing_analysis_3_clocked_design
 
5 verification methods
5 verification methods5 verification methods
5 verification methods
 
1 why to_test
1 why to_test1 why to_test
1 why to_test
 
1 why to_test
1 why to_test1 why to_test
1 why to_test
 
Verification flow and_planning_vlsi_design
Verification flow and_planning_vlsi_designVerification flow and_planning_vlsi_design
Verification flow and_planning_vlsi_design
 

Recently uploaded

Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 

Recently uploaded (20)

Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 

Fault Simulation (Testing of VLSI Design)

  • 1. Fault Simulator Testing of VLSI Design Usha Mehta
  • 2. Acknowledge • This presentation has been summarized from various books, papers, websites and presentations on VLSI Design and its various topics all over the world. I couldn’t itemwise mention from where these large pull of hints and work come. However, I’d like to thank all professors and scientists who created such a good work on this emerging field. Without those efforts in this very emerging technology, these notes and slides can’t be finished. 03-12-2019 Dr Usha Mehta 2
  • 3. Introduction • Applying Deterministic TPG: • For given fault – Fault sensitization – Fault Propagation – Justification • It will generate 31 possible patterns for given fault 03-12-2019 Dr Usha Mehta 3
  • 4. • TPG generates “Many patterns for one fault” • Do we really need this many patterns for one fault? • TPG is the time consuming iterative process. • As the number of fault is large, the TPG is to be executed for each of the fault. • Why not to have “One pattern for many faults”? • Fault simulation Comparatively fault simulation is easy and fast 03-12-2019 Dr Usha Mehta 4
  • 5. 03-12-2019 Dr Usha Mehta 5 • Randomly selecting any pattern – 1 0 0 0 1-----11111 – This pattern generates 0 on o/p of G1, 1 on G2 to G5 and 0 on G6 – Hence it can detect sa1 on G – 1 1-----11111 – This pattern can detect sa0 on any net • Two pattern can detect 33 faults!
  • 6. Fault Simulation process 1. Generate a random pattern 2. Determine the output of the circuit for that random pattern as input 3. Take fault from the fault list and modify the Boolean functionally of the gate whose input has the fault. 4. Determine output of the circuit with fault for that random pattern as input. 5. If the output of normal circuit varies from the one with fault, then the random pattern detects the fault under consideration. 6. f the fault is detected, it is removed from the fault list. 7. Steps 3 to 6 are repeated for another fault in the list. This continues till all faults are considered. 8. Steps 1 to 7 are repeated for another random pattern. This continues till all faults are detected. 03-12-2019 Dr Usha Mehta 6
  • 7. Major Steps of Fault Simulation 1. Generate random pattern 2. For given pattern, find the golden output of the fault free circuit (Circuit/Logic Simulation) 3. Insert the intended fault in the fault free circuit 4. Again apply the generated pattern and find the output of the circuit in presence of fault (Fault Simulation) 03-12-2019 Dr Usha Mehta 7
  • 9. Simulator • Definition – Simulation refers to modelling of a design, eg. its function and performance. • A software simulator is a computer program • An emulator is a hardware simulator • Simulator is used for design verification – Validate assumptions – Verify logic – Verify performance (timing) 03-12-2019 Dr Usha Mehta 9
  • 10. Simulator-Block Diagram 03-12-2019 Dr Usha Mehta 10 Specification Circuit Description Simulated Responses Input Stimuli Expected Responses Manual design or via Synthesis Testbench Development Response Analysis Bug? Next Design Stage yes no
  • 12. Abstraction Level for Simulator • System level • Architecture level • Functional level/RTL level • Gate/structural level • Switch/transistor/circuit level • Mixed level 03-12-2019 Dr Usha Mehta 12
  • 13. Modelling • Modules, blocks or components described by – Input/output (I/O) function – Delays associated with I/y /O signals – Examples: binary adder, Boolean gate, etc. • Interconnects represent – Ideal signal carriers or ideal electrical conductors • Netlist – A format (or language) that describes a design as an interconnection of modules. Netlist may use hierarchy. 03-12-2019 Dr Usha Mehta 13
  • 14. Signal States • Two-states (0, 1) can be used for purely combinational logic with zero-delay. • Three-states (0, 1, X) are essential for timing hazards and for sequential logic initialization. • Four-states (0, 1, X, Z) are essential for MOS devices. See example below. • Analog signals are used for exact timing of digital logic and for analog circuits. 03-12-2019 Dr Usha Mehta 14
  • 15. Information Loss in ternary Logic • Simulation based on ternary logic is pessimistic • A signal may be reported as unknown when its value can be uniquely determined as 0 or 1 03-12-2019 Dr Usha Mehta 15 A B C u u u u u K G2 G4 G3G1 0 1 A B C 0 or 1 0 1 or 0 0 or 1 0 or 1 K G2 G4 G3G1 0 1
  • 16. Gate Evaluation Method • Choice of evaluation technique depends on – Considered logic symbols – Types and models of logic elements • Commonly used approaches – Truth table based – Input scanning – Input counting – Parallel gate evaluation 03-12-2019 Dr Usha Mehta 16
  • 17. Truth Table Based Gate Evaluation Method • The most straightforward and easy to implement – For binary logic, 2n entries for n-input logic element – May use the input value as table index – Table size increases exponentially with the number of inputs • Could be inefficient for multi-valued logic – A k-symbol logic system requires a table of 2mn entries for an n-input logic element • m = log2k • Table indexed by mn-bit words 03-12-2019 Dr Usha Mehta 17
  • 18. Input Scanning Based Gate Evaluation Method • The gate output can be determined by the types of inputs – If any of the inputs is the controlling value, the gate output is ci – Otherwise, if any of the inputs is u, the gate output is u – Otherwise, the gate output is c'i 03-12-2019 Dr Usha Mehta 18 Table 3.2: Thec (controlling)and i (inversion) values of basic gates c i AND 0 0 OR 1 0 NAND 0 1 NOR 1 1
  • 20. Input Counting Based Gate Evaluation Method • Knowing the number of unknown and controlling inputs is sufficient to evaluate the AND, OR, NAND and NOR gates • c_count, u_count • When any gate input is changed, these two variables are updated. • Suppose, for NOR, one of the input changes from 1 to u, then c_count is decreased and u_count is increases. • Then similar to input scanning… 03-12-2019 Dr Usha Mehta 20
  • 21. Simulator • Event driven • Cycle Based • Compiled Code 03-12-2019 Dr Usha Mehta 21
  • 22. Event Driven Simulator • Event: change in logic value at a node, at a certain instant of time ® (V,T) • Performs both timing and functional verification – All nodes are visible – Glitches are detected • Most heavily used and well-suited for all types of designs • Uses a time wheel to manage the relationship between components • Time wheel = list of all events not processed yet, sorted in time (complete ordering) • When event is generated, it is put in the appropriate point in the time wheel to ensure causality • Faster compared to cycle based simulator because in large logic circuits about 0.1 to 10% gates become active for an input change 03-12-2019 Dr Usha Mehta 22
  • 24. Event Driven Simulation FlowChart 03-12-2019 Dr Usha Mehta 24
  • 25. Efficiency of Event Based Simulator • Simulates events (value changes) only • Speed up over compiled-code can be ten times or more; in large logic circuits about 0.1 to 10% gates become active for an input change 03-12-2019 Dr Usha Mehta 25 Large logic block without activity Steady 0 0 to 1 event Steady 0 (no event)
  • 26. Cycle Based Simulator • Take advantage of the fact that most digital designs are largely synchronous (state elements change value on active edge of clock) • Compute steady-state response of the circuit • at each clock cycle • at each boundary node • Only boundary nodes are evaluated 03-12-2019 Dr Usha Mehta 26
  • 27. Compiled Code Simulation • To translate the logic network into series of machine instruction • Logic Optimization and Levelization is performed before actual code generation process 03-12-2019 Dr Usha Mehta 27
  • 31. Code generation and Simulation 03-12-2019 Dr Usha Mehta 31
  • 32. Compiled Code Simulation • Applicable to zero-delay combinational logic • Also used for cycle-accurate synchronous sequential circuits for logic verification • Efficient for highly active circuits, but inefficient for low- activity circuits • High-level (e.g., C language) models can be used 03-12-2019 Dr Usha Mehta 32
  • 33. Fault Simulation • Fault simulation – In general, simulating a circuit in the presence of faults is known as fault simulation – Predicts the behavior of faulty circuits As a consequence of inevitable fabrication process imperfections • The main goals of fault simulation – Measuring the effectiveness of the test patterns – Guiding the test pattern generator program – Generating fault dictionaries 03-12-2019 Dr Usha Mehta 33
  • 34. Fault Simulation….. • Outputs of fault simulation – Fault coverage - fraction (or percentage) of modeled faults detected by test vectors – Set of undetected faults • An important tool for test and diagnosis – Estimate fault coverage – Fault simulator – Test compaction – Fault diagnosis 03-12-2019 Dr Usha Mehta 34
  • 35. Fault Simulation Tasks • What is fault simulation? – Given • A circuit • A set of test patterns • A fault model – Determine • Faulty outputs • Undetected faults • Fault coverage 03-12-2019 Dr Usha Mehta 35
  • 36. Time Complexity of Fault Simulator • Proportional to – n: Circuit size, number of logic gates – p: Number of test patterns – f : Number of modeled faults • Since f is roughly proportional to n, the overall time complexity is O(pn2) 03-12-2019 Dr Usha Mehta 36
  • 37. Faults • Mostly single stuck-at faults • Sometimes stuck-open, transition, and path-delay faults; analog circuit fault simulators are not yet in common use • Equivalence fault collapsing of single stuck-at faults • Fault-dropping -- a fault once detected is dropped from consideration as more vectors are simulated; fault-dropping may be suppressed for diagnosis • Fault sampling -- a random sample of faults is simulated when the circuit is large 03-12-2019 Dr Usha Mehta 37
  • 38. Fault Simulator (in detail) 03-12-2019 Dr Usha Mehta 38
  • 39. Serial Fault Simulation • First, perform fault-free logic simulation on the original circuit – Good (fault-free) response • For each fault, perform fault injection and logic simulation – Modify netlist by injecting one fault – Simulate modified netlist, vector by vector, comparing responses with saved responses – If response differs, report fault detection and suspend simulation of remaining vectors • Advantages: • Easy to implement; needs only a true-value simulator, less memory • Most faults, including analog faults, can be simulated 03-12-2019 Dr Usha Mehta 39
  • 40. Serial Fault Simulator (cont.) • Disadvantage: Much repeated computation; CPU time prohibitive for VLSI circuits • Alternative: Simulate many faults together 03-12-2019 Dr Usha Mehta 40Courtesy: Agrawal & Bushnell
  • 41. Parallel Simulators • To speed up the logic simulation • To simulate the concurrency on host computer where there is 32-64 bit wide processor available • For four bit data word, parallelism of four input combinations are possible, e.g. • abc = {110, 010, 011, 100} 03-12-2019 Dr Usha Mehta 41
  • 42. Parallel Fault Simulation • Compiled-code method; best with two-states (0,1) • Exploits inherent bit-parallelism of logic operations on computer words • Storage: one word per line for two-state simulation • Multi-pass simulation: Each pass simulates w-1 new faults, where w is the machine word length • Speed up over serial method ~ w-1 • Not suitable for circuits with timing-critical and non-Boolean logic 03-12-2019 Dr Usha Mehta 42
  • 43. 03-12-2019 Dr Usha Mehta 43 Courtesy: Agrawal & Bushnell
  • 44. Parallel Simulation of Multivalued Logic 03-12-2019 Dr Usha Mehta 44 • For three valued logic • For w bit data words, two words denoted by X1 and X2 are used for signal X • AND and OR are still same • The compliment operation is : • Note that the compliment of u is still unknown i.e. u
  • 45. Limitations of Parallel Fault Simulation • Useful for two (1,0) or three (0,1,X) logic values, not suitable for multiple logic values, e.g. (0,1,U,R,F,…) – Multiple logic values can be handled but operations are complex • Wasted computations – Fault dropping not carried out effectively – Not possible to discard faults that are in the same word 03-12-2019 Dr Usha Mehta 45