SlideShare a Scribd company logo
1 of 29
ATPG of Reversible Circuits
Rahul Krishnamurthy
Under the Guidance of
Prof.G.K.Sharma

April 20, 2012
outline

OUTLINE

◮

Integer Linear programming for ATPG.

◮

Circuit Decomposition Approach to generate test patterns.

◮

SAT based ATPG for Reversible Circuits.
BASICS

Complete and minimal test sets

◮

Given a reversible circuit C and a fault set F ,a set of test
vectors that detect all faults in F is called a complete test set.

◮

A complete test set with the fewest possible vectors is minimal
BASICS
Observability and Controllabilty

Observability and Controllabilty

Two important properties of reversiblity simplify the test set
generation problem.
◮

Controllability: There is a test vector that generates any given
desired state on the wires at any given level

◮

Observability: Any single fault that changes an intermediate
state in the circuit also changes the output
ILP Formulation for ATPG

Basic ILP terminology

◮

i th Input Vector is denoted by Ti

◮

Each Ti associated by a binary decision variable ti .

◮

ti → one if the corresponding input vector is in the test set.

◮

ti → zero if the corresponding input vector is not in the test
set.

◮

A fault is detected if a decision variable with value one
corresponds to a vector that detects the fault.
ILP Formulation for ATPG
ILP model

ILP Model
level 0

◮

level 1

level 2

The values of the wires at the j th level for input Ti are
fj (Ti )

◮

To detect all stuck-at 0 faults at level j the following
inequalities must be satisfied
2n −1
i =0 fj (Ti )xti

◮

≥1

The above inequality guarantee that each value at the j th
level is set to 1 by some test vector ensuring that all stuck-at
0 faults are detected
ILP Formulation for ATPG
ILP model

ILP Model contd..

◮

A similar set of inequalities ensures that all stuck-at 1 faults
are also detected.

◮

Total 2n(d+1) linear inequality constarints are used to
guarantee completeness.

◮

n denotes the number of lines and d is the number of levels.
ILP Formulation for ATPG
ILP model contd..

ILP model contd..

◮

There are 3 lines and a total of 3 levels So for stuck-at 0 a
total of 3x3 constriants are there.

◮

There are 3 lines and a total of 3 levels So for stuck-at 1 a
total of 3x3 constriants are there.

◮

Total linear inequality constarints are 18 .
ILP formulation

ILP formulation
◮

The general ILP formulation of the minimal test-set problem
for a reversible circuit on n wires and with depth d is:
MINIMIZE t0 + t1 + t2 + t3 + t4 + · · · + t2n −1
subject to constraints
2n −1
i =0 fj (Ti ).ti

≥1

2n −1
i =0 fj (Ti ).ti

≥1

for all 0 ≤ j ≤ d

where ti ∈ {0, 1}, andTi is the n-bit binary expansion of
integer i
ILP formulation
example

Example

level 0

level 1

level 2

0

0

0

0

0

0

0

0

0

0

0

1

0

level 0

0

level 1

level 2

level 0

level 0

level 1

1

level 1

level 2

0
0
1

level 2

0

0

0

0

0

0

1

1

1

1

1

1

0

0

1

1

1

0
ILP formulation
Example contd..

Example Contd..

The following inequalities guarantees that each of the fault sites
can be set to 1.
0 0 0 0 1 1 1 1
7
 t0 
i =0 f0 (Ti ).ti ≥ 1
00110011
t1
0 1 0 1 0 1 0 1
7
 t2  ≥ 1
0 0 0 0 1 1 1 1 ·

 t3 
i =0 f1 (Ti ).ti ≥ 1 ⇐⇒
0 0 1 1 1 1 0 0
 t4 
0 1 0 1 0 1 0 1
7
t5
00001111
i =0 f2 (Ti ).ti ≥ 1
t6
00111100
01101001

t7
ILP formulation
Example contd..

Example Contd..
The following inequalities guarantees that each of the fault sites
can be set to 0.
1 1 1 1 0 0 0 0
7
 t0 
i =0 f0 (Ti ).ti ≥ 1
11001100
t1
1 0 1 0 1 0 1 0

7
 t2  ≥ 1
1 1 1 1 0 0 0 0 ·
 t3 
i =0 f1 (Ti ).ti ≥ 1 ⇐⇒
1 1 0 0 0 0 1 1
 t4 
1 0 1 0 1 0 1 0
7
t5
11110000
t6
i =0 f2 (Ti ).ti ≥ 1
11000011
10010110

t7

◮

Solving ILP , gives three test vectors to detect all stuck-at
faults in the circuit

◮

One such solution is t0 = t7 = t2 = 1
ILP Limitations

ILP Limitation

◮

The number of variables increases exponentially with number
of input/output bits.

◮

ILP method is feasible for small circuits.It is impractical for
large circuits.

◮

An alternative approach is to decompose the original circuit
into smaller sucircuits

◮

Use ILP formulation iteratively for these subcircuits.
Circuit-Decomposition Approach

Circuit-Decomposition Approach

◮

The circuit is first decomposed into a series of circuits acting
on small number of wires.
◮

