Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic...

45
Chapter 8 Optimized Implementation of Logic Circuits

Transcript of Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic...

Page 1: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Chapter 8

Optimized Implementation of Logic Circuits

Page 2: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.1. Implementation in a CPLD.

Page 3: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.2. Using three LUTs after factoring.

Page 4: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.3. Using four-input AND gates to realize a seven-input product term.

7 inputs

Page 5: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.4. A factored circuit.

x 6

x 4

x 1

x 5

x 2

x 3

x 2

x 3

x 5

Page 6: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.5. Circuit for Example 8.1.

x 1

x 2

x 3

x 4

f 1

f 2

Page 7: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.6. The function for Example 8.2.

Page 8: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.7. Subfunctions used in decomposition.

Page 9: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.8. Decomposition for Example 8.3.

Page 10: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.9. Implementation of XOR.

Please see “portrait orientation” PowerPoint file for Chapter 8

Page 11: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.10. Conversion to a NAND-gate circuit.

Please see “portrait orientation” PowerPoint file for Chapter 8

Page 12: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.11. Conversion to a NOR-gate circuit.

Please see “portrait orientation” PowerPoint file for Chapter 8

Page 13: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.12. Circuit for Example 8.6.

Page 14: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

x 1

x 2 x 5

x 4

f x 3

P 1

P 4

P 5

P 6 P 8

P 2

P 3

P 9

P 10

P 7

Figure 8.13. Circuit for Example 8.7.

Page 15: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.14. Circuit for Example 8.8.

Please see “portrait orientation” PowerPoint file for Chapter 8

Page 16: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.15. Circuit for Example 8.9.

2

Page 17: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.16. Representation of f (x1, x2) = Σ m(1, 2, 3).

x 1

0 0 1 1

0 1 0 1

f

0 1 1 1

01

00

11

10

x 2

x 1

x1

1x

x 2

Page 18: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.17. Representation of f (x1, x2, x3) = Σ m(0, 2, 4, 5, 6).

Page 19: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.18. Representation of f 3 from Figure 2.54.

Page 20: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.19. Derivation of a binary decision diagram (BDD).

Page 21: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.20. BDDs for the AND and OR functions.

Page 22: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.21. Derivation of BDDs for XOR functions.

Page 23: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.22. Derivation of BDDs for f = x1 + x2 x3.

Page 24: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.23. Reordering the nodes in a BDD.

Page 25: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.24. Derivation of a BDD for the function in Example 8.11.

Page 26: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

0 0 0 0 0

0 1 0 0 1 0 0 0

1 0 1 0 1 1 0 0

1 0 1 1 1 1 0 1

1 1 1 1

4 8

1012

1113

15

0,4 0 x 0 0 x 0 0 0

1 0 x 0 x 1 0 0 1 x 0 0

1 0 1 x 1 1 0 x

1 1 x 1

0,8

8,104,128,12

10,11 12,13

13,15 1 x 1 1 11,15

0,4,8,12 x x 0 0

List 1 List 2 List 3

Figure 8.25. Generation of prime implicants for the function in Figure 2.58.

Page 27: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.26. Selection of a cover for the function in Figure 2.58.

Please see “portrait orientation” PowerPoint file for Chapter 8

Page 28: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

0 0 0 0 0

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

0 1 0 1

0 1 1 1 1 1 0 1

1 1 1 1

1 2 8

5

7 13

15

0,1 0 0 0 x 0 0 x 0 x 0 0 0

0 x 0 1 0 x 1 0 x 0 0 1 1 0 0 x

1 1 x 1

0,2 0,8

1,5 2,6 1,9 8,9

13,15 x 1 1 1 7,15

0,1,8,9 x 0 0 x

List 1 List 2 List 3

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

6 9

121 x 0 0 8,12

0 1 x 1 0 1 1 x x 1 0 1 1 x 0 1

5,7 6,7

5,139,13

1 1 0 x 12,13

1,5,9,13 x x 0 1 8,9,12,13 1 x 0 x

5,7,13,15 x 1 x 1

Figure 8.27. Generation of prime implicants for the function in Example 8.12.

Page 29: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.28. Selection of a cover for the function in Example 8.12.

Please see “portrait orientation” PowerPoint file for Chapter 8

Page 30: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.29. Selection of a cover for the function in Example 8.13.

Please see “portrait orientation” PowerPoint file for Chapter 8

Page 31: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.30. The coordinate *-operation.

o o 0 0 1 1 1 0 x

1 0 x B i A i

0 1 x

A i B i *

Page 32: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.31. The coordinate #-operation.

o

0 1

1 0 x B i A i

0 1 x

A i B i # ε ε

ε ε

ε

o

Page 33: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.32. The function for Example 8.18.

1 x 2 x 3 x 4 00 01 11 10

1

1 1 1

1 1

00

01

11

10

x 1 x 2 x 3 x 4 00 01 11 10

d 1

1

d

d

1 1

00

01

11

10

1

x 5 0 = x 5 1 =

d

x

Page 34: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.33. The function in Example 8.19.

Page 35: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.34. The function for Example 8.20.

Page 36: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.35. The BDD for Example 8.21.

Page 37: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.36. Reordering the BDD in Figure 8.35.

Page 38: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.37. The BDD for Example 8.22.

Page 39: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.38. Generation of prime implicants for the function in Example 8.23.

Page 40: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.39. Selection of a cover for the function in Example 8.23.

Page 41: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.40. Circuit for Example 8.26.

Page 42: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure 8.41. A possible format for truth tables of seven-variable functions.

Page 43: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure P8.1. Expansion of implicant x1x2x3.

x2x3 x1x3 x1x2

x3 x2 x3 x1 x2 x1

x1x2x3

NONONONO

Page 44: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure P4.2. Circuit for problem 4.33.

Please see “portrait orientation” PowerPoint file for Chapter 4

Page 45: Chapter 8 Optimized Implementation of Logic Circuitskalla/ECE3700/verlogic3_chapter8.pdf · Logic Circuits. Figure 8.1. ... 4 8 10 12 11 13 15 0,4 0 x 0 0 x 0 0 0 1 0 x 0 ... Please

Figure P4.3. Circuit for problem 4.34.

Please see “portrait orientation” PowerPoint file for Chapter 4