digital fundamentals · 2016. 11. 24. · digital fundamentals, eleventh edition thomas l. floyd...

47
Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Digital Fundamentals Boolean Algebra and Logic Simplification

Upload: others

Post on 03-Aug-2021

28 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

Digital Fundamentals

Boolean Algebra and Logic Simplification

Page 2: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-1

Page 3: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-2

Page 4: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE Application of commutative law of addition.

Page 5: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE Application of commutative law of multiplication.

Page 6: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE Application of associative law of addition.

Page 7: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE Application of associative law of multiplication.

Page 8: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE Application of distributive law.

Page 9: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

LAWS

• commutative law: A+B =?

AB= ?

• associative law: A +(B+C) =?

A(BC) =?

• distributive law: A(B+C)=?

(A+B)(C+D)=?

Page 10: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

TABLE 4–1 Basic rules of Boolean algebra.

Page 11: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-8

Anything ORed with 0 equals to itself

Page 12: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-9

Anything ORed with 1 equals to 1

Page 13: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-10

Anything ANDed with 0 equals to 0

Page 14: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-11

Anything ANDed with 1 equals to

itself

Page 15: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-12

Anything ORed with itself equals to

itself

Page 16: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-13

Anything ORed with its own

complement equals to 1

Page 17: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-14

Anything ANDed with its own

complement equals to itself

Page 18: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-15

Anything ANDed with its own

complement equals to 0

Page 19: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-16

Anything complemented twice will

return to its original logic level

Page 20: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

TABLE 4–2 Rule 10: A + AB = A.

Elimination: One or more variables in

second term can be eliminated.

Used in simplication

Page 21: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

TABLE 4–3 Rule 11: A + ĀB = A + B.

Absorption: One or more variables in second term can be

eliminated. Used in simplication

Ā+AB =Ā+B (?)

Page 22: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

TABLE 4–4 Rule 12: (A + B)(A + C) = A + BC.

Absorption: Used in simplication

Page 23: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

DEMORGAN'S THEOREMS

Page 24: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

DEMORGAN'S THEOREMS

Page 25: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-17 Gate equivalencies and the corresponding truth tables that illustrate DeMorgan’s theorems. Notice the equality of the two output columns in each table. This shows that the equivalent gates perform the same logic function.

Page 26: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-18 A combinational logic circuit showing the development of the Boolean expression for the output.

Page 27: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-20 Gate circuits

Page 28: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

Simplify the following Boolean expressions :

STANDARD FORMS OF BOOLEAN EXPRESSIONS

Page 29: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-22 Implementation of the SOP expression AB + BCD + AC.

STANDARD FORMS OF BOOLEAN EXPRESSIONS

Page 30: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-23 This NAND/NAND implementation is equivalent to the AND/OR in Figure 4–22.

STANDARD FORMS OF BOOLEAN EXPRESSIONS

Page 31: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-24 Implementation of the POS expression (A + B)(B + C + D)(A + C).

STANDARD FORMS OF BOOLEAN EXPRESSIONS

Page 32: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

Circuit Simplification Using Boolean Algebra

Page 33: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

Circuit Simplification Using Boolean Algebra

Page 34: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

Karnaugh Map

• K-Map: a tools to preform a systematic reduction of complex logic circuits into simplified equivalent circuit.

• Transform the Boolean equation to be reduced into SOP expression

• Fill in a proper cell of the K-map

• Encircle adjacent cells in groups of two, four, or eight

• Find each term of the final SOP equation by determining which variable remain constant within each circle.

Page 35: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-25 A 3-variable Karnaugh map showing Boolean product terms for each cell.

Page 36: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-26 A 4-variable Karnaugh map.

Page 37: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4–27 Adjacent cells on a Karnaugh map are those that differ by only one variable. Arrows point between adjacent cells.

Page 38: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-28 Example of mapping a standard SOP expression.

Transform the Boolean equation to be reduced into SOP expression

Fill in a proper cell of the K-map

Page 39: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-29

Page 40: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-30

Page 41: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-33

Encircle adjacent cells in groups of two, four, or eight ?

Page 42: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-34

Encircle adjacent cells in groups of two, four, or eight

Page 43: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-35

Find each term of the final SOP equation by determining which

variable remain constant within each circle.

Page 44: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-36

Find each term of the final SOP equation by determining

which variable remain constant within each circle.

Page 45: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-37

Page 46: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-39 Example of mapping directly from a truth table to a Karnaugh map.

Page 47: Digital Fundamentals · 2016. 11. 24. · Digital Fundamentals, Eleventh Edition Thomas L. Floyd Copyright © 2015 by Pearson Education, Inc. All Rights Reserved Karnaugh Map •

Digital Fundamentals, Eleventh EditionThomas L. Floyd

Copyright © 2015 by Pearson Education, Inc.All Rights Reserved

FIGURE 4-43 Example of mapping a standard POS expression.