25
Circuit Simplification Truth Table Minimized Logic Gates

Circuit Simplification Truth Table Minimized Logic Gates

Embed Size (px)

Citation preview

Page 1: Circuit Simplification Truth Table  Minimized Logic Gates

Circuit Simplification

Truth Table Minimized Logic Gates

Page 2: Circuit Simplification Truth Table  Minimized Logic Gates

Where We Are…

• Can represent a circuit's output with Boolean expression:

AB + AC

Page 3: Circuit Simplification Truth Table  Minimized Logic Gates

Where We Are…

• We can simplify boolean expressions

AB + ACA(B + C)

Page 4: Circuit Simplification Truth Table  Minimized Logic Gates

Where We Are…

• Thus we can simplify circuits

AB + AC

A(B + C)

Page 5: Circuit Simplification Truth Table  Minimized Logic Gates

Truth Table

• Truth table defines Boolean function– When in doubt, check the truth table…

Page 6: Circuit Simplification Truth Table  Minimized Logic Gates

Proof By Exhaustion

• Proof by exhaustion : prove equivalence by comparing truth tables

• Ex: =

A B

0 0 1

0 1 1

1 0 1

1 1 0

A B

0 0 1

0 1 1

1 0 1

1 1 0

Page 7: Circuit Simplification Truth Table  Minimized Logic Gates

DeMorgan's Theorems

+ If you don't have both of A and B…you do not have A or do not have B

If you don't have either of A or B…you do not have A and you do not have B

Page 8: Circuit Simplification Truth Table  Minimized Logic Gates

DeMorgan's

• Break up solid bar by switching operation:

Page 9: Circuit Simplification Truth Table  Minimized Logic Gates

Samples

B

= B DeMorgan's

= B Commutative

= (1 + B) Distributive

= (1) 1+ anything = 1

= 1 · anything = self

Page 10: Circuit Simplification Truth Table  Minimized Logic Gates

Samples

·A

= ()·A DeMorgan's

= (A)·A Double negative cancel

= A·A Associative

= A·A Commutative

= A Anything self = self

Page 11: Circuit Simplification Truth Table  Minimized Logic Gates

Sum Of Products

• Can convert any truth table to sum of products expression– Each 1 in output is a product of inputs (AND)– Any of them work (OR them together)

X = B + A + AB

Page 12: Circuit Simplification Truth Table  Minimized Logic Gates

Multiple Inputs

• Each product shows EVERY input– Either raw or inverted

Ex:Each product hasA or B or C or

Page 13: Circuit Simplification Truth Table  Minimized Logic Gates

SOP Circuit

• Can build circuit from SOP expression:– Inputs feed layer of AND gates• Some inputs inverted first

– OR gate takes ANDs

X = B + A + AB

Page 14: Circuit Simplification Truth Table  Minimized Logic Gates

Implication 1

Can build circuit from SOP expression:• Any circuit can be build with NOT, AND & OR

Page 15: Circuit Simplification Truth Table  Minimized Logic Gates

And…

• Can make NOT, AND & OR with only NAND

NOT AND OR

Page 16: Circuit Simplification Truth Table  Minimized Logic Gates

Implication 2

• Any circuit can be build with NAND gates only…

Page 17: Circuit Simplification Truth Table  Minimized Logic Gates

Implication 2

• Replace NOT with NAND

Page 18: Circuit Simplification Truth Table  Minimized Logic Gates

Implication 2

• Put inversion bubbles out of AND & into OR– 2 negations cancel out

Page 19: Circuit Simplification Truth Table  Minimized Logic Gates

Implication 2

• Convert + …. to – De Morgan's Theorem

Page 20: Circuit Simplification Truth Table  Minimized Logic Gates

SOP Circuit

• Can build circuit from SOP expression…

… but can often do better…

Page 21: Circuit Simplification Truth Table  Minimized Logic Gates

Simplification

• Can simplify things…

X = B + A + AB = B + A( + B) = B + A() = B + A = B + A = A + B

Page 22: Circuit Simplification Truth Table  Minimized Logic Gates

Multiple Outputs

• Multiple outputs– Each output separate function/circuit

IN OUT

A B X Y

0 0 0 1

0 1 0 0

1 0 0 0

1 1 1 1

Page 23: Circuit Simplification Truth Table  Minimized Logic Gates

Multiple Outputs

• Multiple outputs– Each output separate function/circuit

X = ABIN OUT

A B X Y

0 0 0 1

0 1 0 0

1 0 0 0

1 1 1 1

Page 24: Circuit Simplification Truth Table  Minimized Logic Gates

Multiple Outputs

• Multiple outputs– Each output separate function/circuit

X = AB

Y = AB +

IN OUT

A B X Y

0 0 0 1

0 1 0 0

1 0 0 0

1 1 1 1

Page 25: Circuit Simplification Truth Table  Minimized Logic Gates

Logisim

• Build simplified circuit from truth table…– Window Combinational Analysis

• Build truth table for circuit…– Project Analyze Circuit