Algorithm Search⌘K

Theoremadvanced

Signature aliasing probability

Also called MISR aliasing bound, LFSR aliasing probability.

For independent random bit errors, the chance that a k-bit signature register with feedback term 1 ends with the good signature after a faulty response tends to 2^(-k).

This theorem says how often a signature register misses an error. A kk-bit multiple-input signature register maps a faulty response to the good signature exactly when the error polynomial is a multiple of its feedback polynomial qq. Under two random models of the error, the chance of this tends to 2−k2^{-k} for long tests: the model in which every nonzero error stream is equally likely, and the model in which every response bit is wrong with probability pp, independently. The second limit holds for every qq with the term 1, primitive or not. The theorem also shows where the number stops being true: errors made by real faults are not random, and some of them alias with probability 1.

Statement

Use the notation of the MISR page. The register has k≥1k \ge 1 stages and the feedback polynomial qq of degree kk over GF(2), with q0=1q_0 = 1. A test of mm clocks gives the error words e0,…,em−1e_0, \ldots, e_{m-1} (the faulty words minus the good words), and the error polynomial is E=∑txm−1−tetE = \sum_t x^{m-1-t} e_t. By the MISR page, the faulty chip passes exactly when q∣Eq \mid E. Say that the test aliases when E≠0E \ne 0 and q∣Eq \mid E, and let PmP_m be the probability of this. A single-input register (SISR) is the case where each error word is 0 or 1, the constant polynomial, entering stage 0.

Theorem.

  1. Equally likely streams. For every qq of degree kk and every m≥1m \ge 1, exactly 2(m−1)k−12^{(m-1)k} - 1 of the 2mk−12^{mk} - 1 nonzero error streams of a kk-input MISR alias. If every nonzero stream is equally likely,
Pm=2(m−1)k−12mk−1<2−k,Pm→2−k.P_m = \frac{2^{(m-1)k} - 1}{2^{mk} - 1} < 2^{-k}, \qquad P_m \to 2^{-k}.

For a SISR and m≥km \ge k the count is 2m−k−12^{m-k} - 1 of 2m−12^m - 1. 2. Independent bit errors. Let every error bit be 1 with probability pp, 0<p<10 < p < 1, independently of all others. Then for a MISR and for a SISR, Pm→2−kP_m \to 2^{-k} as m→∞m \to \infty, for every qq with q0=1q_0 = 1. For a MISR, with δ=min⁡(p,1−p)k\delta = \min(p, 1-p)^k,

∣Pm+(1−p)mk−2−k∣≤(1−2kδ)m.\big| P_m + (1 - p)^{mk} - 2^{-k} \big| \le (1 - 2^k \delta)^m.

For p=1/2p = 1/2 the error state is uniform after one clock of a MISR and after kk clocks of a SISR, so Pm=2−k−2−mkP_m = 2^{-k} - 2^{-mk} for m≥1m \ge 1 (MISR) and Pm=2−k−2−mP_m = 2^{-k} - 2^{-m} for m≥km \ge k (SISR). 3. Structured errors. The limit is not a bound for a given fault. In a MISR, an error on input ii at clock tt together with one on input i+1i + 1 at clock t+1t + 1 aliases for every qq. In a SISR with a primitive qq of degree k≥2k \ge 2, the error that inverts every bit of the stream aliases exactly when 2k−12^k - 1 divides mm.

In plain words

At the end of a test, the signature register holds a short code. A bad chip passes only if its errors happen to give the same code as a good chip.

If the errors look random, every one of the possible codes is about equally likely at the end, so the chance of the one good code is about one in two to the power of the length of the register. With 32 bits that is about one in four billion. This holds whether each bit is wrong half the time or rarely, as long as the test is long and the wrong bits do not depend on each other.

But a real fault does not make random errors. It can make the same error again and again, or errors that cancel in the register, and then the bad chip passes every time.

Proof

