LOGIC GATES
MADE BY: MD BAKHTIYAR JUNG
BCA- Section- A (1st SEM)
SUBJECT: COMPUTER SYSTEM ARCHITECTURE
INDEX:
1. INTRODUCTION
2. AND GATE
3. OR
4. XOR
5. NAND
6. NOR
7. NOT
INTRODUCTION
A logic gate is an elementary building block of
a digital circuit. Most logic gates have two
inputs and one output. At any given moment,
every terminal is in one of the two binary
conditions low (0) or high (1), represented by
different voltage levels. The logic state of a
terminal can, and generally does, change
often, as the circuit processes data. In most
logic gates, the low state is approximately
zero volts (0 V), while the high state is
approximately five volts positive (+5 V).
There are seven basic logic gates: AND, OR,
XOR, NOT, NAND, NOR, and XNOR.
AND GATE:
The AND gate is so named because, if 0 is called "false" and 1
is called "true," the gate acts in the same way as the logical
"and" operator. The following illustration and table show the
circuit symbol and logic combinations for an AND gate.
OR GATE:
The OR gate gets its name from the fact that it behaves after
the fashion of the logical inclusive "or." The output is "true" if
either or both of the inputs are "true." If both inputs are "false,"
then the output is "false."
XOR GATE:
The XOR (exclusive-OR) gate acts in the same way as the
logical "either/or." The output is "true" if either, but not both, of
the inputs are "true." The output is "false" if both inputs are
"false" or if both inputs are "true." Another way of looking at this
circuit is to observe that the output is 1 if the inputs are
different, but 0 if the inputs are the same.
NAND GATE:
The NAND gate operates as an AND gate followed by a NOT
gate. It acts in the manner of the logical operation "and"
followed by negation. The output is "false" if both inputs are
"true." Otherwise, the output is "true."
NOR GATE:
The NOR gate is a combination OR gate followed by an
inverter. Its output is "true" if both inputs are "false." Otherwise,
the output is "false."
NOT GATE:
A NOT gate (also often called Inverter) is a logic gate. Each
NOT gate has only one input signal. Logically with NOT gates,
the input and the output swap, so if you input 1 it outputs as 0;
likewise if you input 0 it outputs as 1.