◮

Start at the input of the circuit and add gates to the first
subcircuit C0 .
Keep adding until no more can be added without having C0
act on more than m wires.
Circuit-Decomposition Approach
Example

Example
X0
X1

X2
X3
X4
X5

C0

C1

C2

◮

The entire circuit acts on six wires.

◮

Each subcircuit acts on no more than 4 wires.
Circuit-Decomposition Approach
Example contd..

◮

ILP is performed on the subcircuit C0 which provides following
test vectors

v0 =
v1 =
v2 =

x0
X
X
X

x1
0
1
1

x2
1
0
1

x3
X
X
X

x4
1
0
1

x5
1
0
0

C
→
−0

x0
X
X
X

x1
1
1
0

x2
1
0
0

x3
X
X
X

x4
0
1
1

◮

These 3 test vectors forms complete test set for Stuck-at
faults in the C0

◮

Left and right halves represent the test vectors at the input
and output of C0 respectively

x5
0
0
1
Circuit-Decomposition Approach
Example contd

◮
◮

=⇒

◮
◮

Subcircuit C1 acts on wires x0 , x1 , x4 andx5
At the input of C1 the output of C0 is applied.
x0
X
X
X

x1
1
1
0

x4
0
1
1

x5
0
0
1

∈T

From above x0 can be either 0 or 1
For both the cases test vectors becomes
x0
0
0
0

x1
1
1
0

x4
0
1
1

x5
0
0
1

x0
1
1
1

x1
1
1
0

x4
0
1
1

x5
0
0
1
Circuit-Decomposition Approach
Example contd

◮

We generate the ILP for C1 add the following constraints
CONSTRAINTS
t4 + t12 ≥ 1
t6 + t14 ≥ 1
t3 + t11 ≥ 1

◮

Solving ILP gives the solution t6 = t11 = t12 = 1

◮

These values will be Incorporated into the the previous test
vectors.
Circuit-Decomposition Approach
Example contd

◮

Left and right halves represent the test vectors at the input
and output of C1 respectively
x0
1
0
1

x1
1
1
0

x2
1
0
0

x3
X
X
X

x4
0
1
1

x5
0
0
1

C
→
−1

x0
0
1
1

x1
1
1
0

x2
1
0
0

x3
X
X
X

x4
0
1
1

x5
0
0
1
Circuit-Decomposition Approach
Example contd

◮

Subcircuit C2 acts on wires x0 , x1 , x2 andx3

◮

Generate the ILP for this circuit and incorporate the current
test set using the following constraints:

x0
0
1
1

x1
1
1
0

x2
1
0
0

x3
X
X
X

∈ T =⇒

CONSTRAINTS
t6
+ t7
≥ 1
t12 + t13 ≥ 1
t8
+ t9
≥ 1

◮

Solving this ILP gives solutions t5 , t7 , t8 andt12

◮

The last three can be incorporated into the previous test set
however the first test vector must be added as in
Circuit-Decomposition Approach
Example contd

x0
0
1
1
0
◮

x1
1
1
0
1

x2
1
0
0
0

x3
1
0
0
1

x4
0
1
1
X

x5
0
0
1
X

=⇒

x0
0
0
1
1

x1
1
1
1
0

x2
1
0
0
0

x3
0
0
0
1

x4
0
1
1
X

x5
0
0
1
X

Filling the don’t cares with 0’s and applying C −1 to the test
set yields a complete test set for C.
SAT

SAT
◮
◮

The SAT problem is defined as follows:
Let h be a Boolean function in Conjunctive normal form i.e
product-of-sum repesentation.
◮

example : h = (x1 + x2 + x3 )(x1 + x3 )(x2 + x3 )

◮

Then the SAT problem is to determine an assignment for the
variable h so that h evaluates to 1 or to prove that no such
assignment exists

◮

For the above example x1 = 1, x2 = 1 and x3 = 1 is a
satisfying assignement for h.

◮

The values of x1 and x2 ensures that the first clause become
satisfied while x3 ensures this for the remaining two clauses
SAT Based ATPG

SAT Based ATPG terminology
◮

Let a G be circuit with n lines and d gates then
◮

◮

◮

→
1 1
1
Variable − 1 = xn , xn−1 · · · x1 represents the assignement to
x
the respective input lines of the circuit
→
Variable − d+1 = x d+1 , x d+1 · · · x d+1 represents the
x
n

n−1

1

assignement to respective output lines of the circuit
→
k k
k
Variable− k = (xn xn−1 · · · x1 ) with 2 ≤ k ≤ d represents the
x
input(output) assignment to the respective lines of the gate
gk (gk−1 )
level 1

level 2

level 3
SAT Based ATPG
constraints

Constraints
◮

For every gate gk (Ck , xtk ) in the circuit,the respective
input/output mapping is constraint
◮

Values of all lines (except the target lines)are passed through
i.e (xik+1 = xik )

◮

While the output value for the target line is determined
depending on the input values of the control and the target
line respectively
(xik+1 = xik xor ∧xc∈Ck xc )

◮

After this the constraints are added ensuring that the faulty
behavior is activated .
◮

