A shift register is a chain of flip-flops that shifts data left or right. Serial-in, parallel-out (SIPO) shift registers convert serial data to parallel; parallel-in, serial-out (PISO) do the reverse. Shift registers are used for serial communication, pattern detection, and controlling sequencing of operations.
From your study of flip-flops and sequential circuit design, you know that a flip-flop stores one bit and updates its output on a clock edge. A shift register is what happens when you chain flip-flops together so that each one feeds its output into the next one's input. On every clock pulse, the entire chain shifts its contents one position — the bit in flip-flop 0 moves to flip-flop 1, the bit in flip-flop 1 moves to flip-flop 2, and so on. New data enters at one end, and old data falls off the other.
This simple structure is surprisingly versatile because of the four configurations it supports. A Serial-In, Parallel-Out (SIPO) register accepts data one bit at a time on its input and, after enough clock cycles, presents all bits simultaneously on parallel output lines. This is exactly how a UART receiver works: serial bits arrive over a wire, shift in one per clock, and after 8 clocks the full byte is available for the processor to read. The reverse configuration, Parallel-In, Serial-Out (PISO), loads all bits at once and then clocks them out one at a time — this is how a UART transmitter converts a parallel byte into a serial bit stream. Serial-In, Serial-Out (SISO) creates a delay line, and Parallel-In, Parallel-Out (PIPO) acts as a simple storage register with load capability.
Beyond data conversion, shift registers enable two powerful applications. First, shifting left by one position is equivalent to multiplying by two, and shifting right divides by two. This means a shift register can perform fast multiplication and division by powers of two without a full arithmetic unit — a trick still used in hardware and low-level software. Second, a shift register with feedback — where certain output taps are XORed and fed back to the input — creates a Linear Feedback Shift Register (LFSR), which generates pseudo-random sequences useful in encryption, error-detecting codes (CRC), and built-in self-test circuits for hardware verification.
The timing behavior of a shift register follows directly from what you know about flip-flop propagation delay. Each flip-flop introduces a small delay, but since all flip-flops are clocked simultaneously, the shift happens in one clock period regardless of the register's length. The maximum clock frequency is limited by the setup time of each flip-flop plus the propagation delay through any combinational logic between stages (such as feedback XOR gates). In practice, shift registers can operate at very high frequencies because the path between adjacent flip-flops is short and simple.
No topics depend on this one yet.