Docsity

Understanding Karnaugh Maps: A Graphical Tool for Simplifying Boolean Functions, Lecture notes of Technology

Toggle sidebar
bg1
Overview
°K-maps: an alternate approach to representing Boolean
functions
°K-map representation can be used to minimize Boolean
functions
°Easy conversion from truth table to K-map to
minimized SOP representation.
°Simple rules (steps) used to perform minimization
°Leads to minimized SOP representation.
•Much faster and more more efficient than previous minimization
techniques with Boolean algebra.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21

Partial preview of the text

Download Understanding Karnaugh Maps: A Graphical Tool for Simplifying Boolean Functions and more Lecture notes Technology in PDF only on Docsity!

Overview

° K-maps: an alternate approach to representing Boolean

functions

° K-map representation can be used to minimize Boolean

functions

° Easy conversion from truth table to K-map to

minimized SOP representation.

° Simple rules (steps) used to perform minimization

° Leads to minimized SOP representation.

  • Much faster and more more efficient than previous minimization

techniques with Boolean algebra.

Overview

° Karnaugh maps with four inputs

  • Same basic rules as three input K-maps

° Understanding prime implicants

  • Related to minterms

° Covering all implicants

° Using Don’t Cares to simplify functions

  • Don’t care outputs are undefined

° Summarizing Karnaugh maps

Karnaugh Maps

° A Karnaugh map is a graphical tool for assisting in the

general simplification procedure.

° Two variable maps.

A

B

F=AB +A’B

A

B

° Three variable maps.

A

BC

F=AB’C’ +AB C +ABC +ABC  + A’B’C + A’BC’

F=AB +AB +AB 

A B C F

+^1 1 1

Rules for K-Maps

 We can reduce functions by circling 1’s in the K-map

 Each circle represents minterm reduction

 Following circling, we can deduce minimized and-or

form.

Rules to consider

Every cell containing a 1 must be included at least

once.

The largest possible “power of 2 rectangle” must be

enclosed.

The 1’s must be enclosed in the smallest possible

number of rectangles.

Example

Karnaugh maps

° Numbering scheme based on Gray–code

  • e.g., 00, 01, 11, 10
  • Only a single bit changes in code for adjacent map cells
  • This is necessary to observe the variable transitions 00 01

AB

C

C

B

A

F(A,B,C) = m(0,4,5,7)

G(A,B,C) =

0 0 0 0 1 1 C 1 1 B

A

1 0 0 0 0 1 C 1 1 B

A

A

= AC + B’C’

More Karnaugh Map Examples

° Examples

g = b'

a

b

c

ab

a

b

c

ab

f = a

cout = ab + bc + ac

f = a

1. Circle the largest groups possible.

2. Group dimensions must be a power of 2.

3. Remember what circling means!

Application of Karnaugh Maps: The One-bit Adder

Adder

Cin

Cout

S

B

A

A B Cin S Cout 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 +^1 1 1 1

Karnaugh Map for Cout

Now we have to cover all the 1s in the

Karnaugh Map using the largest

rectangles and as few rectangles

as we can.

A

B

Cin

A

B

Cin

Application of Karnaugh Maps: The One-bit Adder

Adder

Cin

Cout

S

B

A

A B Cin S Cout 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 +^1 1 1 1

Karnaugh Map for Cout

Now we have to cover all the 1s in the

Karnaugh Map using the largest

rectangles and as few rectangles

as we can.

Cout = ACin

A

B

Cin

Application of Karnaugh Maps: The One-bit Adder

Adder

Cin

Cout

S

B

A

A B Cin S Cout 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 +^1 1 1 1

Karnaugh Map for Cout

Now we have to cover all the 1s in the

Karnaugh Map using the largest

rectangles and as few rectangles

as we can.

Cout = ACin + AB + BCin

A

B

Cin

Application of Karnaugh Maps: The One-bit Adder

Adder

Cin

Cout

S

B

A

A B Cin S Cout 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 +^1 1 1 1

Karnaugh Map for S

S = A’BCin’

A

B

Cin

Application of Karnaugh Maps: The One-bit Adder

Adder

Cin

Cout

S

B

A

A B Cin S Cout 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 +^1 1 1 1

Karnaugh Map for S

S = A’BCin’ + A’B’Cin + ABCin

A

B

Cin

Application of Karnaugh Maps: The One-bit Adder

Adder

Cin

Cout

S

B

A

A B Cin S Cout 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 +^1 1 1 1

Karnaugh Map for S

S = A’BCin’ + A’B’Cin + ABCin + AB’Cin’

No Possible Reduction!

Can you draw the circuit diagrams?

C + B’D’

Solution set can be considered as a coordinate

System!

Karnaugh map: 4-variable example

° F(A,B,C,D) = m(0,2,3,5,6,7,8,10,11,14,15)

F =

D

A

B

A

B

C

D

1 0 0 1 0 1 0 0 1 1 1 1 1 1 1 1

C

+ A’BD

A' B' D + A' C + B' C D

B C' D' + A C' + A B D'

LT =

EQ =

GT =

K-map for LT K-map for GT

Design examples

0 0 1 0 0 0 0 0 D

A

1 1 1 1 0 1 0 0 B

C

K-map for EQ

1 0 0 1 0 0 0 0 D

A

0 0 0 0 1 0 0 1 B

C

0 1 0 0 1 1 1 1 D

A

0 0 0 0 0 0 1 0 B

C

Can you draw the truth table for these examples?

A'B'C'D' + A'BC'D + ABCD + AB'CD’