- Digital Electronics Tutorial
- Digital Electronics - Home
- Digital Electronics Basics
- Types of Digital Systems
- Types of Signals
- Logic Levels And Pulse Waveforms
- Digital System Components
- Digital Logic Operations
- Digital Systems Advantages
- Number Systems
- Number Systems
- Base Conversions
- Binary Numbers Representation
- Binary Arithmetic
- Signed Binary Arithmetic
- Octal Arithmetic
- Hexadecimal Arithmetic
- Complement Arithmetic
- Binary Codes
- Binary Codes
- 8421 BCD Code
- Excess-3 Code
- Gray Code
- ASCII Codes
- EBCDIC Code
- Code Conversion
- Error Detection & Correction Codes
- Logic Gates
- Logic Gates
- AND Gate
- OR Gate
- NOT Gate
- Universal Gates
- XOR Gate
- XNOR Gate
- CMOS Logic Gate
- Two Level Logic Realization
- Threshold Logic
- Boolean Algebra
- Boolean Algebra
- Laws of Boolean Algebra
- Boolean Functions
- DeMorgan's Theorem
- SOP and POS Form
- Minimization Techniques
- K-Map Minimization
- Three Variable K-Map
- Four Variable K-Map
- Five Variable K-Map
- Six Variable K-Map
- Don't Care Condition
- Quine-McCluskey Method
- Min Terms and Max Terms
- Canonical and Standard Form
- Max Term Representation
- Simplification using Boolean Algebra
- Combinational Logic Circuits
- Digital Combinational Circuits
- Digital Arithmetic Circuits
- Multiplexers
- Parity Bit Generator and Checker
- Comparators
- Encoders
- Keyboard Encoders
- Priority Encoders
- Decoders
- Demultiplexers
- Arithmetic Logic Unit
- 7-Segment LED Display
- Code Converters
- Code Converters
- Binary to Decimal Converter
- Decimal to BCD Converter
- BCD to Decimal Converter
- Binary to Gray Code Converter
- Gray Code to Binary Converter
- BCD to Excess-3 Converter
- Excess-3 to BCD Converter
- Adders
- Half Adders
- Full Adders
- Serial Adders
- Parallel Adders
- Full Adder using Half Adder
- Half Adder vs Full Adder
- Binary Adder-Subtractor
- Subtractors
- Half Subtractors
- Full Subtractors
- Parallel Subtractors
- Full Subtractor using 2 Half Subtractors
- Half Subtractor using NAND Gates
- Sequential Logic Circuits
- Digital Sequential Circuits
- Clock Signal and Triggering
- Latches
- Flip-Flops
- Conversion of Flip-Flops
- Shift Registers
- Shift Register Applications
- Counters
- Finite State Machines
- Algorithmic State Machines
- A/D and D/A Converters
- Analog-to-Digital Converter
- Digital-to-Analog Converter
- DAC and ADC ICs
- Realization of Logic Gates
- NOT Gate from NAND Gate
- OR Gate from NAND Gate
- AND Gate from NAND Gate
- NOR Gate from NAND Gate
- XOR Gate from NAND Gate
- XNOR Gate from NAND Gate
- NOT Gate from NOR Gate
- OR Gate from NOR Gate
- AND Gate from NOR Gate
- NAND Gate from NOR Gate
- XOR Gate from NOR Gate
- XNOR Gate from NOR Gate
- NAND/NOR Gate using CMOS
- Memory Devices
- Memory Devices
- RAM and ROM
- Cache Memory Design
- Programmable Logic Devices
- Programmable Logic Devices
- Programmable Logic Array
- Programmable Array Logic
- Field Programmable Gate Arrays
- Digital Electronics Families
- Digital Electronics Families
- CPU Architecture
- CPU Architecture
Difference between NAND Gate and NOR Gate
In digital electronics, logic gates are the basic building blocks of all digital circuits that act as the switching devices in the digital circuits. Therefore, a logic gate is a digital circuit used to perform several logical operations in a digital device or system. A logic gate can accept one or multiple inputs but produces only a single output. Where, the output of a logic gate is determined by the combination of input signals. The operation of the logic gates is based on the Boolean algebra.
These days, logic gates are being used in every digital electronic device such as smartphones, laptops, computers, memories, etc. There are many types logic gates available such as AND gate, OR gate, NOT gate, NAND gate, NOR gate, XOR gate, XNOR gate, etc.
Here, we will highlight all the differences between NAND gate and NOR gate. Both the NAND gate and the NOR gate are universal logic gates, which means we can implement any logical expression by using the NAND and NOR gates only. Before getting into the differences, let's start with some basics.
What is a NAND Gate?
A NAND gate basically a combination of NOT gate and AND gate, i.e. NOT + AND = NAND. Therefore, the NAND gate is a negated version of AND gate.
For a NAND gate, the output of the gate is high (1), when all of its inputs are low (0) or at least one input is low. If it has all the inputs low (0), then the gate's output will be high (1). Hence, from the explanation, it is clear that the NAND gate is an exact inverse of the AND gate.
The logical or Boolean expression of a two input NAND gate is given by,
$$\mathrm{Y \: = \: \overline{A \cdot B} \: = \: (A \cdot B)^\prime}$$
Where, Y is the output of the NAND gate and A and B are the binary inputs.
The NAND gate follows the commutative law, i.e.
$$\mathrm{(A \: \cdot \: B)^\prime \: = \: (B \: \cdot \: A)^\prime}$$
Hence, from the Boolean expression of the NAND gate, we can see that the output of the NAND gate is obtained by multiplying all the inputs and then by taking the compliment of the multiplied result.
The following is the truth table of a two input NAND gate −
Inputs | AND | Output | |
---|---|---|---|
A | B | A·B | Y = (A·B)' |
0 | 0 | 0 | 1 |
0 | 1 | 0 | 1 |
1 | 0 | 0 | 1 |
1 | 1 | 1 | 0 |
NAND gates are used in realizing other logic gates, making flip-flops, registers, burglar alarm circuit, freezer warning buzzer, etc.
What is a NOR Gate?
The NOR gate is a combination of NOT and OR gates, i.e. OR + NOT = NOR. A NOR gate consists of an OR gate followed by a NOT gate.
For the NOR gate, the output of the gate is high (1), when all its inputs are low (0). In all other cases, it produces a low output. Thus, the NOR gate is nothing but a negated version of the OR gate.
The Boolean expression of a two input NOR gate is given by,
$$\mathrm{Y \: = \: \overline{A \: + \: B} \: = \: (A \: + \: B)^\prime}$$
Where, Y is the gate's output and A & B are the inputs. Hence, from the Boolean expression of the NOR gate, it is clear that the gate's output can be obtained by the logical addition of all the inputs and then taking the complement of the result of addition.
The following is the truth table of a two input NOR gate −
Inputs | OR | Output | |
---|---|---|---|
A | B | A+B | Y = (A+B)' |
0 | 0 | 0 | 1 |
0 | 1 | 1 | 0 |
1 | 0 | 1 | 0 |
1 | 1 | 1 | 0 |
The NOR gate is used in the realization of several combinational and sequential digital circuits like multiplexers, multipliers, counters, etc.
Difference between NAND Gate and NOR Gate
NAND and NOR gates are types of universal logic gates, however, there are several differences between these that are listed in the following table −
Difference | NAND Gate | NOR Gate |
---|---|---|
Definition | A NAND gate is a universal logic gate which performs the negated logical multiplication. | A NOR gate is a universal logic gate which performs the negated logical addition. |
Implementation | NAND gate can be implemented by using an AND gate followed by a NOT gate. | NOR gate can be implemented by using an OR gate followed by a NOT gate. |
Representation | The operation of NAND gate can be represented by the complimented AND operation, i.e. (·)'. | The operation of a NOR gate can be represented by the complimented OR operation, i.e. (+)'. |
Boolean Expression |
The Boolean expression of a two input NAND gate is given by, $\mathrm{Y \: = \: \overline{A \cdot B} \: = \: (A \: \cdot \: B)^\prime}$ |
The Boolean expression of a two input NOR gate is given by, $\mathrm{Y \: = \: \overline{A \: + \: B} \: = \: (A \: + \: B)^\prime}$ |
Low Output | The NAND gate produces a low (0) output, when all its inputs are high. | The NOR gate produces a low (0) output, when all its inputs or at least one input is high (1). |
High Output | The NAND gate produces a high (1) output, when all its inputs or at least one input is low (0). | The NOR gate produces a high (1) output, when all its inputs are low (0). |
Applications | The NAND gate is used in constructing other logic gates, making flip-flops, registers, implementing burglar alarm circuit, freezer warning buzzer, etc. | The NOR gate is used in the implementation of various combinational and sequential digital circuits like multiplexers, multipliers, counters, etc. |
Conclusion
The most significant difference between these two gates is that the NAND gate executes a negated logical multiplication, while the NOR gate executes a negated logical addition.