Example: In the case that a test pattern for an SMCF at the
i th line of gate gk sholud be generated .The constraint :
(xik = 0) ∧ ( xc ∈Ck xc = 1) is added
SAT Based ATPG
Additional Constraints

Additional Constraints

◮

Finally the additional constraints are added to the instance .

◮

For example: constant inputs.

◮

i.e for each constant inputs ,constraints have to added
,ensuring that the respective variable xi1 is assigned to the
according value.
SAT based ATPG Example

SAT based ATPG Example
1
X
1

1
1
X

2
X
1

3
X
1

4
X
1

2
X
2

3
X
2

4
X
2

2
X
3

3
X
3

4
X
3

2
X
4

3
X
4

4
X
4

2
X
5

3
X
5

4
X
5

2

1
X
3
1
X
4
1
X
5

Functional Constraints:
2
1
2
1
1
x1 = x1 x2 = x2 ⊕ x5
2
1
2
1
x3 = x3 x4 = x4
2 = x1
x5
5
3
2
3
2
x1 = x1 x2 = x2
Additional Constraints:
1
x1 = 1

5
X
1
5
X
2
5
X
3
5
X
4
5
X
5

Fault constraints:
3
x2 = 0
3
x4 = 1
3
x5 = 1
SAT based ATPG Example
SAT based ATPG Example

SAT based ATPG Example

◮

The three constraints are converted into CNF -the common
input format of SAT solvers

◮

If the solver then determines a satisfying assignment for the
resulting instance,a valid test pattern can be obtained from
1
1
the assingmnet to x1 · · · xn

◮

If the SAT solver returns unsatisfiable ,then it has been proven
that no test pattern considering the additional constraints
exists- the respective fault is untestable under these
constraints.
Conclusion

Conclusion

◮

ILP provides a complete and minimal test patterns

◮

The Ilp formulation is feasible for small circuits;since the
number of variables increses exponentially with the number of
input/output bits

◮

In circuit decomposition technique the test set is not
guaranteed to be minimal.

◮

ATPG SAT is effecient when additional constraints of
Constant inputs is considered.
References

References

◮

Ketan N. Patel, John P. Hayes,and Igor L. Markov,“Fault
Testing for Reversible Circuits”,IEEE TRANSACTIONS ON
COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS
AND SYSTEMS, VOL. 23, NO. 8, AUGUST 2004

◮

Hongyan Zhang,Robert Wille and Rolf Drechsle “SAT-based
ATPG for Reversible Circuits”,Design and Test Workshop
(IDT), 2010 5th International , vol., no., pp.149-154, 14-15
Dec. 2010

More Related Content

What's hot

Spectral divide-and-conquer algorithms for eigenvalue problems and the SVD
Spectral divide-and-conquer algorithms for eigenvalue problems and the SVDSpectral divide-and-conquer algorithms for eigenvalue problems and the SVD
Spectral divide-and-conquer algorithms for eigenvalue problems and the SVDyuji_nakatsukasa
 
First Order Active RC Sections
First Order Active RC SectionsFirst Order Active RC Sections
First Order Active RC SectionsHoopeer Hoopeer
 
Frequency Response Analysis and Bode Diagrams for First Order Systems
Frequency Response Analysis and Bode Diagrams for First Order SystemsFrequency Response Analysis and Bode Diagrams for First Order Systems
Frequency Response Analysis and Bode Diagrams for First Order SystemsVishvaraj Chauhan
 
Example of the Laplace Transform
Example of the Laplace TransformExample of the Laplace Transform
Example of the Laplace TransformDavid Parker
 
Fourier-transform analysis of a unilateral fin line and its derivatives
Fourier-transform analysis of a unilateral fin line and its derivativesFourier-transform analysis of a unilateral fin line and its derivatives
Fourier-transform analysis of a unilateral fin line and its derivativesYong Heui Cho
 
Synthesis network
Synthesis networkSynthesis network
Synthesis networkkrishna0024
 
Introduction to Digital Signal Processing (DSP) - Course Notes
Introduction to Digital Signal Processing (DSP) - Course NotesIntroduction to Digital Signal Processing (DSP) - Course Notes
Introduction to Digital Signal Processing (DSP) - Course NotesAhmed Gad
 
Applications laplace transform
Applications laplace transformApplications laplace transform
Applications laplace transformMuhammad Fadli
 
Discrete time control systems
Discrete time control systemsDiscrete time control systems
Discrete time control systemsadd0103
 
discrete time signals and systems
 discrete time signals and systems  discrete time signals and systems
discrete time signals and systems Zlatan Ahmadovic
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuitsAneeq Malik
 
BEC-26 control-systems_unit-III_pdf
BEC-26 control-systems_unit-III_pdfBEC-26 control-systems_unit-III_pdf
BEC-26 control-systems_unit-III_pdfShadab Siddiqui
 
DSP_FOEHU - MATLAB 03 - The z-Transform
DSP_FOEHU - MATLAB 03 - The z-TransformDSP_FOEHU - MATLAB 03 - The z-Transform
DSP_FOEHU - MATLAB 03 - The z-TransformAmr E. Mohamed
 
