A scan chain reconfigures a chip's flip-flops into one long shift register during test mode, letting an external tester or on-chip controller shift an arbitrary test pattern directly into internal state and shift the resulting response back out, bypassing the need to reach every internal node through the chip's functional I/O pins alone. Each flip-flop in the design is replaced with a scan flip-flop that has a multiplexed scan input, selected by a test-mode control signal, so the same storage elements serve both normal functional operation and test shifting. Scan chains are the physical mechanism underlying nearly all modern digital DFT — automatic test pattern generation produces the bit patterns that get shifted through them.