digital logic & design vishal jethva lecture 09. recap commutative, associative and distributive...

34
Digital Logic & Design Vishal Jethva Lecture 09

Upload: barnaby-edwards

Post on 18-Jan-2016

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Digital Logic & Design

Vishal Jethva

Lecture 09

Page 2: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Recap

Commutative, Associative and Distributive Laws

Rules Demorgan’s Theorems

Page 3: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Recap

Boolean Analysis of Logic Circuits Simplification of Boolean Expressions Standard form of Boolean expressions

Page 4: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Examples

Boolean Analysis of Circuit Evaluating Boolean Expression Representing results in a Truth Table Simplification of Boolean Expression into

SOP or POS form Representing results in a Truth Table Verifying two expressions through truth

tables

Page 5: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Analysis of Logic Circuits Example 1

36

4

5

1

2

A

B

C

D

BBA.

DC.

DCBA ...

A

DCBABA ....

Page 6: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Evaluating Boolean Expression

The expression Assume and Expression Conditions for output = 1 X=0 & Y=0 Since X=0 when A=0 or B=1 Since

Y=0 when A=0, B=0, C=1 and D=1

DCBABA .... BAX . DCBAY ...

YX

BAX .

DCBAY ...

Page 7: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Evaluating Boolean Expression & Truth Table

Conditions for o/p =1 A=0, B=0, C=1 & D=1

Input Output

A B C D F

0 0 0 0 0

0 0 0 1 0

0 0 1 0 0

0 0 1 1 1

0 1 0 0 0

0 1 0 1 0

0 1 1 0 0

0 1 1 1 0

1 0 0 0 0

1 0 0 1 0

1 0 1 0 0

1 0 1 1 0

1 1 0 0 0

1 1 0 1 0

1 1 1 0 0

1 1 1 1 0

Page 8: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Simplifying Boolean Expression

Simplifying by applying Demorgan’s theorem

