karnaugh maps not in textbook. karnaugh maps k-maps provide a simple approach to reducing boolean...

12
Karnaugh Maps Not in textbook

Upload: kristian-walsh

Post on 17-Jan-2018

220 views

Category:

Documents


0 download

DESCRIPTION

Min Terms Canonical representation of a Boolean expression is in the form of ^ v ~ (AND, OR, NOT). – Example: A^B v ~A^~B v A^~B (AB + AB + AB) Candidates for canonical representation are taken from the truth table (input-output). Candidates are identified where the output is “1”. (Max Term canonical representation candidates are identified by “0”)

TRANSCRIPT

Page 1: Karnaugh Maps Not in textbook. Karnaugh Maps K-maps provide a simple approach to reducing Boolean expressions from a input-output table. The output from

Karnaugh Maps

Not in textbook

Page 2: Karnaugh Maps Not in textbook. Karnaugh Maps K-maps provide a simple approach to reducing Boolean expressions from a input-output table. The output from

Karnaugh Maps

• K-maps provide a simple approach to reducing Boolean expressions from a input-output table.

• The output from the table is used to fill-in the K-map.– 1’s are used to create a Sum of Product (SOP)

solution. (min terms)– 0’s are used to create a Product of Sum (POS)

solution. (max terms)

Page 3: Karnaugh Maps Not in textbook. Karnaugh Maps K-maps provide a simple approach to reducing Boolean expressions from a input-output table. The output from

Min Terms• Canonical representation of a Boolean

expression is in the form of ^ v ~ (AND, OR, NOT).– Example: A^B v ~A^~B v A^~B (AB + AB + AB)

• Candidates for canonical representation are taken from the truth table (input-output).

• Candidates are identified where the output is “1”. (Max Term canonical representation candidates are identified by “0”)

Page 4: Karnaugh Maps Not in textbook. Karnaugh Maps K-maps provide a simple approach to reducing Boolean expressions from a input-output table. The output from

Min Terms

Min terms are taken directly from the truth tables. Where ever there is a “1”for an output, F(), we note the min term value and place a “1” in the K-map corresponding to the min term value of the table.

Min term short hand is often used to replace a full input-output table. The short hand indicate the variables and the min terms that are “1”.

Example: f(A,B,C) = S (1, 5, 7)

Page 5: Karnaugh Maps Not in textbook. Karnaugh Maps K-maps provide a simple approach to reducing Boolean expressions from a input-output table. The output from

Examples

f(A,B,C) = S (0, 1, 5, 7)

Input Outputmin term A B C F(A,B,C)0 0 0 0  11 0 0 1  12 0 1 0  3 0 1 1  4 1 0 0  5 1 0 1  16 1 1 0  7 1 1 1  1

Input Outputmin term A B F(A,B)0 0 0  1 0 1  12 1 0  13 1 1  

f(A,B) = S (1, 2)

Page 6: Karnaugh Maps Not in textbook. Karnaugh Maps K-maps provide a simple approach to reducing Boolean expressions from a input-output table. The output from

K-Map Tables

• K-map tables are organized based on the number of variables. – Example: showing min terms in italic bold.

Page 7: Karnaugh Maps Not in textbook. Karnaugh Maps K-maps provide a simple approach to reducing Boolean expressions from a input-output table. The output from

K-Map Examples

~B BA\B 0 1

~A 0 1A 1 1 f(A,B) = S (0, 3)

Reducing a Boolean expression using K-map1. Identify min terms (from table or function form)2. Fill-in appropriate K-map. 3. Group min terms in largest grouping using 4-neighbor rule.

1. a min term is a number if it is either to the right, left, top, or bottom.2. K-map edges are connected as neighbors.

4. Write out the groupings as the reduced expression (circuit).

f(A,B) = ~A^~B v A^B

Page 8: Karnaugh Maps Not in textbook. Karnaugh Maps K-maps provide a simple approach to reducing Boolean expressions from a input-output table. The output from

K-Map Examples

~B BA\B 0 1

~A 0 1A 1 1

f(A,B) = S (0, 2) f(A,B) = ~B

~B BA\B 0 1

~A 0A 1 1 1

f(A,B) = S (2, 3) f(A,B) = A

~B BA\B 0 1

~A 0 1A 1 1 1

f(A,B) = S (0, 4) f(A,B) = B v A

Page 9: Karnaugh Maps Not in textbook. Karnaugh Maps K-maps provide a simple approach to reducing Boolean expressions from a input-output table. The output from

K-Map Examples

Input Outputmin term A B C F(A,B,C)0 0 0 0  11 0 0 1  12 0 1 0  3 0 1 1  4 1 0 0  5 1 0 1  16 1 1 0  7 1 1 1  1

~B ~B / C B / C BA\BC 00 01 11 10

~A 0 1 1A 1 1 1

f(A,B,C) = ~A^~B v A^C

~B ~B / C B / C BA\BC 00 01 11 10

~A 0 1 1A 1 1 f(A,B,C) = S (0, 2, 4)

f(A,B,C) = ~A^~C v ~B^~C

Page 10: Karnaugh Maps Not in textbook. Karnaugh Maps K-maps provide a simple approach to reducing Boolean expressions from a input-output table. The output from

K-Map Examples

f(A,B,C,D) = S (5, 7, 13, 15)

~C ~C / D C / D CAB\CD 00 01 11 10

~A 00

~A / B 01 1 1A / B 11 1 1A 10

f(A,B,C) = B^D

f(A,B,C,D) = S (0,1,2,3,8,9,10,11)

~C ~C / D C / D CAB\CD 00 01 11 10

~A 00 1 1 1 1~A / B 01

A / B 11

A 10 1 1 1 1

f(A,B,C) = ~B

Page 11: Karnaugh Maps Not in textbook. Karnaugh Maps K-maps provide a simple approach to reducing Boolean expressions from a input-output table. The output from

K-Map Examples

f(A,B,C,D) = S (0,1,2,8,9,10,15)

~C ~C / D C / D CAB\CD 00 01 11 10

~A 00 1 1 1~A / B 01

A / B 11 1A 10 1 1 1

f(A,B,C) = ~B^~C v ~B^~D v A^B^C^D

Page 12: Karnaugh Maps Not in textbook. Karnaugh Maps K-maps provide a simple approach to reducing Boolean expressions from a input-output table. The output from

HMWK Due 2/4

1. Build the input-output table from the following min term list of 4-variables: S (5, 7, 10, 11, 14, 15)

2. Using a K-map reduce the expression from 1 such that you minimize the number of connectives (AND, OR, NOT). Remember the answer should be in the sum of product form.