Part 1. The map Φ:(e0,…,em−1)↦E mod q\Phi : (e_0, \ldots, e_{m-1}) \mapsto E \bmod q from mkmk bits to kk bits is linear over GF(2). It is onto, since the last word enters with x0x^0: for any rr of degree less than kk, the stream (0,…,0,r)(0, \ldots, 0, r) maps to rr. So its kernel has 2mk−k2^{mk - k} elements, and the nonzero ones, 2(m−1)k−12^{(m-1)k} - 1 of them, are the aliasing streams. Then Pm<2−kP_m < 2^{-k} because 2k(2(m−1)k−1)=2mk−2k<2mk−12^k (2^{(m-1)k} - 1) = 2^{mk} - 2^k < 2^{mk} - 1, and Pm→2−kP_m \to 2^{-k} because Pm=2−k(1−2−(m−1)k)/(1−2−mk)P_m = 2^{-k} (1 - 2^{-(m-1)k}) / (1 - 2^{-mk}). The SISR case is the same count with mm one-bit words and the map onto when m≥km \ge k, as on the built-in self-test page. No property of qq is used.

Part 2. Let st=(∑u<txt−1−ueu) mod qs_t = \big(\sum_{u < t} x^{t-1-u} e_u\big) \bmod q be the error state after tt clocks, the register of a MISR that starts at 0 and is fed only with the errors. By the MISR page, st+1=(x st+et) mod qs_{t+1} = (x\,s_t + e_t) \bmod q, and sm=E mod qs_m = E \bmod q. The words ete_t are independent of each other, so (st)(s_t) is a Markov chain on the N=2kN = 2^k polynomials of degree less than kk, with

Pr⁡[st+1=b∣st=a]=πe(b−φ(a)),φ(a)=x a mod q,\Pr[s_{t+1} = b \mid s_t = a] = \pi_e\big(b - \varphi(a)\big), \qquad \varphi(a) = x\,a \bmod q,

where πe(c)\pi_e(c) is the probability that an error word equals cc.

The uniform law is stationary. Since q0=1q_0 = 1, xx and qq have no common factor, so φ\varphi is one to one on the NN states (if x a≡x a′(modq)x\,a \equiv x\,a' \pmod q, then q∣x(a−a′)q \mid x (a - a'), so q∣a−a′q \mid a - a', so a=a′a = a'). Hence for a fixed bb, the values b−φ(a)b - \varphi(a) run once over all states as aa does, and the column sum of the transition matrix is ∑aπe(b−φ(a))=∑cπe(c)=1\sum_a \pi_e(b - \varphi(a)) = \sum_c \pi_e(c) = 1. The matrix is doubly stochastic, so the uniform law (1/N,…,1/N)(1/N, \ldots, 1/N) is a stationary distribution.

Convergence for a MISR. Here πe(c)=p∣c∣(1−p)k−∣c∣≥δ\pi_e(c) = p^{|c|} (1-p)^{k - |c|} \ge \delta for every cc, where ∣c∣|c| is the number of ones. So every entry of the matrix is at least δ\delta, and Nδ≤1N\delta \le 1. Write the matrix as Nδ U+(1−Nδ) QN\delta\, U + (1 - N\delta)\, Q, where every entry of UU is 1/N1/N. If Nδ<1N\delta < 1, the matrix QQ has entries at least 0 and rows that sum to 1. For two laws μ\mu and ν\nu on the states, (μ−ν)U=0(\mu - \nu) U = 0, so one step maps μ−ν\mu - \nu to (1−Nδ)(μ−ν)Q(1 - N\delta)(\mu - \nu) Q, and ∥(μ−ν)Q∥1≤∥μ−ν∥1\|(\mu - \nu) Q\|_1 \le \|\mu - \nu\|_1. With ν\nu uniform and stationary, after mm steps ∥μm−ν∥1≤(1−Nδ)m∥μ0−ν∥1≤2(1−Nδ)m\|\mu_m - \nu\|_1 \le (1 - N\delta)^m \|\mu_0 - \nu\|_1 \le 2 (1 - N\delta)^m. The entries of μm−ν\mu_m - \nu sum to 0, so each one is at most half the ℓ1\ell_1 norm in absolute value, which gives ∣Pr⁡[sm=0]−2−k∣≤(1−Nδ)m|\Pr[s_m = 0] - 2^{-k}| \le (1 - N\delta)^m. If Nδ=1N\delta = 1, then p=1/2p = 1/2, every πe(c)=1/N\pi_e(c) = 1/N, and s1s_1 is already uniform.

