Digital Logic Chapter 2 Logic gates
Digital Logic Chapter 2 Logic gates
Logic gates
NOT Gate
The NOT gate is a digital logic gate with one input and one output that operates an inverter operation of
the input. The output of the NOT gate is the reverse of the input. It is also called the inverter.
When the input of the NOT gate is 1 (high) then the output will be 0 (low) and vice versa.
The symbol, Boolean expression and truth table of a NOT gate is shown below.
OR Gate
The OR gate is a digital logic gate with ‘n’ inputs and one output, that performs logical conjunction
based on the combinations of its inputs.
The output of the OR gate is 1 (high) only when one or more inputs are 1 (high).
If all the inputs of the gate are 0 (low), then only the output of the OR gate is 0 (low).
The symbol, Boolean expression and truth table of an OR gate with two inputs is shown below.
AND Gate
The AND gate is a digital logic gate with ‘n’ inputs one output, which performs logical conjunction
based on the combinations of its inputs.
The output of this gate is 1 (high) only when all the inputs are 1 (high).
When one or more inputs of the AND gate are 0 (low), then only the output of the AND gate is 0
(low).
Universal Gates
A universal gate is a logic gate which can implement any Boolean function without the need to use any
other type of logic gate. The NAND and NOR gates are called universal gates because any digital
circuit can be implemented by using any one of these two i.e. any logic gate can be created using
NAND or NOR gates only.
Example- AND gate can be made from NAND gate by connecting two NAND gates where the output of
first NAND gate is given to second NAND gate.
-NOT gate from NAND gate, when both the input of NAND gate is same then it work as a NOT gate.
NAND gate
The NAND gate is a digital logic gate with ‘n’ inputs and one output, that performs the operation of the
AND gate followed by the operation of the NOT gate. NAND gate is designed by combining the AND
and NOT gates.
If all inputs of the NAND gate are 1 (high), then the output of the gate is 0 (low).
If one or more inputs are 0 (low), then the output is 1 (high).
The symbol, Boolean expression and truth table of the NAND gate with two inputs is shown below.
NOR Gate
The NOR gate is a digital logic gate with n inputs and one output, that performs the operation of the OR
gate followed by the NOT gate. NOR gate is designed by combining the OR and NOT gate.
When any one of the input of the NOR gate is 1 (high), then the output of the NOR gate is 0
(low).
When all inputs are 0 (low), then the output of the NOR gate is 1 (high).
The symbol and truth table of the NOR gate with the truth table is shown below.
The symbol, Boolean expression and truth table of the EX-OR are shown below.
The symbol, Boolean expression and truth table of the EX-NOR are shown below.
. .
. .
. . . .
. .
⊕
Digital Logic: Chapter 2: Logic gates By Er. MB Sah
⊕ ⊕
. .
. .
. . . .
. .
⊕
Q.1. Consider a gate which outputs high voltage only when all inputs are high and outputs low
voltage otherwise. How this gate does behaves in positive and negative logic system.
Let us consider A and B as an input and Y as an output. ‘H’ be a high and ‘L’ be a low. According to the
question we can draw a truth table
A B Y
L L L
L H L
H L L
H H H
Digital Logic: Chapter 2: Logic gates By Er. MB Sah
According to question, we have to draw truth table in both Positive and Negative logic system
Positive Logic System Negative Logic System
A B Y A B Y
0 0 0 1 1 1
0 1 0 1 0 1
1 0 0 0 1 1
1 1 1 0 0 0
This is the truth table of Positive logic AND gate. This is the truth table of Negative logic AND gate.
Q.2. Consider a gate which outputs high voltage when any of the inputs are high and outputs low
voltage otherwise. How this gate does behaves in positive and negative logic system.
Let us consider A and B as an input and Y as an output. ‘H’ be a high and ‘L’ be a low. According to the
question we can draw a truth table
A B Y
L L L
L H H
H L H
H H H
According to question, we have to draw truth table in both Positive and Negative logic system
Positive Logic System Negative Logic System
A B Y A B Y
0 0 0 1 1 1
0 1 1 1 0 0
1 0 1 0 1 0
1 1 1 0 0 0
This is the truth table of Positive logic OR gate. This is the truth table of Negative logic OR gate.
From the above two questions, we can conclude that two things
a. Positive Logic AND gate is equivalent to Negative logic OR gate.
b. Positive Logic OR gate is equivalent to Negative logic AND gate.
First Theorem
The complement result of the AND operation is equal to the OR operation of the complement of that
variables.
.
NAND = Bubbled OR
Figure- Diagram and Truth table for verification of the De Morgan's first theorem
Second Theorem
The complement result of the OR operation is equal to the AND operation of the complement of that
variable.
.
NOR = Bubbled AND