Lec3 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- CMO...
Lec3 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- CMO...Lec3 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- CMO...
Lec3 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- CMO...Hsien-Hsin Sean Lee, Ph.D.
 
Systems Analysis & Control: Steady State Errors
Systems Analysis & Control: Steady State ErrorsSystems Analysis & Control: Steady State Errors
Systems Analysis & Control: Steady State ErrorsJARossiter
 
The Magic of Auto Differentiation
The Magic of Auto DifferentiationThe Magic of Auto Differentiation
The Magic of Auto DifferentiationSanyam Kapoor
 
BEC- 26 control systems_unit-II
BEC- 26 control systems_unit-IIBEC- 26 control systems_unit-II
BEC- 26 control systems_unit-IIShadab Siddiqui
 

What's hot (20)

Spectral divide-and-conquer algorithms for eigenvalue problems and the SVD
Spectral divide-and-conquer algorithms for eigenvalue problems and the SVDSpectral divide-and-conquer algorithms for eigenvalue problems and the SVD
Spectral divide-and-conquer algorithms for eigenvalue problems and the SVD
 
First Order Active RC Sections
First Order Active RC SectionsFirst Order Active RC Sections
First Order Active RC Sections
 
Frequency Response Analysis and Bode Diagrams for First Order Systems
Frequency Response Analysis and Bode Diagrams for First Order SystemsFrequency Response Analysis and Bode Diagrams for First Order Systems
Frequency Response Analysis and Bode Diagrams for First Order Systems
 
Example of the Laplace Transform
Example of the Laplace TransformExample of the Laplace Transform
Example of the Laplace Transform
 
Fourier-transform analysis of a unilateral fin line and its derivatives
Fourier-transform analysis of a unilateral fin line and its derivativesFourier-transform analysis of a unilateral fin line and its derivatives
Fourier-transform analysis of a unilateral fin line and its derivatives
 
Synthesis network
Synthesis networkSynthesis network
Synthesis network
 
z transforms
z transformsz transforms
z transforms
 
Introduction to Digital Signal Processing (DSP) - Course Notes
Introduction to Digital Signal Processing (DSP) - Course NotesIntroduction to Digital Signal Processing (DSP) - Course Notes
Introduction to Digital Signal Processing (DSP) - Course Notes
 
Applications laplace transform
Applications laplace transformApplications laplace transform
Applications laplace transform
 
Discrete time control systems
Discrete time control systemsDiscrete time control systems
Discrete time control systems
 
discrete time signals and systems
 discrete time signals and systems  discrete time signals and systems
discrete time signals and systems
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
BEC-26 control-systems_unit-III_pdf
BEC-26 control-systems_unit-III_pdfBEC-26 control-systems_unit-III_pdf
BEC-26 control-systems_unit-III_pdf
 
DSP_FOEHU - MATLAB 03 - The z-Transform
DSP_FOEHU - MATLAB 03 - The z-TransformDSP_FOEHU - MATLAB 03 - The z-Transform
DSP_FOEHU - MATLAB 03 - The z-Transform
 
Numerical Methods 1
Numerical Methods 1Numerical Methods 1
Numerical Methods 1
 
Lec3 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- CMO...
Lec3 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- CMO...Lec3 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- CMO...
Lec3 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- CMO...
 
Analog properties and Z-transform
Analog properties and Z-transformAnalog properties and Z-transform
Analog properties and Z-transform
 
Systems Analysis & Control: Steady State Errors
Systems Analysis & Control: Steady State ErrorsSystems Analysis & Control: Steady State Errors
Systems Analysis & Control: Steady State Errors
 
The Magic of Auto Differentiation
The Magic of Auto DifferentiationThe Magic of Auto Differentiation
The Magic of Auto Differentiation
 
BEC- 26 control systems_unit-II
BEC- 26 control systems_unit-IIBEC- 26 control systems_unit-II
BEC- 26 control systems_unit-II
 

Viewers also liked

Qualitative Analysis of Routing Protocols in WSN
Qualitative Analysis of Routing Protocols in WSNQualitative Analysis of Routing Protocols in WSN
Qualitative Analysis of Routing Protocols in WSNEswar Publications
 
Recent publications on management of Brachial plexus injury
Recent publications on management of Brachial plexus injuryRecent publications on management of Brachial plexus injury
Recent publications on management of Brachial plexus injuryDr. PS Bhandari
 
Termoregolazione e contabilizzazione in condominio
Termoregolazione e contabilizzazione in condominioTermoregolazione e contabilizzazione in condominio
Termoregolazione e contabilizzazione in condominioChiara Ragazzini
 
Pno livret jeune et priere pasteur-yvan-castanou
Pno livret jeune et priere pasteur-yvan-castanouPno livret jeune et priere pasteur-yvan-castanou
Pno livret jeune et priere pasteur-yvan-castanouYvan CASTANOU
 
हिंदी परीयोजना
हिंदी परीयोजनाहिंदी परीयोजना
हिंदी परीयोजनाJayanthi Rao
 
