Logic Gates Logic Gates: Most Difficult Reading Topics
Logic Gates Logic Gates: Most Difficult Reading Topics
1
Electric Logic Logic Gates & Symbols
Logical values can easily be expressed by
an electrical
l t i l circuit.
i it
True or 1 can be defined as voltage on a
wire while False or 0 can be defined as
no voltage. We will use positive logic.
Analog values can be anything while digital
only has discrete values, 0 or 1
Electrical devices called gates can Note that gates can have more than 2 inputs.
implement the logical
inputs output
2
OR gate NOT gate
The OR gate is an electronic circuit that The NOT gate is an electronic circuit
gives a true output (1) if one or more of its that produces an inverted version of
inputs are true. A plus (+) is used to show the input at its output.
the OR operation. It is also known as an inverter.
If the input variable is A, the inverted
output is known as NOT A.
This is also shown as A', or with a
bar over the top
A A
0 1
1 0
3
Logical Equivalence NAND as a NOT
A NAND gate gives the same results as an
AND gate feeding into a NOT gate. Below are two ways that a NAND gate
Circuits are logically equivalent if they can be
b configured
fi d to
t produce
d a NOT
produce the same truth table output. gate. They are logically equivalent.
It can also be done using NOR logic
gates in the same way.
A B AB NOT AB NAND AB
0 0 0 1 1
0 1 0 1 1 A A NAND AA A 1 NAND A
1 0 0 1 1 0 0 1 0 1 1
1 1 1 0 0 1 1 0 1 1 0
4
EXOR gate EXNOR gate
The 'Exclusive-OR' gate is a circuit which The 'Exclusive-NOR' gate circuit does
will
ill give
i a true
t output
t t if either,
ith butb t nott th opposite
the it tto the
th EOR gate.
t
both, of its two inputs are true. It will give a false output if either, but
An encircled plus sign ( ) is used to show not both, of its two inputs are true.
the EOR operation. The symbol is an EXOR gate with a
small circle on the output.
output
The small circle represents inversion.
5
Truth Table Try it
Logic gates representation using the Draw the circuit diagrams like the
T th ttable
Truth bl ones below
b l t show
to h how
h a NOR gatet
can be made into a NOT gate.
6
Three Input AND Gate Cont. Four Input AND Gate
Here is an example of a four input
AND gate.
t
It also works on the same principle,
all four inputs need to be true (1) to
get a true output.
The same principles apply to 5,
5 6 6,..., n
input gates.
Four Input AND Gate cont. Two, Three, and Four OR gates
7
Connecting Gates
The output of one logic gate can be used
as the
th input
i t to
t another
th logic
l i gate.
t
The output of one gate can be used as the
inputs to several other gates.