Lecture # 3B - Logic Gates
Lecture # 3B - Logic Gates
INFORMATION TECHNOLOGY
Logic Symbols used to represent the logic gates. Logic gates are the
basic building blocks of any digital system.
NAND gate produces a LOW output only when all the inputs are
HIGH.
If any input is LOW the output is HIGH.
A B AB NOT AB or NAND
0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
The NAND Gate Operation
Logic Expression for a NAND Gate
The Boolean expression of the output of 2 inputs NAND Gate.
X = NOT (AB)
STEP 1
At first we solved A AND B
Step 2
Invert the output of step 1.
The NOR Gate
X = NOT ( A OR B)
STEP 1
The two inputs variable of A OR B
STEP 2
Invert the output of step 1
The Exclusive - OR
Exclusive – OR Gate
Standard symbols for an exclusive-OR (XOR for XOR for shot) gate.
Inputs A OR B Output
A B A+B NOT (A+B) or NOR
0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0
The Exclusive - OR
Exclusive – OR Gate
The Exclusive - OR
Exclusive – OR Gate
Inputs Output
0 0 1 1 0 0 0 0
0 1 1 0 1 0 1 1
1 0 0 1 0 1 1 1
1 1 0 0 0 0 0 0
Inputs Output
A B NOT A NOT B NOT A AB A (EXCLUSIVE NOR ) X= NOT A(NOT B) +
(NOT B) B AB
0 0 1 1 1 0 1 1
0 1 1 0 0 0 0 0
1 0 0 1 0 0 0 0
1 1 0 0 1 1 1 1
The Exclusive - NOR
Exclusive – NOR Gate
APPLICATION
Exclusive –OR gate can be used a two bit module-2 adder.
e.g.
0+0=0
0+1=1
1+0=0
1+1=1
Summary
NOT GATE
AND GATE
OR GATE
NAND
Summary
NOR
XOR
XNOR
END
Q/A