Efficiently decoding Reed-Muller codes from random errors
Efficiently decoding Reed-Muller codes from random errorsEfficiently decoding Reed-Muller codes from random errors
Efficiently decoding Reed-Muller codes from random errorscseiitgn
 
Marco Teorico
Marco TeoricoMarco Teorico
Marco Teorico7304560
 
Stick Figure Harry
Stick Figure HarryStick Figure Harry
Stick Figure Harryolafsson
 
Top movies of 2010
Top movies of 2010Top movies of 2010
Top movies of 2010annpl
 
Österreichs Open Access Empfehlungen - Eine Erfolgsgeschichte
Österreichs Open Access Empfehlungen - Eine ErfolgsgeschichteÖsterreichs Open Access Empfehlungen - Eine Erfolgsgeschichte
Österreichs Open Access Empfehlungen - Eine ErfolgsgeschichtePatrick Danowski
 
More sustainable Istanbul
More sustainable IstanbulMore sustainable Istanbul
More sustainable IstanbulAhmad Alshaghel
 
Internship letter
Internship letterInternship letter
Internship letterAhsan Nawaz
 
IELTS for FSWP in CANADA
IELTS for FSWP in CANADAIELTS for FSWP in CANADA
IELTS for FSWP in CANADAobaied
 
MATRIC CERTIFICATE
MATRIC CERTIFICATEMATRIC CERTIFICATE
MATRIC CERTIFICATElucky Lucky
 
Case DPaschoal - 18ª conferência anual ASUG 2015
Case DPaschoal - 18ª conferência anual ASUG 2015Case DPaschoal - 18ª conferência anual ASUG 2015
Case DPaschoal - 18ª conferência anual ASUG 2015Fluig
 
Handout for the course Abstract Argumentation and Interfaces to Argumentative...
Handout for the course Abstract Argumentation and Interfaces to Argumentative...Handout for the course Abstract Argumentation and Interfaces to Argumentative...
Handout for the course Abstract Argumentation and Interfaces to Argumentative...Federico Cerutti
 
fpga programming
fpga programmingfpga programming
fpga programmingAnish Gupta
 

Viewers also liked (20)

ATPG flow chart
ATPG flow chart ATPG flow chart
ATPG flow chart
 
Qualitative Analysis of Routing Protocols in WSN
Qualitative Analysis of Routing Protocols in WSNQualitative Analysis of Routing Protocols in WSN
Qualitative Analysis of Routing Protocols in WSN
 
Recent publications on management of Brachial plexus injury
Recent publications on management of Brachial plexus injuryRecent publications on management of Brachial plexus injury
Recent publications on management of Brachial plexus injury
 
Termoregolazione e contabilizzazione in condominio
Termoregolazione e contabilizzazione in condominioTermoregolazione e contabilizzazione in condominio
Termoregolazione e contabilizzazione in condominio
 
Pno livret jeune et priere pasteur-yvan-castanou
Pno livret jeune et priere pasteur-yvan-castanouPno livret jeune et priere pasteur-yvan-castanou
Pno livret jeune et priere pasteur-yvan-castanou
 
Lgpl license (2)
Lgpl license (2)Lgpl license (2)
Lgpl license (2)
 
हिंदी परीयोजना
हिंदी परीयोजनाहिंदी परीयोजना
हिंदी परीयोजना
 
Efficiently decoding Reed-Muller codes from random errors
Efficiently decoding Reed-Muller codes from random errorsEfficiently decoding Reed-Muller codes from random errors
Efficiently decoding Reed-Muller codes from random errors
 
Marco Teorico
Marco TeoricoMarco Teorico
Marco Teorico
 
Stick Figure Harry
Stick Figure HarryStick Figure Harry
Stick Figure Harry
 
Top movies of 2010
Top movies of 2010Top movies of 2010
Top movies of 2010
 
Österreichs Open Access Empfehlungen - Eine Erfolgsgeschichte
Österreichs Open Access Empfehlungen - Eine ErfolgsgeschichteÖsterreichs Open Access Empfehlungen - Eine Erfolgsgeschichte
Österreichs Open Access Empfehlungen - Eine Erfolgsgeschichte
 
More sustainable Istanbul
More sustainable IstanbulMore sustainable Istanbul
More sustainable Istanbul
 
Internship letter
Internship letterInternship letter
Internship letter
 
Oyyal fund raising_2015-16
Oyyal fund raising_2015-16Oyyal fund raising_2015-16
Oyyal fund raising_2015-16
 
IELTS for FSWP in CANADA
IELTS for FSWP in CANADAIELTS for FSWP in CANADA
IELTS for FSWP in CANADA
 
MATRIC CERTIFICATE
MATRIC CERTIFICATEMATRIC CERTIFICATE
MATRIC CERTIFICATE
 
Case DPaschoal - 18ª conferência anual ASUG 2015
Case DPaschoal - 18ª conferência anual ASUG 2015Case DPaschoal - 18ª conferência anual ASUG 2015
Case DPaschoal - 18ª conferência anual ASUG 2015
 
