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 -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 . Under two random models of the error, the chance of this tends to 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 , independently. The second limit holds for every 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 stages and the feedback polynomial of degree over GF(2), with . A test of clocks gives the error words (the faulty words minus the good words), and the error polynomial is . By the MISR page, the faulty chip passes exactly when . Say that the test aliases when and , and let 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.
- Equally likely streams. For every of degree and every , exactly of the nonzero error streams of a -input MISR alias. If every nonzero stream is equally likely,
For a SISR and the count is of . 2. Independent bit errors. Let every error bit be 1 with probability , , independently of all others. Then for a MISR and for a SISR, as , for every with . For a MISR, with ,
For the error state is uniform after one clock of a MISR and after clocks of a SISR, so for (MISR) and for (SISR). 3. Structured errors. The limit is not a bound for a given fault. In a MISR, an error on input at clock together with one on input at clock aliases for every . In a SISR with a primitive of degree , the error that inverts every bit of the stream aliases exactly when divides .
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 from bits to bits is linear over GF(2). It is onto, since the last word enters with : for any of degree less than , the stream maps to . So its kernel has elements, and the nonzero ones, of them, are the aliasing streams. Then because , and because . The SISR case is the same count with one-bit words and the map onto when , as on the built-in self-test page. No property of is used.
Part 2. Let be the error state after clocks, the register of a MISR that starts at 0 and is fed only with the errors. By the MISR page, , and . The words are independent of each other, so is a Markov chain on the polynomials of degree less than , with
where is the probability that an error word equals .
The uniform law is stationary. Since , and have no common factor, so is one to one on the states (if , then , so , so ). Hence for a fixed , the values run once over all states as does, and the column sum of the transition matrix is . The matrix is doubly stochastic, so the uniform law is a stationary distribution.
Convergence for a MISR. Here for every , where is the number of ones. So every entry of the matrix is at least , and . Write the matrix as , where every entry of is . If , the matrix has entries at least 0 and rows that sum to 1. For two laws and on the states, , so one step maps to , and . With uniform and stationary, after steps . The entries of sum to 0, so each one is at most half the norm in absolute value, which gives . If , then , every , and is already uniform.
Convergence for a SISR. Now , so a single step does not reach every state. But after steps from ,
and the sum is any polynomial of degree less than , each one for exactly one choice of , which has probability at least . So the -step matrix has every entry at least and is again doubly stochastic, and the argument above gives .
In both cases . The test aliases when and the stream is not all zero, so , where is the number of error bits, or , and . This proves the limit and the bound. For the state is exactly uniform after one clock of a MISR and after clocks of a SISR, which gives the two exact formulas.
Part 3. For the MISR pair, the error bit on input at clock gives the monomial , and the one on input at clock gives , the same monomial . With only these two error bits, although the stream is not zero, and . For the SISR, the stream of all ones gives , and . A primitive of degree is irreducible and is not , so it has no common factor with , and exactly when . The least with is the order of modulo , and exactly when this order divides .
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 . Designers pick 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 , which makes the step 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 , differs from only by the chance of an all-zero stream, from the first clock of a MISR and from clock of a SISR. For small 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 . 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. for every , and , so no smaller constant bounds all .
- Part 2 is a limit, not a bound. For finite , can be far above . Exact computation with the Markov chain for a 4-bit SISR () gives these values.
| largest for | |||||
|---|---|---|---|---|---|
| (primitive) | 0.05 | 0.0028 | 0.0486 | 0.0625 | 0.0625, approached from below |
| (primitive) | 0.95 | 0.4661 | 0.0947 | 0.0625 | 0.4661 at |
| 0.05 | 0.0177 | 0.0703 | 0.0628 | 0.0712 at | |
| 0.05 | 0.0275 | 0.0861 | 0.0638 | 0.0862 at |
With nearly every bit is wrong, the stream is close to all ones, and at Part 3 makes it alias with probability about . With the non-primitive polynomials pass above on the way to the limit, while stays below it up to .
- The condition is needed. For a SISR is a plain shift register that keeps only the last error bits, so under independent errors, which is far above when is small.
- Independence is needed. Part 3 gives faults whose aliasing probability is 1 for every (the MISR pair) or for every multiple of (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 , wrote the error state as a Markov chain, and studied the limit and the transient for primitive and non-primitive polynomials. The bound with 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
- 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
- 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
- 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
- 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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag BP75TZ Edit this page History Report an error Markdown