DLD Chapter 3
DLD Chapter 3
LOGIC GATES
OUTLINE
The inverter
The AND gate
The OR gate
The NAND gate
The NOR gate
The Exclusive OR and Exclusive NOR
gates
2
Logic gate
Introduction
Logic tells us a certain proposition or statement is true if certain conditions are
true.
Logic gates are the basic building blocks of any digital system.
It operate in the binary mode where each input &output voltage is either a 0 or 1; the 0 and 1 designations represent
predefined voltage ranges.
3
cont’d…
The table used to represent the Boolean expression of a logic gate function is commonly called a
Truth Table.
It shows each possible input combination to the gate or circuit with the resultant output.
Based on this, logic gates are named as Inverter (NOT) gate, AND gate, OR gate,
NAND gate, NOR gate Exclusive OR(XOR) and Exclusive NOR (XNOR) gates.
1. The Inverter (NOT Gate
unlike the OR and AND operation in that
4
cont’d…
1. The AND Gate
• Performs ‘logical multiplication’ Y= AB or, Y= A.B
– If all of the input are HIGH, then the output is
HIGH.
– If any of the input are LOW, then the output is
LOW.
AND Gate operation
5
cont’d…
1. The OR Gate
• Performs ‘logical Addition’ Y= A+B
– If any of the input are HIGH, then the output is
HIGH.
– If all of the input are LOW, then the output is LOW.
OR Gate operation
6
NOR GATES & NAND
GATES
are derived from combination of the basic AND, OR and NOT gates, which make it relatively easy to describe them using
the Boolean algebra operations. Symbol
1. The NAND Gate (NOT-AND)
• Used as a universal gate
7
Cont’d…
The NOR Gate (NOT-OR) Symbol
• Used as a universal gate
8
Cont’d…
The Exclusive-OR (XOR) Gate Symbol
• Used as a universal gate
– If both of the input are at the same logic level, then the output is
LOW.
– If both of the input are at opposite logic levels, then the output is HIGH.
XOR Gate operation = A’B + AB’
9
Cont’d…
The Exclusive-NOR (XNOR) Gate Symbol
• Used as a universal gate
• Has only 2 inputs, but output of XNOR is the opposite of XOR
– If both of the input are at the same logic level, then the output is
HIGH.
– If both of the input are at opposite logic levels, then the output is
LOW.
XNOR Gate operation A’B’ +
AB
10