Handout for the course Abstract Argumentation and Interfaces to Argumentative...
Handout for the course Abstract Argumentation and Interfaces to Argumentative...Handout for the course Abstract Argumentation and Interfaces to Argumentative...
Handout for the course Abstract Argumentation and Interfaces to Argumentative...
 
fpga programming
fpga programmingfpga programming
fpga programming
 

Similar to ATPG of reversible circuits

Gate 2013 complete solutions of ec electronics and communication engineering
Gate 2013 complete solutions of ec  electronics and communication engineeringGate 2013 complete solutions of ec  electronics and communication engineering
Gate 2013 complete solutions of ec electronics and communication engineeringmanish katara
 
Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...
Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...
Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...Simen Li
 
lecture 10 formal methods in software enginnering.pptx
lecture 10 formal methods in software enginnering.pptxlecture 10 formal methods in software enginnering.pptx
lecture 10 formal methods in software enginnering.pptxSohaibAlviWebster
 
Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05Charlton Inao
 
Basic potential step and sweep methods
Basic potential step and sweep methodsBasic potential step and sweep methods
Basic potential step and sweep methodsGetachew Solomon
 
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)Ravikiran A
 

Similar to ATPG of reversible circuits (20)

test generation
test generationtest generation
test generation
 
MSc_thesis
MSc_thesisMSc_thesis
MSc_thesis
 
ACS 22LIE12 lab Manul.docx
ACS 22LIE12 lab Manul.docxACS 22LIE12 lab Manul.docx
ACS 22LIE12 lab Manul.docx
 
Input analysis
Input analysisInput analysis
Input analysis
 
Lecture 13
Lecture 13Lecture 13
Lecture 13
 
FinalReport
FinalReportFinalReport
FinalReport
 
Ec gate'13
Ec gate'13Ec gate'13
Ec gate'13
 
Gate 2013 complete solutions of ec electronics and communication engineering
Gate 2013 complete solutions of ec  electronics and communication engineeringGate 2013 complete solutions of ec  electronics and communication engineering
Gate 2013 complete solutions of ec electronics and communication engineering
 
Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...
Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...
Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...
 
Assignmentl3 solutions
Assignmentl3 solutionsAssignmentl3 solutions
Assignmentl3 solutions
 
bhandout
bhandoutbhandout
bhandout
 
Network theoroms
Network theoromsNetwork theoroms
Network theoroms
 
Parcial asincrona (2)
Parcial asincrona (2)Parcial asincrona (2)
Parcial asincrona (2)
 
Parcial asincrona
Parcial asincronaParcial asincrona
Parcial asincrona
 
lecture 10 formal methods in software enginnering.pptx
lecture 10 formal methods in software enginnering.pptxlecture 10 formal methods in software enginnering.pptx
lecture 10 formal methods in software enginnering.pptx
 
residue
residueresidue
residue
 
Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05
 
Basic potential step and sweep methods
Basic potential step and sweep methodsBasic potential step and sweep methods
Basic potential step and sweep methods
 
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
 
G04123844
G04123844G04123844
G04123844
 

Recently uploaded

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 

Recently uploaded (20)

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 

