Professional Documents
Culture Documents
ELECTRONICS
UNIT-i
Logic Gates
LOGIC GATES
• Basic gates
– AND gate
– OR gate
– NOT gate
• Universal gates
– NAND gate
– NOR gate
• Special gates
– EX-OR gate
– EX-NOR gate
Basic Gates
Universal Gates
0 1
1 0
Implementation of AND using NAND
0 0 0
0 1 0
AND Gate using NAND Gates 1 0 0
1 1 1
Implementation of OR gate using NAND
A’
(A’.B’)’ = A’’ + B’’
=A+B
B’
OR Gate using NAND Gates
Truth Table
Input A Input B Output Q
0 0 0
0 1 1
1 0 1
1 1 1
Implementation of NOR gate using
NAND
• A NOR gate is simply an inverted OR gate.
Output is high when neither input A nor input
B is high:
A’ (A’.B’)’ = A+B
Input A Input B Output Q
0 0 1
0 1 0
(A+B)’ 1 0 0
B’
NOR Gate using NAND Gates 1 1 0
Implementation of NOT gate using NOR
Input Output
0 0 0
0 1 1
1 0 1
1 1 1
Implementation of AND gate using
NOR
• an AND gate is made by inverting the
inputs to a NOR gate.
A’
(A’+B’)’=A.B
Input A Input B Output Q
0 0 0
B’ 0 1 0
AND Gate using NOR Gates 1 0 0
1 1 1
Implementation of NAND gate using
NOR
A’ (A’+B’)’=A.B
(A.B)’
B’
NAND Gate using NOR Gates
Special Gates
Implementation of XOR gate using
NAND
• An XOR gate is constructed similarly to an OR gate,
except with an additional NAND gate inserted such
that if both inputs are high, the inputs to the final
NAND gate will also be high.
(A.(A.B)’)’
(A.B)’ (AB’+A’B)
0 0 0
X-OR Gate using NAND Gates 0 1 1
1 0 1
1 1 0
Implementation of XOR gate using NOR
(AB’+A’B)
B’ 0 0 0
0 1 1
(A+B)’ 1 0 1
X-OR Gate using NOR Gates 1 1 0
Implementation of XNOR gate using NAND
1 0 0