Professional Documents
Culture Documents
Priya Fruits
Priya Fruits
Figure 2: A typical implementation with test compression logic (Note: N < N and M > M )
2 1 2 1
Decompressor
The decompressor consists of a ring generator, which is basically a Ring LFSR with external
inputs as shown in Figure 3. The external inputs feeding the ring generator are commonly
referred as EDT channels. The outputs of the ring generator flops will connect to scan chain
inputs through a phase shifter consisting of XOR gates. As discussed earlier, phase
shifter helps supporting more scan chains than the degree of LFSR. Creation of the
compressed pattern from the original ATPG test pattern consists of solving a set of linear
equations based on the ring generator polynomial and the phase shifter connections. Inputs to
the ring generator are driven from the compressed pattern stored on the ATE.
We have already discussed about the Ring LFSR and its advantages here. Now we will
discuss about the advantages of external chains in LFSR. Consider a simple xternal inputs as
shown in Figure 4.
Note: In the first chain (having flops S1 S5 and S9), S1 s5 and s9 values will be loaded to the chain
serially such that S1 will be loaded first to the chain in the 1st clock cycle and then will be shifted to the
right in the next clock cycle and simultaneously S5 will be loaded to the chain. This continues for 3 clock.
S9 = S6 ⊕ E5
S1 = Q1 ⊕ E1 S5 = Q2 ⊕ E3
= Q0 ⊕ Q3 ⊕ E5
S6 = S3 S10 = S7
S2 = Q2
= Q0 ⊕ Q3 = Q0 ⊕ E2 ⊕ Q1 ⊕ E1
S7 = S4 ⊕ S1 S11 = S5 ⊕ S8
S3 = Q0 ⊕ Q3
= Q0 ⊕ E2 ⊕ Q1 ⊕ E1 = Q2 ⊕ E3 ⊕ Q1 ⊕ E1 ⊕ E
S8 = S1 ⊕ E4 S12 = S5 ⊕ E6
S4 = Q0 ⊕ E2
= Q1 ⊕ E1 ⊕ E4 = Q2 ⊕ E3 ⊕ E6
Thus there are 12 equations and 10 variables (where variables are – LFSR seed value and
external chain inputs).
Suppose the external chains are not there in the figure, then in the absence of External Chains
–
S9 = S6
S1 = Q1 S5 = Q2
= Q0 ⊕ Q3
S6 = S3 S10 = S7
S2 = Q2
= Q0 ⊕ Q3 = Q0 ⊕ Q1
S7 = S4 ⊕ S1 S11 = S5 ⊕ S8
S3 = Q0 ⊕ Q3
= Q0 ⊕ Q1 = Q2 ⊕ Q1
S8 = S1 S12 = S5
S4 = Q0
= Q1 = Q2
Thus there are 12 equations and 4 variables (where variables are – LFSR seed value).
So it is evident that the external chains introduce more variables; thus probability of solving
the equations improve, implies better fault coverage as we have a better chance of solving a
set of equations targeting any fault.
Compactor
1. Spatial compactor [reduces the number of output pins compared to input pins]
2. Time compactor [reduces the length of the output bit stream compared to the length of
input bit stream]
EDT uses the spatial compactor which consists of group of XOR trees. It allows multiple
scan chains to be observed at the same time on a given scan output channel. Several scan
chains are XOR-combined into individual scan channels as shown below –
Figure 5: A typical spatial compactor used for test response compaction in EDT
But there are two problems that we may encounter –
Scan cells can capture unknown or’X’ values from black boxes, non-scan cells, false paths,
etc. Let’s assume we have two scan chains that are compacted into one scan channel using
one XOR gate, as shown below. An X captured in one of the chain will then block the
corresponding cell in other chain, resulting in loss of observability.
A fault is aliased when it is observed by an even number of scan cells that happened to line
up at the same location in different scan chains that are compacted to the same output
channel. The example shown below here illustrates this case. For this unique scenario, it is
not possible to see the difference between a good and faulted circuit.
Note: Cases in which a fault is always aliased and requires a masking pattern to detect it are rare.
To deal with these issues, a mask controller is also found as a part of compactor logic. This
mask controller along with masking logic at the scan chain output can selectively mask scan
chains based on few bits (called mask code) at the end of the pattern shifted-in, that don’t
make it to the decompressor.
Share this:
Twitter
Loading...
VLSI Tutorials A WordPress.com Website.