Convergence for a SISR. Now et∈{0,1}e_t \in \{0, 1\}, so a single step does not reach every state. But after kk steps from st=as_t = a,

st+k=(xka+∑j=0k−1et+j xk−1−j) mod q,s_{t+k} = \Big(x^k a + \sum_{j=0}^{k-1} e_{t+j}\, x^{k-1-j}\Big) \bmod q,

and the sum is any polynomial of degree less than kk, each one for exactly one choice of (et,…,et+k−1)(e_t, \ldots, e_{t+k-1}), which has probability at least min⁡(p,1−p)k=δ\min(p, 1-p)^k = \delta. So the kk-step matrix has every entry at least δ\delta and is again doubly stochastic, and the argument above gives ∣Pr⁡[sm=0]−2−k∣≤(1−Nδ)⌊m/k⌋|\Pr[s_m = 0] - 2^{-k}| \le (1 - N\delta)^{\lfloor m/k \rfloor}.

In both cases Pr⁡[sm=0]→2−k\Pr[s_m = 0] \to 2^{-k}. The test aliases when sm=0s_m = 0 and the stream is not all zero, so Pm=Pr⁡[sm=0]−(1−p)nP_m = \Pr[s_m = 0] - (1-p)^{n}, where nn is the number of error bits, mkmk or mm, and (1−p)n→0(1-p)^n \to 0. This proves the limit and the bound. For p=1/2p = 1/2 the state is exactly uniform after one clock of a MISR and after kk clocks of a SISR, which gives the two exact formulas.

Part 3. For the MISR pair, the error bit on input ii at clock tt gives the monomial xm−1−t+ix^{m-1-t+i}, and the one on input i+1i + 1 at clock t+1t + 1 gives xm−1−(t+1)+(i+1)x^{m-1-(t+1)+(i+1)}, the same monomial xax^a. With only these two error bits, E=xa+xa=0E = x^a + x^a = 0 although the stream is not zero, and q∣0q \mid 0. For the SISR, the stream of all ones gives E=1+x+⋯+xm−1E = 1 + x + \cdots + x^{m-1}, and (x+1)E=xm+1(x + 1) E = x^m + 1. A primitive qq of degree k≥2k \ge 2 is irreducible and is not x+1x + 1, so it has no common factor with x+1x + 1, and q∣Eq \mid E exactly when q∣xm+1q \mid x^m + 1. The least n≥1n \ge 1 with q∣xn+1q \mid x^n + 1 is the order 2k−12^k - 1 of xx modulo qq, and q∣xm+1q \mid x^m + 1 exactly when this order divides mm. ■\blacksquare

Consequences

  • Choosing the length of the register. Under either random model, a 16-bit register misses about one error in 65 536 and a 32-bit register about one in 4.3×1094.3 \times 10^9. Designers pick kk from this number and then check the faults that matter with fault simulation of the real signature.
  • Primitivity is not needed for the limit. Part 2 needs only q0=1q_0 = 1, which makes the step s↦x s mod qs \mapsto x\,s \bmod q one to one. Primitivity matters for the speed of convergence and for structured errors, as the next section shows.
  • Unbiased errors converge at once. When p=1/2p = 1/2, PmP_m differs from 2−k2^{-k} only by the chance 2−n2^{-n} of an all-zero stream, from the first clock of a MISR and from clock kk of a SISR. For small pp the convergence can be slow, as the table under Tightness shows.
  • Linear codes. The aliasing streams of Part 1 are the nonzero codewords of the linear code that is the kernel of Φ\Phi. The same count gives the miss rate of a cyclic redundancy check on random errors.
  • Space compactors. An XOR network before the register adds its own cancellations: an error that cancels inside the network never reaches the register. The X-compact design states which errors its network keeps.

