Algorithmic state machine

The algorithmic state machine (ASM) method is a method for designing finite state machines (FSMs) originally developed by Thomas E. Osborne at the University of California, Berkeley (UCB) since 1960,[1] introduced to and implemented at Hewlett-Packard in 1968, formalized and expanded since 1967 and written about by Christopher R. Clare since 1970.[2][3] It is used to represent diagrams of digital integrated circuits. The ASM diagram is like a state diagram but more structured and, thus, easier to understand. An ASM chart is a method of describing the sequential operations of a digital system.

## Contents

* 1 ASM method
* 2 ASM chart
* 3 Datapath
* 4 Detailed ASM chart
* 5 See also
* 6 References
* 7 Further reading
* 8 External links

## ASM method

The ASM method is composed of the following steps:

1. Create an algorithm, using pseudocode, to describe the desired operation of the device.
2. Convert the pseudocode into an ASM chart.
3. Design the datapath based on the ASM chart.
4. Create a detailed ASM chart based on the datapath.
5. Design the control logic based on the detailed ASM chart.

## ASM chart

An ASM chart consists of an interconnection of four types of basic elements: state name, state box, condition checks, and conditional outputs. An ASM state, represented as a rectangle, corresponds to one state of a regular state diagram or finite state machine. The Moore type outputs are listed inside the box.

State Name

State Name: The name of the state is indicated inside the circle and the circle is placed in the top left corner or the name is placed without the circle.

State box

State Box: The output of the state is indicated inside the rectangle box

Decision box used in an ASM chart

Decision Box: A diamond indicates that the stated condition/expression is to be tested and the exit path is to be chosen accordingly. The condition expression contains one or more inputs to the FSM (Finite State Machine). An ASM condition check, indicated by a diamond with one input and two outputs (for true and false), is used to conditionally transfer between two State Boxes, to another Decision Box, or to a Conditional Output Box. The decision box contains the stated condition expression to be tested, the expression contains one or more inputs of the FSM.

Conditional output box

Conditional Output Box: An oval denotes the output signals that are of Mealy type. These outputs depend not only on the state but also the inputs to the FSM.

## Datapath

Once the desired operation of a circuit has been described using RTL operations, the datapath components may be derived. Every unique variable that is assigned a value in the RTL program can be implemented as a register. Depending on the functional operation performed when assigning a value to a variable, the register for that variable may be implemented as a straightforward register, a shift register, a counter, or a register preceded by a combinational logic block. The combinational logic block associated with a register may implement an adder, subtracter, multiplexer, or some other type of combinational logic function.

## Detailed ASM chart

Once the datapath is designed, the ASM chart is converted to a detailed ASM chart. The RTL notation is replaced by signals defined in the datapath.

## See also

* Flowchart
* Drakon-chart
* Mealy machine
* Moore machine
* Map-entered variables (MEV)

## References

1. ↑ "Tom Osborne's Story in His Own Words". Steve Leibson's HP9825 page. 2004-11-11. http://www.hp9825.com/html/osborne_s_story.html.
2. ↑ Logic Design of Algorithmic State Machines. Hewlett-Packard Laboratories, USA: Hewlett-Packard. February 1971. Template:CHMID. (110 pages) [1] (NB. Several internal revisions existed in 1970 and 1971. This was later published by McGraw-Hill.[A])
3. ↑ Designing Logic Systems Using State Machines. Osborne, Thomas "Tom" E. (initial contributions) (1 ed.). Electronics Research Laboratory, Hewlett-Packard Laboratories: McGraw-Hill, Inc.. 1973. ISBN:978-0-07011120-2. ark:/13960/t9383kw8n. 79876543. ISBN 0-07011120-0. https://archive.org/details/designinglogicsystemsusingstatemachines. Retrieved 2021-02-14. (vii+114+3 pages) [2] (NB. This book is based on a 1970 Hewlett-Packard in-house document.[B])

* Sunggu Lee: Computer Design: An Example of Advanced Digital Logic Design, Prentice-Hall 2000, ISBN:0-13-040267-2.
* Sunggu Lee: Advanced Digital Logic Design: Using VHDL, State Machines, and Synthesis for FPGAs, Thomson 2006, ISBN:0-534-46602-8.
* Stephen D. Brown, Zvonko Vranesic: Fundamentals of Digital Logic with VHDL Design.
* 2nd, McGraw Hill 2004; ISBN:978-0-07-249938-4.
* 3rd, McGraw Hill 2009; ISBN:978-0-07-352953-0.
* "Flowchart Machines". BIT Numerical Mathematics (IBM Research Laboratory, San Jose, California) 10: 415–442. December 1970. doi:10.1007/BF01935563. RJ-685 (No. 13346). https://link.springer.com/article/10.1007/BF01935563.
* Digital Circuits and Logic Design. Englewood Cliffs, New Jersey, USA: Prentice-Hall. 1976.
* Multi Values LSI/VLSI Logic Design. The University of Oklahoma. 1983. https://shareok.org/bitstream/handle/11244/5200/8404568.PDF?sequence=1. Retrieved 2021-02-17.

