All Exams Test series for 1 year @ ₹349 only
Question

_______ are universal logic gates.

This question was previously asked in
RRB ALP 2018 CBT 2 Fitter Question Paper (21-Jan-2019) (Shift 3)
The correct answer is

NAND and NOR gates

Understanding Universal Logic Gates

Logic gates are the basic building blocks of digital electronic circuits. They perform fundamental logical operations on one or more binary inputs to produce a single binary output. Common basic logic gates include AND, OR, and NOT gates.

Some logic gates are considered 'universal' gates. This means that any other logic gate (AND, OR, NOT, XOR, XNOR) or any boolean function can be implemented by using only this type of universal gate. In other words, you can build any digital circuit using only universal gates of a single type.

Which Gates are Universal Logic Gates?

The gates that hold the distinction of being universal logic gates are the NAND gate and the NOR gate. Let's explore why these two gates are considered universal.

NAND Gate as a Universal Gate

A NAND gate produces an output that is the inverse of the AND gate output. Its output is false (0) only if all inputs are true (1); otherwise, the output is true (1).

The boolean expression for a two-input NAND gate with inputs A and B is \(\overline{A \cdot B}\) or \((A \cdot B)'\).

A single type of NAND gate can be used to implement all basic logic gates:

  • Implementing NOT gate: Connect the two inputs of a NAND gate together. The output is the inverse of the input. If the input is A, the output is \(\overline{A \cdot A} = \overline{A}\).
  • Implementing AND gate: Use a NAND gate followed by another NAND gate (connected as a NOT gate). The first NAND gate gives \(\overline{A \cdot B}\). Passing this through a NOT gate (implemented by another NAND gate) gives \(\overline{\overline{A \cdot B}} = A \cdot B\).
  • Implementing OR gate: Use three NAND gates. Invert each input first using two NAND gates (as NOT gates), then feed these inverted inputs into a third NAND gate. The inputs to the third NAND gate are \(\overline{A}\) and \(\overline{B}\). The output is \(\overline{\overline{A} \cdot \overline{B}}\), which by De Morgan's theorem is \(A + B\).

NOR Gate as a Universal Gate

A NOR gate produces an output that is the inverse of the OR gate output. Its output is true (1) only if all inputs are false (0); otherwise, the output is false (0).

The boolean expression for a two-input NOR gate with inputs A and B is \(\overline{A + B}\) or \((A + B)'\).

A single type of NOR gate can also be used to implement all basic logic gates:

  • Implementing NOT gate: Connect the two inputs of a NOR gate together. The output is the inverse of the input. If the input is A, the output is \(\overline{A + A} = \overline{A}\).
  • Implementing OR gate: Use a NOR gate followed by another NOR gate (connected as a NOT gate). The first NOR gate gives \(\overline{A + B}\). Passing this through a NOT gate (implemented by another NOR gate) gives \(\overline{\overline{A + B}} = A + B\).
  • Implementing AND gate: Use three NOR gates. Invert each input first using two NOR gates (as NOT gates), then feed these inverted inputs into a third NOR gate. The inputs to the third NOR gate are \(\overline{A}\) and \(\overline{B}\). The output is \(\overline{\overline{A} + \overline{B}}\), which by De Morgan's theorem is \(A \cdot B\).

Summary of Universal Gate Implementations

The ability of both NAND and NOR gates to implement the basic AND, OR, and NOT gates makes them universal. Here is a summary:

Target Gate Implementation using only NAND gates Implementation using only NOR gates
NOT 1 NAND gate (inputs tied) 1 NOR gate (inputs tied)
AND 2 NAND gates 3 NOR gates
OR 3 NAND gates 2 NOR gates

Based on the properties discussed, the gates that are universal logic gates are NAND and NOR gates.

Revision Table: Key Logic Gate Types

Gate Type Description Boolean Expression (for 2 inputs A, B) Universal?
AND Output is 1 only if all inputs are 1. \(A \cdot B\) No
OR Output is 1 if at least one input is 1. \(A + B\) No
NOT Output is the inverse of the input. \(\overline{A}\) No
NAND Output is 0 only if all inputs are 1. (Inverse of AND) \(\overline{A \cdot B}\) Yes
NOR Output is 1 only if all inputs are 0. (Inverse of OR) \(\overline{A + B}\) Yes
XOR (Exclusive OR) Output is 1 if inputs are different. \(A \oplus B\) No
XNOR (Exclusive NOR) Output is 1 if inputs are the same. \(\overline{A \oplus B}\) No

Additional Information on Universal Logic Gates

The concept of universal logic gates is highly significant in digital circuit design for several reasons:

  • Simplification of Manufacturing: Using only one type of gate (either NAND or NOR) can simplify the manufacturing process of integrated circuits (ICs). Instead of needing multiple types of basic gates on a chip, only universal gates are needed.
  • Cost Reduction: Mass production of a single gate type can lead to lower costs per gate.
  • Flexibility: Designers have the flexibility to implement any logic function using only universal gates, simplifying design tools and processes.
  • Historical Context: In early digital electronics, minimizing the number of different component types was important. NAND and NOR gates were easier to implement using early transistor technologies than AND and OR gates.

While other gates like XOR and XNOR are also crucial in digital logic for specific applications (like arithmetic circuits), they are not considered universal because you cannot implement all basic gates using only XOR gates or only XNOR gates.

Was this answer helpful?

Similar Questions

  1. In a logic circuit, two inputs A and B are applied to an AND gate, and the output of the AND gate is connected to the input of a NOT gate. If the inputs A and B are both at logic 0, what will be the output of the entire circuit?

  2. In a logic circuit, three SPST (Single Pole Single Throw) switches are used to implement a logic gate. The switches are connected in series. What is the output of the circuit if all switches are closed?

  3. _____ is the digital 2-input logic gate whose output is HIGH only when both its inputs are the same.
  4. A three Input NOR gate gives high O/P when _____.
  5. The Output of NAND Gate is low in case ________

Important Questions from Logic Gates

  1. Which logical gate is used to represent product of sum expression?

  2. Which gate is represented by the following truth table?

    Input

    Output

    A

    B

    C

    0

    0

    0

    1

    0

    0

    1

    1

    0

    1

    0

    1

    0

    1

    1

    1

    1

    0

    0

    1

    1

    0

    1

    1

    1

    1

    0

    1

    1

    1

    1

    0

  3. Which logical gate is included in a binary adder circuit to enable binary addition and subtraction?

  4. Which of the following represents the XNOR gate?

  5. A Circuit that operates in such a way that its output is high only when all its inputs are high

Need Expert Advice?
Upcoming Exams
RRB NTPC
September 27, 2026
Test Series
RRB ALP img
Railways
RRB ALP 2026 Mock Test series
1035 Tests 1 Tests Free
893 Attempts
4.3(235)
English, Hindi

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App