Docsity

Understanding Combinational Logic using K-Maps, Slides of Digital Systems Design

Partial preview of the text

Download Understanding Combinational Logic using K-Maps and more Slides Digital Systems Design in PDF only on Docsity!

Combinational Logic: K-Map

Part I. Combinational Logic

– Implementation

• K-map

Corresponding K-map

f (a, b, c, d) = c

b

c

a

d

Another example w/ 4 bits:

Id a b c d f (a,b,c,d)

Boolean Expression K-Map

Variable xi and its

compliment xi’

Two half planes Rxi, Rxi’

Product term P

(PXi* e.g. b’c’)

 Intersect of Rxi* for all i

in P (Rb’ intersect Rc’)

Each minterm (^)  1-cell

Two minterms are adjacent

iff they differ by one and

only one variable, eg:

abc’d, abc’d’

The two 1-cells are

neighbors

Each minterm has n

adjacent minterms

Each 1-cell has n

neighbors

U

Procedure Input: Two sets of F R D

1) Draw K-map.

2) Expand all terms in F to their largest

sizes (prime implicants).

3) Choose the essential prime

implicants.

4) Try all combinations to find the

minimal sum of products. (This is the

most difficult step)

4-input K-map

AB
CD
Y
Y = AC + ABD + ABC + BD
C D
B
A Y

K-maps with Don’t Cares

C D
B
1 1 1 0 X 1 1
A Y
1 X X X X X X
X
X
X
X
X
X
X
AB
CD
Y

Example

Given F = Sm (0, 1, 2, 8, 14)

D = Sm (9, 10)

  1. Draw K-map

b

c

a

d

  1. Prime Implicants: Largest rectangles that intersect On Set but

not Off Set that correspond to product terms.

Sm (0, 1, 2, 9), Sm (0, 2, 8, 10), Sm (10, 14)

  1. Essential Primes: Prime implicants covering elements in F that

are not covered by any other primes.

Sm (0, 1, 8, 9), Sm (0, 2, 8, 10), Sm (10, 14)

  1. Min exp: Sm (0, 1, 8, 9) + Sm (0, 2, 8, 10) + Sm (10, 14)

f(a,b,c,d) = b’c’ + b’d’+ acd’

  1. Prime Implicants: Largest rectangles that intersect On Set but

not Off Set that correspond to product terms.

E.g. Sm (0, 4), Sm (0, 1), Sm (1, 3), Sm (3, 11), Sm (14, 15),

Sm (11, 15), Sm (13, 15)

  1. Essential Primes: Prime implicants covering elements in F that

are not covered by any other primes.

E.g. Sm (0, 4), Sm (14, 15)

  1. Min exp: Sm (0, 4), Sm (14, 15), ( Sm (3, 11) or Sm (1,3) )

f(a,b,c,d) = a’c’d’+ abc+ b’cd (or a’b’d)