chapter 1 parts 2,3,4 - tarleton state university · 1.3 deriving boolean functions from truth...

51
Chapter 1 Parts 2,3,4 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Upload: others

Post on 13-May-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

Chapter 1

Parts 2,3,4

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 2: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

TABLE 1.4

Page 3: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

TABLE 1.5

Page 4: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

What are properties and theorems good for?

Remember our example: simplification!

Page 5: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

How do we prove properties and theorems?

Page 6: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

FIGURE 1.8

Page 7: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

QUIZ: Use perfect induction to prove DeMorgan’s theorem

Page 8: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

1.3 Deriving boolean functions from truth

tables

-using the 1s → canonical SOP

-using the (compact) sum of minterms

EoL

Page 9: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

Individual work for Monday

Read thoroughly section 1.4.

Go lightly over the VHDL code (we’re saving it for the lab!), but make sure you understand:

• The logical function in Architecture

• The waveform diagrams

End-of-chapter 17,18,19,20,22,25.

EoL

Page 10: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

QUIZ: End-of-chapter 1.26

Describe how to obtain the dual of a Boolean

relationship.

Find the dual of X + YZW + A

Page 11: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

QUIZ: End-of-chapter 1.26

Describe how to obtain the dual of a Boolean

relationship.

Find the dual of X + YZW + A

Page 12: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

QUIZ: End-of-chapter 1.26

Describe how to obtain the dual of a Boolean

relationship.

Find the dual of X + YZW + A

Page 13: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

QUIZ: Write the canonical SOP and the sum of minterms

for the function in this truth table

Page 14: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

But, since there are more 0s than ones, isn’t it a better idea

to design based on the 0s?

Page 15: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

Write the dual of this statement:

Consider all the lines where the function is 1, write the

minterm for each, add up the minterms.

Q: What is the dual of a minterm? A: Use duality again!

Page 16: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

Conclusion: The entire design process has a

dual!

• Zeroes in the truth table

• Maxterms

• Product of sums

• Bar the variables that are equal to 1

Page 17: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

Analysis vs. Design

Page 18: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

1.4 VHDL for simple gate functions

Page 19: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

Yet another representation:

Hardware Description Languages (HDLs)

Page 20: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

WAVEFORMS ARE EQUIVALENT TO TRUTH TABLES!

Page 21: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write
Page 22: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write
Page 23: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write
Page 24: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

LISTING 1.7

Derive this from the truth table!

Page 25: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write
Page 26: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

Individual work for Wednesday

Read thoroughly section 1.4.

Go lightly over the VHDL code (we’re saving it for the lab!), but make sure you understand:

• The logical function in Architecture

• The waveform diagrams

End-of-chapter 38, 39, 45-50.

Page 27: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

Homework for Ch.1, due Mon, Jan 30

29, 35, 37, 41, 42, 51 through 55

The homework assignments are available on the course webpage.

EoL

Page 28: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

QUIZ: Derive canonical SOP , compact sum of minterms,

and gate diagram for this function

Page 29: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

1.5 More about logic gates

Active-low inputs and outputs

Page 30: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

Logically, these symbols for an inverter are

equivalent

Page 31: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

‘B’ is for Bubble

Page 32: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

Gate-level DeMorgan manipulations

Page 33: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

Gate-level DeMorgan example:

From AND-OR to NAND-NAND

Page 34: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

QUIZ: From OR-AND to …??

Page 35: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

QUIZ: From OR-AND to NOR-NOR

Page 36: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

Functionally complete gates

NAND is functionally complete!

Page 37: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

NOR is also functionally complete!

Page 38: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

Two extra-credit problems:

1] Prove that the XOR gate (by itself) is not

functionally complete.

2] Prove that XOR together with OR is functionally

complete.

Page 39: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

FYI: IEEE symbols

(we’re not going to use them)

Page 40: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

Remember

Homework for Ch.1, due Mon, Jan 30

29, 35, 37, 41, 42, 51 through 55

The homework assignments are available on the course webpage.

Page 41: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

Unused slides

Page 42: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

FIGURE P1.18

Page 43: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

LISTING P1.50

Page 44: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

LISTING P1.54

Page 45: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

FIGURE P1.73

Page 46: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

FIGURE P1.74

Page 47: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

FIGURE P1.75

Page 48: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

FIGURE P1.84

Page 49: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

FIGURE P1.85

Page 50: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

FIGURE P1.86

Page 51: Chapter 1 Parts 2,3,4 - Tarleton State University · 1.3 Deriving boolean functions from truth tables -using the 1s → canonical SOP-using the (compact) sum of minterms ... Write

FIGURE P1.87