CSEE 3827: Fundamentals of Computer Systems Lecture 3 January 28, - - PowerPoint PPT Presentation

csee 3827 fundamentals of computer systems
SMART_READER_LITE
LIVE PREVIEW

CSEE 3827: Fundamentals of Computer Systems Lecture 3 January 28, - - PowerPoint PPT Presentation

CSEE 3827: Fundamentals of Computer Systems Lecture 3 January 28, 2009 Martha Kim martha@cs.columbia.edu Agenda DeMorgans theorem Duals Standard forms DeMorgans Theorem Procedure for complementing expressions


slide-1
SLIDE 1

CSEE 3827: Fundamentals of Computer Systems

Lecture 3 January 28, 2009 Martha Kim martha@cs.columbia.edu

slide-2
SLIDE 2

Agenda

  • DeMorgan’s theorem
  • Duals
  • Standard forms
slide-3
SLIDE 3

DeMorgan’s Theorem

  • Procedure for complementing expressions
  • Replace...
  • AND with OR, OR with AND
  • 1 with 0, 0 with 1
  • X with X, X with X

XY = X + Y X + Y = XY

slide-4
SLIDE 4

Prove DeMorgan’s Theorem XY = X + Y

X Y XY

1 1 1 1

X Y X + Y

1 1 1 1

slide-5
SLIDE 5

Prove DeMorgan’s Theorem XY = X + Y

X Y XY

1

1

1

1

1

1 1

X Y X + Y

1

1

1

1

1

1 1

slide-6
SLIDE 6

DeMorgan’s Practice

F = ABC + ACD + BC

slide-7
SLIDE 7

DeMorgan’s Practice

F = ABC + ACD + BC

= (ABC)(ACD)(BC) = (ABCD)(B+C) = ABCD + ABCD = ABCD

slide-8
SLIDE 8

Duals

slide-9
SLIDE 9

Duals

  • A theorem about theorems
  • All boolean expressions have duals
  • Any theorem you can prove, you can also prove for its dual
  • To form a dual...
  • replace AND with OR, OR with AND
  • replace 1 with 0, 0 with 1
slide-10
SLIDE 10

What is the dual of this expression?

X + Y = XY

slide-11
SLIDE 11

What is the dual of this expression?

X + Y = XY

XY = X + Y

dual

slide-12
SLIDE 12

What are the complements of these expressions?

X + Y = XY

XY = X + Y

dual

complement complement

slide-13
SLIDE 13

What are the complements of these expressions?

X + Y = XY

XY = X + Y

dual

complement complement

X + Y = XY XY = X + Y

slide-14
SLIDE 14

These are also the duals of one another.

X + Y = XY

XY = X + Y

dual

complement complement

X + Y = XY XY = X + Y

dual

slide-15
SLIDE 15

Can be used for gate manipulation.

X + Y = XY

XY = X + Y X + Y = XY XY = X + Y

slide-16
SLIDE 16

Boolean Algebra: Identities and Theorems

OR AND NOT X+0 = X X1 = X (identity) X+1 = 1 X0 = 0 (null) X+X = X XX = X

(idempotent)

X+X = 1 XX = 0 (complementarity) X = X (involution) X+Y = Y+X XY = YX (commutativity) X+(Y+Z) = (X+Y)+Z X(YZ) = (XY)Z (associativity) X(Y+Z) = XY + XZ X+YZ = (X+Y)(X+Z) (distributive) X+Y = X Y XY = X + Y

(DeMorgan’s theorem)

slide-17
SLIDE 17

Standard forms

slide-18
SLIDE 18

Standard Forms

  • There are many ways to express a boolean expression
  • It is useful to have a standard or canonical way
  • Derived from truth table
  • Generally not the simplest form

F = XYZ + XYZ + XZ = XY(Z + Z) + XZ = XY + XZ

slide-19
SLIDE 19

Two principle standard forms

  • Sum-of-products (SOP)
  • Product-of-sums (POS)
slide-20
SLIDE 20

Sum-of-products form

  • sometimes also called disjunctive normal form (DNF)
  • sometimes also called a minterm expansion

A B C

F F

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

F = ABC + ABC + ABC + ABC + ABC F = ABC + ABC + ABC

slide-21
SLIDE 21

Sum-of-products form 2

A B C

F F

minterm 1 m0 ABC 1 1 m1 ABC 1 1 m2 ABC 1 1 1 m3 ABC 1 1 m4 ABC 1 1 1 m5 ABC 1 1 1 m6 ABC 1 1 1 1 m7 ABC

F = ABC + ABC + ABC + ABC + ABC = m0 + m1 + m2 + m4 + m5 = ∑m(1,0,2,4,5) F = ABC + ABC + ABC = m3 + m6 + m7 = ∑m(3,6,7)

(variables appear once in each minterm)

slide-22
SLIDE 22

Sum-of-products form 3

F = ABC + ABC + ABC + ABC + ABC = m0 + m1 + m2 + m4 + m5 = ∑m(1,0,2,4,5)

A B C F

Standard form is not minimal form!

slide-23
SLIDE 23

Two principle standard forms

  • Sum-of-products (SOP)
  • Product-of-sums (POS)
slide-24
SLIDE 24

Product-of-sums form

  • sometimes also called conjunctive normal form (CNF)
  • sometimes also called a maxterm expansion

A B C

F F

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

F = (A+B+C) (A+B+C) (A+B+C)

slide-25
SLIDE 25

Product-of-sums form

  • sometimes also called conjunctive normal form (CNF)
  • sometimes also called a maxterm expansion

A B C

F F

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

F = (A+B+C) (A+B+C) (A+B+C) (A+B+C) (A+B+C)

F = (A+B+C) (A+B+C) (A+B+C)

slide-26
SLIDE 26

Product-of-sums form 2

A B C

F F

maxterm 1 M0 A+B+C 1 1 M1 A+B+C 1 1 M2 A+B+C 1 1 1 M3 A+B+C 1 1 M4 A+B+C 1 1 1 M5 A+B+C 1 1 1 M6 A+B+C 1 1 1 1 M7 A+B+C

F = (A + B + C) (A + B + C) (A + B + C) = (M3)(M6)(M7) = ∏M(3,6,7) F = (A+B+C) (A+B+C) (A+B+C) (A+B+C) (A+B+C) = (M0)(M1)(M2)(M4)(M5) = ∏M(0,1,2,4,5)

slide-27
SLIDE 27

Summary of SOP and POS

F F

Sum of products (SOP) ∑m(F = 1) ∑m(F = 0) Product of sums (POS)

∏M(F = 0) ∏M(F = 1)

slide-28
SLIDE 28

Standard Form Example

A B C

F F

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

F F

Sum of products (SOP) Product of sums (POS)

slide-29
SLIDE 29

Standard Form Example

A B C

F F

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

F F

Sum of products (SOP)

∑m(1,3,5,6) ∑m(0,2,4,7)

Product of sums (POS)

∏M(0,2,4,7) ∏M(1,3,5,6)

slide-30
SLIDE 30

Converting between canonical forms DeMorgans

F F

Sum of products (SOP) ∑m(F = 1) ∑m(F = 0) Product of sums (POS)

∏M(F = 0) ∏M(F = 1)

slide-31
SLIDE 31

Next class: systematic minimization