## Further reading

* "An Algorithm for the Synthesis of Complex Sequential Networks". Computer Design (Concord, Massachusetts, USA: Computer Design Publishing Corporation) 8 (3): 49–55. March 1969. CODEN CMPDA. ISSN 0010-4566. OCLC 828863003. https://books.google.com/books?id=Uy4-AQAAIAAJ&dq="infrequent+variable"+karnaugh&focus=searchwithinvolume&q="An+Algorithm+for+the+Synthesis+of+Complex+Sequential+Networks". Retrieved 2021-02-22. (7 pages) (NB. This article caused a number of letters to the editor in subsequent issues of the magazine.)
* "To the Editor". Computer Design (Concord, Massachusetts, USA: Computer Design Publishing Corporation) 8 (5–12?): 10. 1969. CODEN CMPDA. ISSN 0010-4566. OCLC 828863003. https://books.google.com/books?redir_esc=y&id=Uy4-AQAAIAAJ&dq="infrequent+variable"+karnaugh&focus=searchwithinvolume&q=In+your+April+issue+you. "[…] In your April issue you published a letter by R. L. Dineley describing a simple method for treating product-of-sums logical expressions. […] An even simpler method is taught by D. A. Huffman. This method is based on recognizing that the Boolean expression will be zero when any of the factors in the product-of-sums form is zero. Plotting zeroes of factors on a Veitch diagram or Karnaugh map is as easy as locating ones for a sum-of-products expression. […] To illustrate, using Dineley's example (A+BC)(A+C): […] The zeroes resulting from A+BC will be located wherever both A and BC are zero. Therefore we locate on the map the expression A*BC (which is equal to A*B \+ A*C). Similarly the zeroes of A+C are located and plotted at A*C. With all zeroes located, the rest of the map can be filled with ones. One can be a little more formal and work out algebraically the logical complement of the expression under consideration and then plot zeroes for that resulting expression. In a simple product-of-sums representation, however, the complementary terms can be written by inspection; or the zeroes can be plotted by inspection without writing the complete expression […] "Classical Reduction Involving Infrequently Used Variables" October 11, 1968. University of Santa Clara […] Mr. Osborne's work draws close similarity to that I presented in this article and thus, would certainly be of interest to those readers seeking further information. I understand he has done work to apply the technique of infrequent variables to the design of sequential networks constructed from Read Only Memory. Since he has not yet published anything on this area, if readers would like additional information, they can write Mr. Osborne at: […] Thomas E. Osborne […] Building 1U […] 1501 Page Mill Road […] Palo Alto, California […] Thank you for the opportunity to publish with you. […] G. W. Schultz […] Central Data Systems, Inc. […] Sunnyvale, Calif.". (1 page) (NB. Osborne's method was later published by Clare.[B])
* Ashenhurst, Robert "Bob" Lovett, ed (1974). "Chapter 4. Interrelationships, D. Logic Design and Switching Theory, 3. The Flow Table as a Point of Departure for Design". written at IBM Corporation, San Jose, California, USA. Logic Design - A Review of Theory and Practice. ACM Monograph Series (1 ed.). New York, USA: Academic Press, Inc. - A Subsidiary of Harcourt Brace Jovanovich, Publishers. p. 149. ISBN:978-0-12-436550-6. ISBN 0-12-436550-7. https://books.google.com/books?id=sQwE8Gpsj5EC&pg=PA149. Retrieved 2021-04-17. "[…] An important contribution to the adaptation of theory to practice was made by Schultz [20]; he draws upon the designer's basic understanding of the problem and requires him to identify the "infrequent variables." Loosely defined, these variables do not relate to all internal states, i.e., they are not needed to define every state. In essence, the infrequent variables are relevant to only a few (perhaps one or two) states or state transitions. Schultz suggests that the designer first translate the verbal problem to a state transition graph that is reduced. The internal states are encoded and then information regarding infrequent variables is added to the appropriate state transitions. A "first approximation" to flip-flop input equations is made, based only upon the frequent variables. Schultz demonstrates how these equations can subsequently be modified to incorporate transitions controlled by the infrequent variables. In Schultz's examples the infrequent variables are all input signals, but this idea also applies to internal state variable signals that may be considered "infrequent." In this case, for example, an infrequent internal state variable flip-flop might be set by a particular circumstance and reset sometime later. The output of the flip-flop may now be treated as an infrequent input variable. […]" (ix+1+179+3 pages)

## External links

* Brief Introduction to ASM Charts
* ASM++: a modern Algorithmic State Machine methodology for RTL designs

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Algorithmic state machine. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Algorithmic_state_machine&oldid=2894092"