Professional Documents
Culture Documents
Dr Abdelaziz Yousif
Ahmed 22-03-23
Ext: 7845
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Course Outcome
1. Explain number systems, codes, digital arithmetic operation
and circuits.
2. Use Boolean algebra and Karnaugh Maps to minimize
Boolean expressions for the design of digital logic circuits.
3. Explain and use flip-flops, latches, counters, multiplexers and
de-multiplexers.
4. Design and construct combinational digital logic
circuits using appropriate logic design techniques.
5. Design and construct synchronous sequential digital
logic circuits using appropriate logic design techniques.
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Learning Outcome
1. Analyze basic combinational logic circuits, such as AND-OR, AND-OR-
Invert, exclusive-OR, and exclusive-NOR
2. Use AND-OR and AND-OR-Invert circuits to implement
sum-of- products (SOP) and product-of sums (POS) expressions
3. Write the Boolean output expression for any combinational logic circuit
4. Develop a truth table from the output expression for a combinational
logic circuit
5. Use the Karnaugh map to expand an output expression containing terms
with missing variables into a full SOP form
6. Design a combinational logic circuit for a given Boolean
output expression
7. Design a combinational logic circuit for a given truth table
8. Simplify a combinational logic circuit to its minimum form
9. Use NAND gates to implement any combinational logic function
10. Use NOR gates to implement any combinational logic function
11. Analyze the operation of logic circuits with pulse inputs
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Outline
1. Basic Combinational Logic Circuits
2. Implementing Combinational Logic
3. The Universal Property of NAND and NOR Gates
4. Combinational Logic Using NAND and NOR Gates
5. Pulse Waveform Operation
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Combinational Logic Circuits
In Sum-of-Products (SOP) form, basic combinational
circuits can be directly implemented with AND-OR
combinations if the necessary complement terms are
available.
Product terms
A
AB
B
CD
C
AB + CD + . . . + JK
D
J Sum-of-products
JK
K
Product term
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Combinational Logic Circuits
An example of an SOP implementation is shown. The
SOP expression is an AND-OR combination of the
input variables and the appropriate complements.
A
ABC
B X = ABC + DE SOP
C
D
DE
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Combinational Logic Circuits
When the output of a SOP form is inverted, the circuit is
called an AND-OR-Invert circuit. The AOI configuration
lends itself to product-of-sums (POS) implementation.
A
ABC
B X = ABC + DE X = ABC + DE AOI
C
D X = (ABC)(DE) DeMorgan
DE X = (A + B + C)(D + E) POS
E
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Exclusive-OR Logic
The truth table for an exclusive-OR gate is Inputs Output
A B X
Notice that the output is HIGH whenever 0 0 0
0 1 1
A and B disagree. 1 0 1
1 1 0
The circuit
A can be drawn as
Symbols:
X =1
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Exclusive-NOR Logic
The truth table for an exclusive-NOR gate is Inputs Output
A B X
Notice that the output is HIGH whenever 0 0 1
0 1 0
A and B agree. 1 0 0
1 1 1
A Symbols:
X
B
=1
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Exclusive-NOR Logic
A
A A
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Implementing Combinational Logic
Implementing a SOP expression is done by first forming
the AND terms; then the terms are ORed together.
Show the circuit that will implement the
Boolean expression X = ABC + ABD + BDE. (Assume that
the variables and their complements are available.)
D
B
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
D
Karnaugh Map Implementation
For basic combinational logic circuits, the Karnaugh map
can be read and the circuit drawn as a minimum SOP.
A Karnaugh map is drawn from a truth table. Read
the minimum SOP expression and draw the circuit.
C C
1. Group the 1’s into two overlapping
AB 1C
B groups as indicated.
changes AB 1AB 11 2. Read each group by eliminating any
across variable that changes across a boundary.
this AB AB 1 3. The vertical group is read AC.
boundary 1
C 4. The horizontal group is read AB.
AB changes
A
across The circuit is on the next
this slide:
boundary
B
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Karnaugh Map Implementation
continued…
Circuit: A
X= AC + A
C B
A
B
The result is shown as a sum of products.
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Karnaugh Map Implementation
A
X= AC + A
C B
A
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Universal application of NAND gates
NAND gates are sometimes called universal gates
because they can be used to produce the other
basic Boolean functions.
A A A AB
B
Inverter AND gate
A A
A+B A+B
B B
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Universal application of NOR gates
NOR gates are also universal gates and can form
all of the basic gates.
A A A A+ B
B
Inverter OR gate
A A
AB AB
B B
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Pulsed Waveforms
For combinational circuits with pulsed inputs, the output
can be predicted by developing intermediate outputs
and combining the result. For example, the circuit
shown can be analyzed at the outputs of the OR gates:
A
A
B B G1
C
C G3
D G2
G1 D
G2
G3
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Pulsed Waveforms
Alternatively, you can develop the truth table for
Inputs Output
the circuit and enter 0’s and 1’s on the
waveforms. Then read the output from the table. A B C D X
0 0 0 0 0
0 0 0 1 1
0 0 1 0 1
A 0 0 1 1 1
G1
0 1 0 0 0
B G3 0 1 0 1 1
C 0 1 1 0 1
G2
0 1 1 1 1
1 0 0 0 0
AD 0 1 0 1 0 1 0 1 0 1 1 0 0 1 0
1 0 1 0 0
B 0 1 1 0 0 1 0 0 0 1 0 1 1 0
1 1 1 0 0 0
0 0 0 1 1 1 1 0 0 0
1 1 0 1 1
C 0 0 0 0 0 0 0 1 1 1 1 1 0 1
0 1 1 1 1 1
D3 0 0 0 0 1 1 1 0 1 0
G
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Quiz
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Quiz
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Quiz
B LED-1
b. LED-2
A
c. neither
+5.0 V
d. both +5.0 V
330
B LED-2
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Quiz
C
c. 3-input OR gate A
B
d. 3-input NOR gate
D
B
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Quiz
c. AB + BC 1 1
AB
d. AB + A
AB
C
AB
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Quiz
b. OR gates
B
C
c. NAND gates
D
d. NOR gates
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Quiz
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Quiz
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Quiz
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Quiz
10.During the first three intervals for the pulsed
circuit shown, the output of
a. G1 is LOW and G2 is LOW
b. G1 is LOW and G2 is HIGH
c. G1 is HIGH and G2 is LOW
d. G1 is HIGH and G2 is HIGH
A
A G1
B
B
C G3
G2
C D
Answers:
1. b 6. c
2. d 7. b
3. a 8. c
4. c 9. a
5. d 10. c
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Cooperative Learning
Functions of Combinational Logic
Topics No
Half, Full Adders and Parallel Binary Adders 1
Comparators 2
Decoders and Encoders 3
Code Converters 4
Multiplexers (Data Selectors) and Demultiplexers 5
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved