_______ are universal logic gates.
NAND and NOR 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.
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.
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:
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:
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.
| 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 |
The concept of universal logic gates is highly significant in digital circuit design for several reasons:
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.
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?
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?
Which logical gate is used to represent product of sum expression?
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 |
Which logical gate is included in a binary adder circuit to enable binary addition and subtraction?
Which of the following represents the XNOR gate?
A Circuit that operates in such a way that its output is high only when all its inputs are high