Professional Documents
Culture Documents
LFSR Characteristic Polynomials For Pseudo-Exhaustive TPG With Low Number of Seeds
LFSR Characteristic Polynomials For Pseudo-Exhaustive TPG With Low Number of Seeds
Editor: S. Kajihara
Abstract. A fully scanned digital circuit can be tested pseudo-exhaustively by first introducing a number of extra
bypass storage cells to limit the test-phase input dependency of each test-phase output and then using a Linear
Feedback Shift Register (LFSR) to feed the chain of the original scan cells and the extra cells. For the design of
the LFSR, the goal is to minimize the pseudo-exhaustive test length with low hardware overhead. If the LFSR uses
a primitive characteristic polynomial then it requires only one seed, but the candidate primitive polynomials may
all fail to satisfy the target test length. In this paper, we present a methodology that enlarges the list of candidate
polynomials, if the prescribed number of seeds is more than one. Experimental results show that the new candidate
polynomials are often instrumental in satisfying the given test length and seed restriction.
Keywords: built-in self-test (BIST), test pattern generation (TPG), Linear Feedback Shift Registers (LFSR)
I_1 I_2
I_3 I_4 I_5 I_1 I_2 I_3 I_4 I_5
A B A B
C D C D
FF C_6 C_5
E F E F
(a) (b)
Fig. 1. (a) Original circuit. (b) Overall scan chain and LFSR.
primary inputs (cells C0 –C4 ), the original flip-flop (cell of the LFSR are shifted through the rest of the chain,
C5 ) and the bypass storage cell (cell C6 ) are connected they provide test patterns for the test-phase outputs.
to a scan chain (local conversions for the flip-flops and The efficacy of this scheme depends on the choice
the multiplexers for the primary inputs are not shown of an appropriate characteristic polynomial. The prob-
in the figure). Cells C0 –C3 are configured into an LFSR lem is that linear dependencies (see., e.g., [6]) may
with characteristic polynomial P(x) = x 4 + x 3 + 1. occur between Asets. In order to guarantee a pseudo-
The test-phase inputs are C0 –C6 , the test-phase out- exhaustive test set, the characteristic polynomial must
puts are C, D, E, F, and the Asets of the test–phase satisfy certain criteria, one of which was described in
outputs are AC = {C0 , C1 , C2 , C3 }, A D = {C2 , C3 }, [7–9] and has been widely used in practice. According
A E = {C0 , C1 , C4 , C6 }, and A F = {C4 , C5 , C6 }. (In to this criterion,
the following we assume that the Asets consist actu-
ally of the numerical indices of the cells in the chain.) Lemma 1.1 (Criterion of [7–9]). An LFSR with char-
When the LFSR part is initialized by a non-zero vector acteristic polynomial P(x) of degree d ≥ w yields
(seed), it cycles through p distinct states, where p is a pseudo-exhaustive test set of size (2d − 1), if and
the period of the characteristic polynomial. The period only if, in every Aset Ai = {a1 , a2 , . . . , awi }, wi ≤ w,
of a polynomial is the least integer p for which the all polynomials x a1 mod P(x), x a2 mod P(x), . . . ,
polynomial divides x p + 1 [5]. As the successive states x awi mod P(x) are linearly independent.