Professional Documents
Culture Documents
ad
and Communications Engineering
hm
Logic Circuits
nA
Dr. Eng.
Hassan M. Ahmad
assa
Hassan.Ahmad@spu.edu.sy, istamo48@mail.ru
r. H
D
ad
hm
nA
Lecture _05
assa
Logic Gets
r. H
Operations & Truth Tables
D
hm
NOT operation indicates inversion or complementation . Thus, the Boolean
nA
expression for an inverter is X A .
The complemented variable A can be read as “A bar” or “not A.”
For example, inverter operation with a pulse input, and a timing diagram:
assa
r. H
An Application
Fig. shows a circuit for producing the 1’s complement of an 8-bit binary number.
D
ad
According to the placement of the bubble, what is the active output state?
hm
nA
The output waveform is exactly opposite to the input (inverted), as shown in Fig.,
which is the basic timing diagram.
assa
r. H
D
ad
the output is LOW.
The distinctive shape ( )الشكل المميزsymbol
hm
For a 2-input gate, the truth table is
nA
AND Gate Truth Table
assa
The total number of possible combinations
of binary inputs to a AND gate is determined
by the following formula: N 2n
r. H
, where N is the number of possible input
combinations and n is the number of input variables.
For example,
D
ad
b) Determine the total number of possible combinations for a 4-input AND
gate.
hm
nA
The number of possible combinations for a 3-input AND gate is 23 = 8, and the
truth table is as shown.
Total number: N = 24 =16.
(There are 16 possible combinations of
assa
input bits for a 4-input AND gate)
r. H
D
ad
are voltage waveforms that change frequency between HIGH and LOW logic
levels.
hm
Let’s look at the operation of AND gate with pulse waveform inputs, as shown
in Fig.
As you know, a diagram of input and output waveforms showing time
nA
relationships is called timing diagram.
assa
r. H
D
hm
nA
assa
r. H
D
hm
Boolean Multiplication ()الضرب البوليني
nA
assa
Figure shows the AND gate logic symbol with two, three, and four inputs.
r. H
D
hm
The distinctive shape ( )الشكل المميزsymbol
nA
For a 2-input gate, the truth table is
assa
The OR operation is shown with a plus sign (+) between the variables.
Thus, the OR operation is written as X A B
r. H
D
hm
nA
assa
r. H
D
ad
hm
nA
For the two and three input waveforms, A and B, in Fig., show the resulting output
assa
waveform with its proper relation to the inputs?
r. H
D
hm
Boolean Addition
nA
assa
Notice that Boolean addition differs from binary addition in the case where
two 1s are added. There is no carry in Boolean addition.
r. H
Boolean expression for OR gates with two, three, and four inputs.
D
hm
The NAND gate produces a LOW output when all inputs are HIGH;
otherwise, the output is HIGH. For a 2-input gate, the truth table is
nA
assa
The Boolean expression for the output of a 2-input NAND gate is shown
r. H
with a dot between the variables and an bar over covering them. Thus, the
NAND operation is written as X A B or X AB
ad
inputs as shown in Fig., determine the resulting output
waveform??
hm
nA
Show the resulting output waveform for 3-inputs NAND gate with its proper
assa
relation to the inputs?
r. H
D
ad
inverted output.
The NOR gate produces a LOW output if any input is HIGH; if all inputs are
hm
HIGH, the output is LOW. For a 2-input gate, the truth table is
nA
The Boolean expression for the output of a 2-input NOR gate can be written as
assa
shown with a plus sign (+) between the variables and an over-bar covering them.
Thus, the NOR operation is written as X A B
r. H
D
ad
NOR gate inputs as in shown Fig., determine the resulting
output waveform??
hm
nA
assa
r. H
D
hm
nA
The XOR operation is written logically as
assa
Example waveforms:
X AB AB
r. H
Notice that the XOR gate will produce a HIGH only when exactly one
D
input is HIGH.
hm
nA
The XOR operation shown as X A B A B
Example of exclusive-OR gate operation with pulse waveform inputs.
assa
r. H
D
ad
hm
nA
assa
r. H
The output waveforms are shown in Fig.
Notice that the XOR output is HIGH only when both inputs are at opposite
levels.
Notice that the XNOR output is HIGH only when both inputs are the same.
D
ad
HIGH.
hm
Boolean The mathematics of logic circuits.
algebra
Complement The inverse or opposite of a number. LOW is the complement of HIGH,
nA
and 0 is the complement of 1.
Exclusive-NOR A logic gate that produces a LOW only when the two inputs are at
(XNOR) gate opposite levels.
Exclusive-OR A logic gate that produces a HIGH output only when its two inputs
(XOR) gate
Inverter assa
are at opposite levels.
A logic circuit that inverts or complements its input.
r. H
NAND gate A logic gate that produces a LOW output only when all the inputs are
HIGH.
NOR gate A logic gate in which the output is LOW when one or more of the inputs
are HIGH.
OR gate A logic gate that produces a HIGH output when one or more inputs are
D
HIGH.
Truth table A table showing the inputs and corresponding output(s) of a logic circuit.
Dr. Eng. Hassan Ahmad 9 July 2018 21
ad
hm
nA
assa
r. H
D
hm
output waveform in proper relation to the input.
nA
assa
r. H
D
ad
hm
nA
assa
r. H
D
ad
a timing diagram.
hm
nA
assa
r. H
D
ad
diagram.
hm
nA
assa
r. H
D
ad
1) Show the output waveform in proper relation to the inputs with timing
diagram.
hm
2) If the output of the AND gate is fed to an inverter, draw the net output
waveform (Y ) of this system.
nA
assa
r. H
D
ad
hm
nA
assa
r. H
D
ad
diagram.
hm
nA
assa
r. H
D
ad
hm
nA
assa
r. H
D
ad
hm
nA
assa
r. H
D
ad
hm
nA
assa
r. H
D
ad
Draw the net output waveform.
hm
nA
assa
r. H
D
ad
hm
nA
assa
r. H
D