Logic built-in self-test, or LBIST, generates test stimulus and compacts logic responses on chip. A common architecture combines a pseudo-random pattern generator, scan-accessible logic and a signature register. Matching a signature is evidence for a defined test session, not proof that every possible defect is absent.
Reviewed 12 November 2026 · Worked examples with stated assumptions
On this page
Which blocks participate in a test?
- Controller + seed
- Pattern generator
- Logic + scan
- Response compaction
- Signature comparison
The controller must define seed, pattern count, clocking, capture behavior and expected signature. Change one of these and the expected result may change even when the circuit is healthy. Keep the configuration with the result.
A small LFSR example you can enumerate
Let the four-bit state update be s←((s<<1)&15) | (((s>>3) XOR (s>>2))&1). Starting from 0001, it visits 1,2,4,9,3,6,13,10,5,11,7,15,14,12,8 and then returns to 1.
The software test checks all fifteen nonzero states and the return to the seed. Zero stays zero under this recurrence, so it is not an appropriate seed. A maximal-length sequence does not by itself establish the fault coverage of a design driven by it.
Why compress responses?
A signature register reduces a long response stream to a smaller state for comparison. Compression saves observation bandwidth, but distinct response streams can collide. A commonly cited idealized aliasing estimate of 2^-m for m signature bits depends on assumptions; it is not a universal guarantee for all circuits, faults or patterns.
Unknown values can contaminate signatures unless the architecture handles them. Define reset, initialization and masking requirements rather than silently converting unknowns into zero.
Why random patterns miss some faults
Some faults require rare internal values or combinations to activate and observe them. More pseudo-random patterns may bring diminishing returns. Test points, deterministic top-up patterns or other methods can improve coverage under an evaluated test strategy.
Also check switching activity and capture power. A test that meets a pattern-count target but violates electrical limits is not an acceptable implementation.
A useful LBIST review record
- Design revision and fault model.
- Generator recurrence, seed and pattern count.
- Scan organization and capture clocks.
- Signature polynomial/convention and expected value.
- Unknown handling, coverage, power and test-time evidence.
Our four-bit recurrence is a teaching example only. It is not a production LBIST controller or a safety diagnostic claim.
Common questions
Is built-in test always logic BIST?
No. Built-in test is broader and can include memory tests, analog diagnostics and software checks. LBIST specifically addresses logic testing.
Does a longer signature prove all defects are detected?
No. Signature width addresses one part of compaction behavior; activation, observation, unknown handling and the fault model still matter.
References and practice checks
The practice package includes original arithmetic models, a small RTL simulation and a host C exercise. Each states its test boundary; none is a silicon or board validation claim.