=DCBABA .... )...).(.( DCBABA

)...).(( DCBABA

)...).(( DCBABA

DCBBADCBAA ....)....(

DCBA ...

Page 9: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Truth Table of Simplified expression

Input Output

A B C D F

0 0 0 0 0

0 0 0 1 0

0 0 1 0 0

0 0 1 1 1

0 1 0 0 0

0 1 0 1 0

0 1 1 0 0

0 1 1 1 0

1 0 0 0 0

1 0 0 1 0

1 0 1 0 0

1 0 1 1 0

1 1 0 0 0

1 1 0 1 0

1 1 1 0 0

1 1 1 1 0

Page 10: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Simplified Logic Circuit

7

3

4

A

B

CD

Page 11: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Simplified Logic Circuit

Simplified expression is in SOP form

Simplified circuit

DCBA ...

Page 12: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Second Example

Evaluating Boolean Expression Representing results in a Truth Table Simplification of Boolean Expression

results in POS form and requires 3 variables instead of the original 4

Representing results in a Truth Table Verifying two expressions through truth

tables

Page 13: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Analysis of Logic Circuits Example 2

4

5

1

2 6

ABC

D

A

C

CBA ..

DC

)).(..( DCCBA

Page 14: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Evaluating Boolean Expression

The expression Assume and Expression Conditions for output = 1 X=0 OR Y=0 Since

X=0 when A=1,B=0 or C=1 Since

Y=0 when C=1 and D=0

)).(..( DCCBA

CBAX .. DCY

YX.

CBAX ..

DCY

Page 15: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Evaluating Boolean Expression & Truth Table

Conditions for o/p =1 (A=1,B=0 OR C=1)

OR (C=1 AND D=0)

Input Output

A B C D F

0 0 0 0 1

0 0 0 1 1

0 0 1 0 1

0 0 1 1 1

0 1 0 0 0

0 1 0 1 0

0 1 1 0 1

0 1 1 1 1

1 0 0 0 1

1 0 0 1 1

1 0 1 0 1

1 0 1 1 1

1 1 0 0 1

1 1 0 1 1

1 1 1 0 1

1 1 1 1 1

Page 16: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Rewriting the Truth Table

Conditions for o/p =1 (A=1,B=0 OR C=1)

OR (C=1 AND D=0)

Input Output

A B C F

0 0 0 1

0 0 1 1

0 1 0 0

0 1 1 1

1 0 0 1

1 0 1 1

1 1 0 1

1 1 1 1

Page 17: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Simplifying Boolean Expression

Simplifying by applying Demorgan’s theorem

=

)()..( DCCBA )).(..( DCCBA

).()( DCCBA

).()( DCCBA

)1( DCBA

CBA

Page 18: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Truth Table of Simplified expression

Input Output

A B C F

0 0 0 1

0 0 1 1

0 1 0 0

0 1 1 1

1 0 0 1

1 0 1 1

1 1 0 1

1 1 1 1

Page 19: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Simplified Logic Circuit

73

A

B

C

Page 20: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Simplified Logic Circuit

Simplified expression is in POS form representing a single Sum term

Simplified circuit

CBA

Page 21: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Standard SOP and POS form

Standard SOP and POS form has all the variables in all the terms

A non-standard SOP is converted into standard SOP by using the rule

A non-standard POS is converted into standard POS by using the rule 0AA

1 AA

Page 22: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Standard SOP form

CBCA

CBAABBCA )()(

CBACABCBACAB

CBACBACAB

Page 23: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Standard POS form

))()(( DCBADBACBA

))(( DCBADCBA

))()(( DCBADCBADCBA

Page 24: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Why Standard SOP and POS forms?

Minimal Circuit implementation by switching between Standard SOP or POS

Alternate Mapping method for simplification of expressions

PLD based function implementation

Page 25: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Minterms and Maxterms

Minterms: Product terms in Standard SOP form

Maxterms: Sum terms in Standard POS form

Binary representation of Standard SOP product terms

Binary representation of Standard POS sum terms

Page 26: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Minterms and Maxterms & Binary representations

CBA .. CBA

CBA .. CBA

CBA .. CBA

CBA .. CBA

CBA .. CBA

CBA .. CBA

CBA .. CBA

CBA .. CBA

A B C Min-terms

Max-terms

0 0 0

0 0 1

0 1 0

0 1 1

1 0 0

1 0 1

1 1 0

1 1 1

Page 27: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

SOP-POS Conversion

Minterm values present in SOP expression not present in corresponding POS expression

Maxterm values present in POS expression not present in corresponding SOP expression

Page 28: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Canonical Sum

Canonical Product

=

SOP-POS Conversion

ABCCBABCACBACBA

)CBA)(CBA)(CBA(

)7,5,3,2,0(,, CBA

)6,4,1(,, CBA

)7,5,3,2,0(,, CBA )6,4,1(,, CBA

Page 29: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Boolean Expressions and Truth Tables

Standard SOP & POS expressions converted to truth table form

Standard SOP & POS expressions determined from truth table

Page 30: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

SOP-Truth Table Conversion

BCBA

ABCCBACBABCA )7,5,4,3(,, CBAInput Output

A B C F

0 0 0 0

0 0 1 0

0 1 0 0

0 1 1 1

1 0 0 1

1 0 1 1

1 1 0 0

1 1 1 1

Page 31: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

POS-Truth Table Conversion))(( CBBA )5,3,2,1(,, CBA

))()()(( CBACBACBACBA Input Output

A B C F

0 0 0 1

0 0 1 0

0 1 0 0

0 1 1 0

1 0 0 1

1 0 1 0

1 1 0 1

1 1 1 1

Page 32: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

Karnaugh Map Simplification of Boolean Expressions

Doesn’t guarantee simplest form of expression

Terms are not obvious Skills of applying rules and laws

K-map provides a systematic method An array of cells Used for simplifying 2, 3, 4 and 5 variable

expressions

Page 33: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

3-Variable K-map

Used for simplifying 3-variable expressions

K-map has 8 cells representing the 8 minterms and 8 maxterms

K-map can be represented in row format or column format

Page 34: Digital Logic & Design Vishal Jethva Lecture 09. Recap Commutative, Associative and Distributive Laws Rules Demorgan’s Theorems

4-Variable K-map

Used for simplifying 4-variable expressions

K-map has 16 cells representing the 16 minterms and 8 maxterms

A 4-variable K-map has a square format