ATPG of reversible circuits

  • 1. ATPG of Reversible Circuits Rahul Krishnamurthy Under the Guidance of Prof.G.K.Sharma April 20, 2012
  • 2. outline OUTLINE ◮ Integer Linear programming for ATPG. ◮ Circuit Decomposition Approach to generate test patterns. ◮ SAT based ATPG for Reversible Circuits.
  • 3. BASICS Complete and minimal test sets ◮ Given a reversible circuit C and a fault set F ,a set of test vectors that detect all faults in F is called a complete test set. ◮ A complete test set with the fewest possible vectors is minimal
  • 4. BASICS Observability and Controllabilty Observability and Controllabilty Two important properties of reversiblity simplify the test set generation problem. ◮ Controllability: There is a test vector that generates any given desired state on the wires at any given level ◮ Observability: Any single fault that changes an intermediate state in the circuit also changes the output
  • 5. ILP Formulation for ATPG Basic ILP terminology ◮ i th Input Vector is denoted by Ti ◮ Each Ti associated by a binary decision variable ti . ◮ ti → one if the corresponding input vector is in the test set. ◮ ti → zero if the corresponding input vector is not in the test set. ◮ A fault is detected if a decision variable with value one corresponds to a vector that detects the fault.
  • 6. ILP Formulation for ATPG ILP model ILP Model level 0 ◮ level 1 level 2 The values of the wires at the j th level for input Ti are fj (Ti ) ◮ To detect all stuck-at 0 faults at level j the following inequalities must be satisfied 2n −1 i =0 fj (Ti )xti ◮ ≥1 The above inequality guarantee that each value at the j th level is set to 1 by some test vector ensuring that all stuck-at 0 faults are detected
  • 7. ILP Formulation for ATPG ILP model ILP Model contd.. ◮ A similar set of inequalities ensures that all stuck-at 1 faults are also detected. ◮ Total 2n(d+1) linear inequality constarints are used to guarantee completeness. ◮ n denotes the number of lines and d is the number of levels.
  • 8. ILP Formulation for ATPG ILP model contd.. ILP model contd.. ◮ There are 3 lines and a total of 3 levels So for stuck-at 0 a total of 3x3 constriants are there. ◮ There are 3 lines and a total of 3 levels So for stuck-at 1 a total of 3x3 constriants are there. ◮ Total linear inequality constarints are 18 .
  • 9. ILP formulation ILP formulation ◮ The general ILP formulation of the minimal test-set problem for a reversible circuit on n wires and with depth d is: MINIMIZE t0 + t1 + t2 + t3 + t4 + · · · + t2n −1 subject to constraints 2n −1 i =0 fj (Ti ).ti ≥1 2n −1 i =0 fj (Ti ).ti ≥1 for all 0 ≤ j ≤ d where ti ∈ {0, 1}, andTi is the n-bit binary expansion of integer i
  • 10. ILP formulation example Example level 0 level 1 level 2 0 0 0 0 0 0 0 0 0 0 0 1 0 level 0 0 level 1 level 2 level 0 level 0 level 1 1 level 1 level 2 0 0 1 level 2 0 0 0 0 0 0 1 1 1 1 1 1 0 0 1 1 1 0
  • 11. ILP formulation Example contd.. Example Contd.. The following inequalities guarantees that each of the fault sites can be set to 1. 0 0 0 0 1 1 1 1 7  t0  i =0 f0 (Ti ).ti ≥ 1 00110011 t1 0 1 0 1 0 1 0 1 7  t2  ≥ 1 0 0 0 0 1 1 1 1 ·   t3  i =0 f1 (Ti ).ti ≥ 1 ⇐⇒ 0 0 1 1 1 1 0 0  t4  0 1 0 1 0 1 0 1 7 t5 00001111 i =0 f2 (Ti ).ti ≥ 1 t6 00111100 01101001 t7
  • 12. ILP formulation Example contd.. Example Contd.. The following inequalities guarantees that each of the fault sites can be set to 0. 1 1 1 1 0 0 0 0 7  t0  i =0 f0 (Ti ).ti ≥ 1 11001100 t1 1 0 1 0 1 0 1 0  7  t2  ≥ 1 1 1 1 1 0 0 0 0 ·  t3  i =0 f1 (Ti ).ti ≥ 1 ⇐⇒ 1 1 0 0 0 0 1 1  t4  1 0 1 0 1 0 1 0 7 t5 11110000 t6 i =0 f2 (Ti ).ti ≥ 1 11000011 10010110 t7 ◮ Solving ILP , gives three test vectors to detect all stuck-at faults in the circuit ◮ One such solution is t0 = t7 = t2 = 1
  • 13. ILP Limitations ILP Limitation ◮ The number of variables increases exponentially with number of input/output bits. ◮ ILP method is feasible for small circuits.It is impractical for large circuits. ◮ An alternative approach is to decompose the original circuit into smaller sucircuits ◮ Use ILP formulation iteratively for these subcircuits.
  • 14. Circuit-Decomposition Approach Circuit-Decomposition Approach ◮ The circuit is first decomposed into a series of circuits acting on small number of wires. ◮ ◮ Start at the input of the circuit and add gates to the first subcircuit C0 . Keep adding until no more can be added without having C0 act on more than m wires.
  • 15. Circuit-Decomposition Approach Example Example X0 X1 X2 X3 X4 X5 C0 C1 C2 ◮ The entire circuit acts on six wires. ◮ Each subcircuit acts on no more than 4 wires.
  • 16. Circuit-Decomposition Approach Example contd.. ◮ ILP is performed on the subcircuit C0 which provides following test vectors v0 = v1 = v2 = x0 X X X x1 0 1 1 x2 1 0 1 x3 X X X x4 1 0 1 x5 1 0 0 C → −0 x0 X X X x1 1 1 0 x2 1 0 0 x3 X X X x4 0 1 1 ◮ These 3 test vectors forms complete test set for Stuck-at faults in the C0 ◮ Left and right halves represent the test vectors at the input and output of C0 respectively x5 0 0 1
  • 17. Circuit-Decomposition Approach Example contd ◮ ◮ =⇒ ◮ ◮ Subcircuit C1 acts on wires x0 , x1 , x4 andx5 At the input of C1 the output of C0 is applied. x0 X X X x1 1 1 0 x4 0 1 1 x5 0 0 1 ∈T From above x0 can be either 0 or 1 For both the cases test vectors becomes x0 0 0 0 x1 1 1 0 x4 0 1 1 x5 0 0 1 x0 1 1 1 x1 1 1 0 x4 0 1 1 x5 0 0 1
  • 18. Circuit-Decomposition Approach Example contd ◮ We generate the ILP for C1 add the following constraints CONSTRAINTS t4 + t12 ≥ 1 t6 + t14 ≥ 1 t3 + t11 ≥ 1 ◮ Solving ILP gives the solution t6 = t11 = t12 = 1 ◮ These values will be Incorporated into the the previous test vectors.
  • 19. Circuit-Decomposition Approach Example contd ◮ Left and right halves represent the test vectors at the input and output of C1 respectively x0 1 0 1 x1 1 1 0 x2 1 0 0 x3 X X X x4 0 1 1 x5 0 0 1 C → −1 x0 0 1 1 x1 1 1 0 x2 1 0 0 x3 X X X x4 0 1 1 x5 0 0 1
  • 20. Circuit-Decomposition Approach Example contd ◮ Subcircuit C2 acts on wires x0 , x1 , x2 andx3 ◮ Generate the ILP for this circuit and incorporate the current test set using the following constraints: x0 0 1 1 x1 1 1 0 x2 1 0 0 x3 X X X ∈ T =⇒ CONSTRAINTS t6 + t7 ≥ 1 t12 + t13 ≥ 1 t8 + t9 ≥ 1 ◮ Solving this ILP gives solutions t5 , t7 , t8 andt12 ◮ The last three can be incorporated into the previous test set however the first test vector must be added as in
  • 22. SAT SAT ◮ ◮ The SAT problem is defined as follows: Let h be a Boolean function in Conjunctive normal form i.e product-of-sum repesentation. ◮ example : h = (x1 + x2 + x3 )(x1 + x3 )(x2 + x3 ) ◮ Then the SAT problem is to determine an assignment for the variable h so that h evaluates to 1 or to prove that no such assignment exists ◮ For the above example x1 = 1, x2 = 1 and x3 = 1 is a satisfying assignement for h. ◮ The values of x1 and x2 ensures that the first clause become satisfied while x3 ensures this for the remaining two clauses
  • 23. SAT Based ATPG SAT Based ATPG terminology ◮ Let a G be circuit with n lines and d gates then ◮ ◮ ◮ → 1 1 1 Variable − 1 = xn , xn−1 · · · x1 represents the assignement to x the respective input lines of the circuit → Variable − d+1 = x d+1 , x d+1 · · · x d+1 represents the x n n−1 1 assignement to respective output lines of the circuit → k k k Variable− k = (xn xn−1 · · · x1 ) with 2 ≤ k ≤ d represents the x input(output) assignment to the respective lines of the gate gk (gk−1 ) level 1 level 2 level 3
  • 24. SAT Based ATPG constraints Constraints ◮ For every gate gk (Ck , xtk ) in the circuit,the respective input/output mapping is constraint ◮ Values of all lines (except the target lines)are passed through i.e (xik+1 = xik ) ◮ While the output value for the target line is determined depending on the input values of the control and the target line respectively (xik+1 = xik xor ∧xc∈Ck xc ) ◮ After this the constraints are added ensuring that the faulty behavior is activated . ◮ Example: In the case that a test pattern for an SMCF at the i th line of gate gk sholud be generated .The constraint : (xik = 0) ∧ ( xc ∈Ck xc = 1) is added
  • 25. SAT Based ATPG Additional Constraints Additional Constraints ◮ Finally the additional constraints are added to the instance . ◮ For example: constant inputs. ◮ i.e for each constant inputs ,constraints have to added ,ensuring that the respective variable xi1 is assigned to the according value.
  • 26. SAT based ATPG Example SAT based ATPG Example 1 X 1 1 1 X 2 X 1 3 X 1 4 X 1 2 X 2 3 X 2 4 X 2 2 X 3 3 X 3 4 X 3 2 X 4 3 X 4 4 X 4 2 X 5 3 X 5 4 X 5 2 1 X 3 1 X 4 1 X 5 Functional Constraints: 2 1 2 1 1 x1 = x1 x2 = x2 ⊕ x5 2 1 2 1 x3 = x3 x4 = x4 2 = x1 x5 5 3 2 3 2 x1 = x1 x2 = x2 Additional Constraints: 1 x1 = 1 5 X 1 5 X 2 5 X 3 5 X 4 5 X 5 Fault constraints: 3 x2 = 0 3 x4 = 1 3 x5 = 1
  • 27. SAT based ATPG Example SAT based ATPG Example SAT based ATPG Example ◮ The three constraints are converted into CNF -the common input format of SAT solvers ◮ If the solver then determines a satisfying assignment for the resulting instance,a valid test pattern can be obtained from 1 1 the assingmnet to x1 · · · xn ◮ If the SAT solver returns unsatisfiable ,then it has been proven that no test pattern considering the additional constraints exists- the respective fault is untestable under these constraints.
  • 28. Conclusion Conclusion ◮ ILP provides a complete and minimal test patterns ◮ The Ilp formulation is feasible for small circuits;since the number of variables increses exponentially with the number of input/output bits ◮ In circuit decomposition technique the test set is not guaranteed to be minimal. ◮ ATPG SAT is effecient when additional constraints of Constant inputs is considered.
  • 29. References References ◮ Ketan N. Patel, John P. Hayes,and Igor L. Markov,“Fault Testing for Reversible Circuits”,IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, VOL. 23, NO. 8, AUGUST 2004 ◮ Hongyan Zhang,Robert Wille and Rolf Drechsle “SAT-based ATPG for Reversible Circuits”,Design and Test Workshop (IDT), 2010 5th International , vol., no., pp.149-154, 14-15 Dec. 2010