3. WHAT ARE LOGICGATES?
• Logic gates are electronic switches with one or
more inputs and one output only.
• Input is data fed into the processor to perform
logical operations.
• The result of the operations is called the output.
• Logic gates operate on a binary input, that is the
input is either 0 or 1.
• The output depends on the input and the type of
logic gate.
4. TRUTHTABLE
• Showsthe result of every possible output given
every possible input.
• The possible number of combinations canbe
determined using the formula N2.
A B
0 0
0 1
1 0
1 1
Truth
Table
6. NOT GATE
• Theoutput is alwaysopposite to the input.Therefore, aNOT
gate isalsocalledaninverter.
• Theinversion by aNOTgate canbe written in the Boolean
algebraic expression:
A X
0 1
1 0
X A
7. • Theoutput is 1if both inputs are 1.
• The Boolean algebraicexpressionfor the action of anAND
gate is:
AND GATE
X A B
*Dot signrepresentsANDoperation.
A B X
0 0 0
0 1 0
1 0 0
1 1 1
8. OR GATE
• Theoutput is 1if either oneor both inputs are 1.
• TheBoolean algebraicexpressionfor the action of anOR
gate is:
X A B
*Plus signrepresentsORoperation.
A B X
0 0 0
0 1 1
1 0 1
1 1 1
10. NAND GATE
• ANAND gate is equivalent to anAND gate followed by a
NOTgate.
• It is clearthat the output is0 if both inputs give anoutput of
1.In other words, its output is that of anAND gate inverted.
• TheBoolean algebraicexpressionfor this gate:
x A B
A B X
0 0 1
0 1 1
1 0 1
1 1 0
11. NOR GATE
• ANORgate is equivalentto anORgate folllowed by aNOT
gate.
• It is clear that the output is 1if both inputs are 0n. Other
combinations of inputs give anoutput of 0. In other words,
its output is that of anORgate inverted.
• TheBoolean algebraicexpressionfor this gate:
x A B
A B X
0 0 1
0 1 0
1 0 0
1 1 0