plotting functions not in canonical form

24
Plotting functions not in canonical form •Plot the function f(a, b, c) = a + bc ab a ab c 00 01 11 10 c 00 01 11 10 0 1 1 0 0 2 6 4 1 1 1 1 1 1 3 7 5 b The squares are numbered – derive the canonical form

Upload: desma

Post on 06-Feb-2016

29 views

Category:

Documents


0 download

DESCRIPTION

Plotting functions not in canonical form. Plot the function f(a, b, c) = a + bc ab a ab c 00 01 11 10 c 00 01 11 10 0 1 1 0 0 2 6 4 - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Plotting functions not in canonical form

Plotting functions not in canonical form

• Plot the function f(a, b, c) = a + bc

ab a abc 00 01 11 10 c 00 01 11 10 0 1 1 0 0 2 6 4 1 1 1 1 1 1 3 7 5

bThe squares are numbered – derive the

canonical form

Page 2: Plotting functions not in canonical form

5-variable K-maps - alternative

001110 01

00

01

11

10

00

01

11

10

00 11 10010 1 3

4 5

12 13 15

8 9

2

7 6

14

11 10

18 19 17

22 23

30 31 29

26 27

16

21 20

28

25 24

0

1

Page 3: Plotting functions not in canonical form

6-variable K-maps - alternative

40 41 43

44 45

36 37 39

32 33

42

47 46

38

35 34

00

01

11

10

00 11 10010 1 3

4 5

12 13 15

8 9

2

7 6

14

11 10

001110 01

00

01

11

10

18 19 17

22 23

30 31 29

26 27

16

21 20

28

25 24

10

11

01

0000 11 1001 001110 01

10

11

01

00

62 63 61

58 59

54 55 53

50 51

60

57 56

52

49 48

00

10

01

11

Page 4: Plotting functions not in canonical form

Simplifying functions using K-maps

• Why is simplification possible– Logically adjacent minterms are physically adjacent

on the K-map– Adjacent minterms can be combined by eliminating

the common variable• abc and ābc are adjacent• abc + ābc = bc variable a eliminated

• Done by drawing on the map a ring around the terms that can be combined

Page 5: Plotting functions not in canonical form

Simplifying functions using K-maps

Page 6: Plotting functions not in canonical form

Simplifying functions using K-maps

Page 7: Plotting functions not in canonical form

Simplifying functions using K-maps• Definition of terms

– Implicant product term that can be used to cover minterms

– Prime implicant implicant not covered by any other implicant

– Essential prime implicant a prime implicant that covers at least one minterm not covered by any other prime implicant

– Cover set of prime implicants that cover each minterm of the function

• Minimizing a function finding the minimum cover

Page 8: Plotting functions not in canonical form

Simplifying functions using K-maps• Definition of terms

– Implicants:

Page 9: Plotting functions not in canonical form

Simplifying functions using K-maps• Definition of terms

– Prime implicants: only B and AC– Essential prime implicants: B and AC– Cover: { B, AC }

Page 10: Plotting functions not in canonical form

Simplifying functions using K-maps

• Definition of terms– Implicate sum term that can be used to cover

maxterms (0’s on the K-map)– Prime implicate implicate not covered by any

other implicate– Essential prime implicate a prime implicate that

covers at least one maxterm not covered by any other prime implicate

– Cover set of prime implicates that cover each maxterm of the function

Page 11: Plotting functions not in canonical form

Simplifying functions using K-maps• Algorithm 1:

– Fast and easy, not optimal

Page 12: Plotting functions not in canonical form

Simplifying functions using K-maps• Algorithm 2:

– More work than the first– Can give better results, because all prime

implicants are considered– Still not optimal

Page 13: Plotting functions not in canonical form

Simplifying functions using K-maps• Algorithm 2:

1: Identify all PIs

Page 14: Plotting functions not in canonical form

Simplifying functions using K-maps• Algorithm 2:

2: Identify EPIs

Page 15: Plotting functions not in canonical form

Simplifying functions using K-maps• Algorithm 2:

3: Select cover

Page 16: Plotting functions not in canonical form

The Quine-McCluskey minimization method

• Tabular• Systematic• Can handle a large number of variables• Can be used for functions with more than one

output

Page 17: Plotting functions not in canonical form

The Q-M minimization method

Page 18: Plotting functions not in canonical form

The Q-M minimization method

Page 19: Plotting functions not in canonical form

The Q-M minimization method

Page 20: Plotting functions not in canonical form

The Q-M minimization method– Combine minterms from List 1 into pairs in List 2

• Take pairs from adjacent groups only, that differ in 1 bit

– Combine entries from List 2 into pairs in List 3

Page 21: Plotting functions not in canonical form

The Q-M minimization method

Page 22: Plotting functions not in canonical form

The Q-M minimization method

Page 23: Plotting functions not in canonical form

The Q-M minimization method

Page 24: Plotting functions not in canonical form

The Q-M minimization method