390 likes | 497 Views
A Monte Carlo Approach for Testability Analysis. Speaker: Chuang-Chi Chiou Advisor: Chun-Yao Wang 2007.01.29. Outline. Introduction Previous Work Background Monte Carlo Approach for testability analysis Experiment Results Conclusion Future Work. Outline. Introduction Previous Work
E N D
A Monte Carlo Approach for Testability Analysis Speaker: Chuang-Chi Chiou Advisor: Chun-Yao Wang 2007.01.29 1
Outline • Introduction • Previous Work • Background • Monte Carlo Approach for testability analysis • Experiment Results • Conclusion • Future Work 2
Outline • Introduction • Previous Work • Background • Monte Carlo Approach for testability analysis • Experiment Results • Conclusion • Future Work 3
Single Stuck-At Fault Only one line is faulty Fault line permanently set to 1 or 0 Fault can be an input or output of a gate One of the gate input terminal was mistakenly connected to ground Fault: B stuck at 0 Signal B is always be 0 Fault Model G1 A B 4
Testability Analysis • Controllability • The difficulty of setting a particular logic signal to 0 or 1 ( 0’s controllability or 1’ controllability ) • Observability • The difficulty of observing the state of a logic signal • Fault detection probability • Stuck-at-1 fault testability • Stuck-at-0 fault testability • The difficulty of observing the state of a logic signal to be 0 or 1 5
Motivation • Give a warning to designer which nodes are hard-to-test • Redesign • Add test circuits such as test point insertion • Provide guidance for ATPG • Avoid hard-to-control point • Provide estimation of fault coverage and test vector set length 6
Outline • Introduction • Previous Work • Background • Monte Carlo Approach for testability analysis • Experiment Results • Conclusion • Future Work 7
Previous Work (1/2) • SCOAP • First elegant formulation • Use integer to represent difficulty for testing a wire • Results are not easy to use • Parker and McCluskey • Definition of probabilistic controllability • Symbolic expression • Expression grows exponentially • COP • Probability based • Correlation is not taken into account • Very fast but low accuracy 8
Previous Work (2/2) • PREDICT • First exact probabilistic measures • Use supergate concept • High accuracy but exponential computation • TAIR • Use ATPG to revise the result of COP • Much accurate than COP • Still has 20%–30% inaccuracy in general circuits • Inaccuracy is augmented by the correlation 9
Outline • Introduction • Previous Work • Background • Monte Carlo Approach for testability analysis • Experiment Results • Conclusion • Future Work 10
Monte Carlo Approach • Random number generator • Sampling rule • Scoring • Accumulate into overall scores for the quantities • Error estimation • Estimation of the statistical error as a function of the number of trials 11
Example for MC approach • Estimate π, “hit and miss” concept • Generate random number between 0 and 1 • Sampling rule • Sample interval 1000 points • Scoring • Accumulate sample data • Error estimation • Confidence interval • Define stop condition y 1 x 1 0 12
Outline • Introduction • Previous Work • Background • Monte Carlo Approach for testability analysis • Experiment Results • Conclusion • Future Work 13
Problem Description • Given a circuit only consists of AND, OR and INV gates • Calculate controllability, observability and s-a-0, s-a-1 fault detection probability for each node 14
Random Pattern Architecture • RPG is a N-output circuit with parameterr • Generates N 2r-bit patterns 2rbits S R P G N M … … r 15
Sampling Rule (1/5) • Controllability C0= 1/4 0110 C0= 2/4 a C1= 3/4 C0= 1/4 d C1= 2/4 0111 C1= 3/4 f C0= 2/4 0011 0011 0111 b C1= 2/4 0111 C0= 1/4 C1= 3/4 0011 e C0= 2/4 0101 c C1= 2/4 16
Sampling Rule (2/5) • Observability O = 3/4 0110 a O = 1/4 d O = 4/4 0111 f 0011 0011 0111 b O = 2/4 O = 1/4 0111 O = 3/4 O = 1/4 0011 e 0101 c O = 1/4 17
Sampling Rule (3/5) • Fault detection probability T1 = 0/4 T1 = 0/4 T0 = 3/4 0110 T1 = 1/4 a T0 = 1/4 d T0 = 3/4 0111 f 0011 0011 T1 = 0/4 0111 b T1 = 0/4 T1 = 0/4 T0 = 2/4 T0 = 3/4 0111 T0 = 1/4 T1 = 0/4 T0 = 1/4 0011 e T1 = 0/4 0101 c T0 = 1/4 18
Sampling Rule (4/5) • Multiple path sensitization O = 3/4 0110 a O = 1/4 d O = 4/4 0111 f 1110 0011 0011 0111 b O = 2/4 1100 1100 1100 O = 3/4 0111 O = 3/4 O = 1/4 1101 O = 1/4 0011 0011 e 1100 0101 c O = 1/4 19
Sampling Rule (5/5) • Multiple path sensitization O = 3/4 0110 a O = 1/4 d O = 4/4 0111 f 1110 0011 0011 0110 b O = 3/4 1100 1100 1010 O = 3/4 1110 O = 2/4 O = 1/4 1011 O = 2/4 0011 e 1100 1010 c O = 1/4 20
Objective of Testability Analysis • Fast • Almost linear time complexity to circuit size • Provide high-accuracy approximate result • Neglect self-masking and multiple path sensitization 21
Scoring (1/2) • Circuit: C6288 • Gates: 3540 • Frame : 1024 bits • Iteration: 100000 • Observe point : output • Normal Distribution 22
Error Estimation • Unknown mean unknown standard deviation • : sample mean, t*: value from t-distribution table at specified confidence level S : sample standard deviation n : number of iterations • We simulate the circuit until • ε: specified error 24
Confidence Level • More confidence level more similar to Normal Distribution 25
t-distribution Table • We choose 95% confidence level 5-degrees freedom 26
Flow • Read circuit in BLIF format • Iteration • Random patterns for PIs • Evaluate • Back trace • Run several iterations to find check point • Highest standard deviation point • Check stopping criterion • Specified confidence level and error • Error estimation 27
Start Specify r, c, ε,n i++ Generate 2r patterns Sample data no i > n ? yes Determine check point yes error <ε? no Average all sample data Generate 2r patterns Sample data Finish
Outline • Introduction • Previous Work • Background • Monte Carlo Approach for testability analysis • Experiment Results • Conclusion • Future Work 29
Experiment Results (1/5) • Frame: 8192 (213), Initial iterations: 10, C: 99.9%, ε: 0.005 30
Experiment Results (2/5) • Frame: 8192 (213), Initial iterations: 10, C: 99.9%, ε: 0.005 31
Experiment Results (3/5) • Frame: 8192 (213), Initial iterations: 10, C: 99.9%, ε: 0.005 32
Experiment Results (4/5) • Frame: 8192 (213), Initial iterations: 10, C: 99.9%, ε: 0.005 33
Outline • Introduction • Previous Work • Background • Monte Carlo Approach for testability analysis • Experiment Results • Conclusion • Future Work 35
Conclusion • Monte Carlo Approach is used for testability analysis • Parallel Pattern Simulation and Critical Path Tracing techniques is introduced as sampling rule • Our method is fast, high-accuracy and flexible 36
Outline • Introduction • Previous Work • Background • Monte Carlo Approach for testability analysis • Experiment Results • Conclusion • Future Work 37
Future Work • Finish ITC paper 38