33
Copyright © The McGraw-Hill Companies, Inc. 8-0 Chapter 8 Algorithmic State Machines

ASM

Embed Size (px)

Citation preview

Page 1: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-0

Chapter 8

Algorithmic State Machines

Page 2: ASM

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Partitioning of a digital system.

Figure 8.1

8-1

Page 3: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-2

Model of an algorithmic state machine.

Figure 8.2

Page 4: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-3

Timing of an algorithmic state machine.

Figure 8.3

Page 5: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-4

The state box.

Figure 8.4

Page 6: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-5

The decision box. (a) Symbol. (b) Alternate symbol.

Figure 8.5

Page 7: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-6

The conditional output box.

Figure 8.6

Page 8: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-7

Example of an ASM block and its link paths.

Figure 8.7

Page 9: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-8

Two equivalent ASM blocks.

Figure 8.8

Page 10: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-9

Two equivalent ASM blocks. (a) Using a single decision box. (b) Using several decision boxes.

Figure 8.9

Page 11: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-10

Two equivalent ASM books blocks. (a) Parallel decision boxes. (b) Serial decision boxes.

Figure 8.10

Page 12: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-11

Invalid ASM block having nonunique next states.

Figure 8.11

Page 13: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-12

Looping. (a) Incorrect. (b) Correct.

Figure 8.12

Page 14: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-13

ASM chart for a mod-8 binary counter.

Figure 8.13

Page 15: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-14

ASM chart for a mod-8 binary up-down counter.

Figure 8.14

Page 16: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-15

Moore sequential network. (a) State diagram. (b) ASM chart.

Figure 8.15

Page 17: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-16

Mealy sequential network. (a) State diagram. (b) ASM chart.

Figure 8.16

Page 18: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-17

ASM chart to recognize the sequence x1x2 = 01,01,11,00.

Figure 8.17

Page 19: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-18

Binary multiplication. (a) Pencil-and-paper approach. (b) Add-shift approach.

Figure 8.18

Page 20: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-19

Architecture for a binary multiplier.

Figure 8.19

Page 21: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-20

ASM chart for a binary multiplier.

Figure 8.20

Page 22: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-21

An ASM chart.

Figure 8.21

Page 23: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-22

A minimum state locus assignment for the ASM chart of Fig. 8.21. (a) State-assignment map. (b) State locus.

Figure 8.22

Page 24: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-23

Karnaugh map for simplifying the function of Table 8.1b.

Figure 8.23

1Q

Page 25: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-24

Discrete-gate realization with clocked D flip-flops for the ASM chart of Fig. 8.21.

Figure 8.24

Page 26: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-25

Using variable-entered Karnaugh maps to obtain a discrete-gate realization with clocked D flip-flops for the ASM chart of Fig. 8.21.

Figure 8.25

Page 27: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-26

Using variable-entered Karnaugh maps to obtain a discrete-gate realization with clocked JK flip-flops for the ASM chart of Fig. 8.21.

Figure 8.26

Page 28: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-27

Assignment of inputs to a multiplexer for each excitation and output function.

Figure 8.27

Page 29: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-28

Multiplexer realization with clocked D flip-flops for the ASM chart of Fig. 8.21.

Figure 8.28

Page 30: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-29

Structure of a PLA realization for an ASM.

Figure 8.29

Page 31: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-30

PLA realization with clocked D flip-flops for the ASM chart of Fig. 8.21.

Figure 8.30

Page 32: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-31

Fragments of ASM charts illustrating problems associated with asynchronous inputs. (a) Transition race. (b) Output race.

Figure 8.31

Page 33: ASM

Copyright © The McGraw-Hill Companies, Inc.

8-32

Using a clocked D flip-flop to synchronize an asynchronous input.

Figure 8.32