Universal Shift Registers

💡
Key learnings:
  • Universal Shift Register Definition: A universal shift register is defined as a register that can load and retrieve data in both serial and parallel modes, shifting data left or right.
  • Modes of Operation: The shift register can function in multiple modes (serial-in serial-out, serial-in parallel-out, parallel-in serial-out, parallel-in parallel-out) depending on the select lines.
  • Multiplexer Connections: Each 4×1 multiplexer connects to a flip-flop with inputs for holding current data, shifting right, shifting left, and parallel loading.
  • Truth Table and Waveforms: The truth table and waveforms illustrate the different operating states and data shifts within the register.
  • Applications: Universal shift registers are crucial for efficient data storage, transfer, and manipulation in digital circuits.

Universal Shift Register is a register which can be configured to load and/or retrieve the data in any mode (either serial or parallel) by shifting it either towards right or towards left. In other words, a combined design of unidirectional (either right- or left-shift of data bits as in case of SISO, SIPO, PISO, PIPO) and bidirectional shift register along with parallel load provision is referred to as universal shift register. Such a shift register capable of storing n input bits is shown by Figure 1.

n bit universal shift register

The design in Figure 1 uses n 4×1 multiplexers to control the input pins of n flip-flop, which are connected to clock and clear inputs. All multiplexers share the same select lines, S1 and S0, to choose the shift register’s operation mode.

  1. First input (Pin Number 0) connected to the output pin of the same flip-flop i.e. zeroth pin of MUX1 is connected to Q1, zeroth pin of MUX2 is connected to Q2, … zeroth pin of MUXn is connected to Qn.
  2. The second input (Pin 1) of each multiplexer connects to the output of the previous flip-flop. For instance, MUX2’s Pin 1 connects to Q1, MUX3’s Pin 1 connects to Q2, and so on. The first flip-flop (FF1) uses this pin as a serial input for right shifts.
  3. Third input (Pin Number 2) connected to the output of the very-next flip-flop (except the first flip-flop FFn where it acts like an serial-input to the input data bits which are to be shifted towards left) i.e. second pin of MUX1 is connected to Q2, second pin of MUX2 is connected to Q3,… second pin of MUXn-1 is connected to Qn.
  4. Fourth input (Pin Number 3) connected to the individual bits of the input data word which is to be stored into the register, thus providing the facility for parallel loading.

The working of this shift register is explained by the Table I. The corresponding truth table and the wave forms are given by Table II and Figure 2, respectively.
function table for n bit universal shift register
truth table for n bit universal shift register
output waveform of universal shift register

Want To Learn Faster? 🎓
Get electrical articles delivered to your inbox every week.
No credit card required—it’s 100% free.

About Electrical4U

Electrical4U is dedicated to the teaching and sharing of all things related to electrical and electronics engineering.

Leave a Comment