scan chain
A **scan chain** is a fundamental **Design for Test (DFT)** structure where internal flip-flops (registers) in a digital IC are linked together into a long **serial shift register**. This allows test equipment to directly control and observe the internal state of the chip, making comprehensive testing possible even for highly complex designs.
**How Scan Chains Work**
- **Normal Mode**: Flip-flops operate as usual, capturing data from combinational logic during regular chip operation.
- **Scan Mode**: A special control signal switches all scan flip-flops into shift mode. Test patterns are **serially shifted in** through the scan chain input, the chip is clocked once to capture results, and the outputs are **serially shifted out** for comparison with expected values.
- **Multiple Chains**: Modern chips have **hundreds or thousands** of scan chains running in parallel to reduce the time needed to shift patterns in and out.
**Key Benefits**
- **Controllability**: Engineers can set any internal register to any desired value — essential for targeting specific logic paths.
- **Observability**: The state of every scan flip-flop can be read out and checked against expected results.
- **ATPG Compatibility**: Scan chains enable **Automatic Test Pattern Generation** tools to achieve **95%+ fault coverage** with mathematically generated patterns.
**Practical Considerations**
- **Area Overhead**: Adding scan multiplexers to each flip-flop costs about **10–15% additional area**.
- **Timing Impact**: The added scan logic can affect **clock timing** and requires careful design.
- **Compression**: Technologies like **Synopsys DFTMAX** and **Cadence Modus** compress scan data, reducing test time and ATE memory requirements significantly.