Tightness

  • The strict bound in Part 1 is the best constant. Pm<2−kP_m < 2^{-k} for every mm, and Pm→2−kP_m \to 2^{-k}, so no smaller constant bounds all mm.
  • Part 2 is a limit, not a bound. For finite mm, PmP_m can be far above 2−k2^{-k}. Exact computation with the Markov chain for a 4-bit SISR (2−4=0.06252^{-4} = 0.0625) gives these values.
qq pp P15P_{15} P60P_{60} P200P_{200} largest PmP_m for m≤200m \le 200
x4+x+1x^4 + x + 1 (primitive) 0.05 0.0028 0.0486 0.0625 0.0625, approached from below
x4+x+1x^4 + x + 1 (primitive) 0.95 0.4661 0.0947 0.0625 0.4661 at m=15m = 15
x4+x2+1x^4 + x^2 + 1 0.05 0.0177 0.0703 0.0628 0.0712 at m=69m = 69
x4+1x^4 + 1 0.05 0.0275 0.0861 0.0638 0.0862 at m=58m = 58

With p=0.95p = 0.95 nearly every bit is wrong, the stream is close to all ones, and at m=15=24−1m = 15 = 2^4 - 1 Part 3 makes it alias with probability about 0.9515≈0.460.95^{15} \approx 0.46. With p=0.05p = 0.05 the non-primitive polynomials pass above 2−42^{-4} on the way to the limit, while x4+x+1x^4 + x + 1 stays below it up to m=200m = 200.

  • The condition q0=1q_0 = 1 is needed. For q=xkq = x^k a SISR is a plain shift register that keeps only the last kk error bits, so Pm→(1−p)kP_m \to (1 - p)^k under independent errors, which is far above 2−k2^{-k} when pp is small.
  • Independence is needed. Part 3 gives faults whose aliasing probability is 1 for every mm (the MISR pair) or for every multiple of 2k−12^k - 1 (the SISR with all bits inverted).

History

Smith (1980) counted the aliasing streams under the model in which every nonzero error stream is equally likely, which gives Part 1. Williams, Daehn, Gruetzner and Starke (1987, 1988) replaced it by the model of independent bit errors with probability pp, wrote the error state as a Markov chain, and studied the limit and the transient for primitive and non-primitive polynomials. The bound with δ\delta in Part 2 is the standard Doeblin argument for a chain whose transition probabilities are all positive, written here for this chain. The cancellation of errors in neighbor stages of a MISR follows from the description of the register as polynomial division.

References

  1. J. E. Smith, Measures of the effectiveness of fault signature analysis, IEEE Transactions on Computers C-29(6), 510 to 514, 1980, the aliasing probability when all nonzero error streams are equally likely
  2. T. W. Williams, W. Daehn, M. Gruetzner and C. W. Starke, Bounds and analysis of aliasing errors in linear feedback shift registers, IEEE Transactions on Computer-Aided Design 7(1), 75 to 83, 1988, the Markov chain model of the error state under independent bit errors, the limit of the aliasing probability, and the transient for primitive and non-primitive polynomials
  3. T. W. Williams, W. Daehn, M. Gruetzner and C. W. Starke, Aliasing errors in signature analysis registers, IEEE Design and Test of Computers 4(2), 39 to 45, April 1987, the first account of aliasing under the independent error model
  4. Paul H. Bardell, William H. McAnney and Jacob Savir, Built-In Test for VLSI, Pseudorandom Techniques, Wiley-Interscience, 1987, the chapter Test Response Compression Techniques (aliasing of signature registers under several error models)

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/BP75TZ/text.yaml