The Wayback Machine - https://web.archive.org/web/20250321070052/https://www.geeksforgeeks.org/universal-shift-register-in-digital-logic/
Open In App

Universal Shift Register in Digital logic

Last Updated : 17 Sep, 2024
Comments
Improve
Suggest changes
Like Article
Like
Share
Report
News Follow

A Universal shift register is a register which has both the right shift and left shift with parallel load capabilities. Universal shift registers are used as memory elements in computers. A Unidirectional shift register is capable of shifting in only one direction. A bidirectional shift register is capable of shifting in both the directions. The Universal shift register is a combination design of bidirectional shift register and a unidirectional shift register with parallel load provision.

What is Universal Shift Register?

The universal shift register is another general-purpose digital circuitry that provides the facility of left or right shifting apart from parallel data loading. It can perform a variety of operations such as serial and parallel data input and output. It finds wide applications in different types of digital systems. The term “universal” itself designates multi-operation capability, which includes holding the data statically along with shifting in both directions. Normally, the universal shift register is designed by using digital ICs such as 74291 and 74395 in order to obtain full functionality within digital circuits.

Universal Shift Register Working

A universal shift register operates in any of three modes: according to the control signals. If the “Shift Left” control signal is active, there is a shift in data one position to the left, while the leftmost bit is lost and the rightmost bit is replaced from the serial input. In “Shift Right,” the data moves right with the loss of the rightmost bit and loading of the leftmost from the serial input. “Parallel Load” allows the simultaneous loading of data from all input lines. For this, the register retains its current data if none of the control signals have been activated. Internally, their obvious external interface is implemented by using multiplexers and flip-flops: the bits are held by a flip-flop, while a multiplexer acts for the input source at each operation.

n-Bit Universal Shift Register

A n-bit universal shift register consists of n flip-flops and n 4×1 multiplexers. All the n multiplexers share the same select lines(S1 and S0)to select the mode in which the shift register operates. The select inputs select the suitable input for the flip-flops.

Basic connections

  • The first input (zeroth pin of multiplexer) is connected to the output pin of the corresponding flip-flop.
  • The second input (first pin of multiplexer) is connected to the output of the very-previous flip flop which facilitates the right shift.
  • The third input (second pin of multiplexer) is connected to the output of the very-next flip-flop which facilitates the left shift.
  • The fourth input (third pin of multiplexer) is connected to the individual bits of the input data which facilitates parallel loading.

The working of the Universal shift register depends on the inputs given to the select lines. The register operations performed for the various inputs of select lines are as follows

S1 s0 Register operation
0 0 No changes
0 1 Shift right
1 0 Shift left
1 1 Parallel load

Advantages of Universal Shift Register

  • Multifunctionality: left and right shifts, parallel load, and static hold can all be performed.
  • Flexibility: can be used in many different digital systems.
  • Efficient: reduces the hardware to manipulate the data.

Disadvantages of Universal Shift Register

  • Complexity: More complex and expensive as compared to the simple shift registers.
  • Slower Operations: Sometimes additional control logic makes them slower.
  • Higher Cost: Additional functionalities raise the cost of implementation.

Applications of Universal Shift Register

  • Data Serializing/Deserializing: Data can be transferred from parallel to serial format and vice-versa.
  • Digital Signal Processing: Digital signal processing finds its applications in arithmetic operations and data manipulation.
  • Delay Circuits: The circuits that introduce the delays in digital signals are known as delay circuits.
  • Frequency divider: obtains lower frequency clock signals.
  • Counters and timers: Counters and timers perform timing and counting operations.

Conclusion

The digital electronics have the most important building block in universal shift registers; it allows versatility and flexibility for manipulating data. They could provide several functions such as shifting and parallel loading, hence making the device very useful for a variety of applications such as storage, communication systems, and signal processing. Undoubtedly, this flexibility would ensure wide usage of devices in a variety of digital circuits.

Frequently Asked Questions on Universal Shift Register – FAQs

Where is the difference between a SIPO and PISO shift register?

In a SIPO, the data are loaded serially and the output is presented in parallel. The PISO shift register will load the data parallel and present the output serially.

How does the universal shift register act as a frequency divider?

It can count a fixed number of clock cycles before shifting – thus dividing down an input frequency.

What type of flip-flops used in universal shift register?

General types of Flip-flops used are D, JK, and T flip-flops.



Next Article
Article Tags :

Similar Reads

three90RightbarBannerImg