The algorithmic state machine (ASM) is a method for designing
finite-state machine
A finite-state machine (FSM) or finite-state automaton (FSA, plural: ''automata''), finite automaton, or simply a state machine, is a mathematical model of computation. It is an abstract machine that can be in exactly one of a finite number o ...
s (FSMs) originally developed by
Thomas E. Osborne at the
University of California, Berkeley
The University of California, Berkeley (UC Berkeley, Berkeley, Cal, or California), is a Public university, public Land-grant university, land-grant research university in Berkeley, California, United States. Founded in 1868 and named after t ...
(UCB) since 1960,
introduced to and implemented at
Hewlett-Packard
The Hewlett-Packard Company, commonly shortened to Hewlett-Packard ( ) or HP, was an American multinational information technology company. It was founded by Bill Hewlett and David Packard in 1939 in a one-car garage in Palo Alto, California ...
in 1968, formalized and expanded since 1967 and written about by Christopher R. Clare since 1970.
It is used to represent diagrams of digital
integrated circuit
An integrated circuit (IC), also known as a microchip or simply chip, is a set of electronic circuits, consisting of various electronic components (such as transistors, resistors, and capacitors) and their interconnections. These components a ...
s. The ASM diagram is like a
state diagram
A state diagram is used in computer science and related fields to describe the behavior of systems. State diagrams require that the system is composed of a finite number of states. Sometimes, this is indeed the case, while at other times this i ...
but more structured and, thus, easier to understand. An ASM chart is a method of describing the sequential operations of a digital system.
ASM method
The ASM method is composed of the following steps:
:''1''. Create an algorithm, using ''
pseudocode
In computer science, pseudocode is a description of the steps in an algorithm using a mix of conventions of programming languages (like assignment operator, conditional operator, loop) with informal, usually self-explanatory, notation of actio ...
'', to describe the desired operation of the device.
:''2''. Convert the
pseudocode
In computer science, pseudocode is a description of the steps in an algorithm using a mix of conventions of programming languages (like assignment operator, conditional operator, loop) with informal, usually self-explanatory, notation of actio ...
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, decision box, and conditional outputs box. An ASM state, represented as a rectangle, corresponds to one state of a regular state diagram or finite-state machine. The
Moore
Moore may refer to:
Language
* Mooré language, spoken in West Africa
People
* Moore (surname)
** List of people with surname Moore
* Moore Crosthwaite (1907–1989), a British diplomat and ambassador
* Moore Disney (1765–1846), a senior ...
type outputs are listed inside the box.

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: The output of the state is indicated inside the rectangle box

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. 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: An oval denotes the output signals that are of
Mealy Mealy may refer to:
* Mealy Mountains, Newfoundland and Labrador, Canada
** Mealy Mountains National Park Reserve
* Darlene Mealy (active from 2006), American politician in New York City
* Dean Mealy (1915-1973), American basketball player.
* ...
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
RTL may refer to:
Media
* RTL Group, a European TV, radio, and production company
*** List of RTL Group's television stations (including part-owned channels)
*** List of RTL Group's radio stations
** RTL Lëtzebuerg, usually referred to simply a ...
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, subtractor, 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
RTL may refer to:
Media
* RTL Group, a European TV, radio, and production company
*** List of RTL Group's television stations (including part-owned channels)
*** List of RTL Group's radio stations
** RTL Lëtzebuerg, usually referred to simply a ...
notation is replaced by signals defined in the datapath.
See also
*
Flowchart
A flowchart is a type of diagram that represents a workflow or process. A flowchart can also be defined as a diagrammatic representation of an algorithm, a step-by-step approach to solving a task.
The flowchart shows the steps as boxes of v ...
*
Drakon-chart
DRAKON () is a free and open source algorithmic visual programming and modeling language developed as part of the defunct Soviet Union Buran space program in 1986 following the need in increase of software development productivity. The v ...
*
Mealy machine
In the theory of computation, a Mealy machine is a finite-state machine whose output values are determined both by its current state and the current inputs. This is in contrast to a Moore machine, whose output values are determined solely by its cu ...
*
Moore machine
In the theory of computation, a Moore machine is a finite-state machine whose current output values are determined only by its current state. This is in contrast to a Mealy machine, whose output values are determined both by its current state an ...
*
Map-entered variables (MEV)
References
Further reading
* (xiv+418 pages)
*
*
*
**
**
*
*
*
* (7 pages) (NB. This article caused a number of letters to the editor in
subsequent issues of the magazine.)
* (1 page) (NB. Osborne's method was later published by Clare.)
* {{cite book , title=Logic Design - A Review of Theory and Practice , chapter=Chapter 4. Interrelationships, D. Logic Design and Switching Theory, 3. The Flow Table as a Point of Departure for Design , author-first=Glen G. , author-last=Langdon, Jr. , location=IBM Corporation, San Jose, California, USA , editor-first=Robert "Bob" Lovett , editor-last=Ashenhurst , editor-link=:d:Q102124175 , date=1974 , edition=1 , series=ACM Monograph Series , publisher=
Academic Press, Inc. - A Subsidiary of
Harcourt Brace Jovanovich, Publishers , publication-place=New York, USA , isbn=0-12-436550-7 , lccn=73-18988 , issn=0572-4252 , page=149 , chapter-url=https://books.google.com/books?id=sQwE8Gpsj5EC&pg=PA149 , access-date=2021-04-17 , url-status=live , archive-url=https://web.archive.org/web/20210417063924/https://books.google.de/books?id=sQwE8Gpsj5EC&pg=PA149 , archive-date=2021-04-17 , quote-page=149 , quote=
��An important contribution to the adaptation of theory to practice was made by Schultz
">0 he draws upon the designer's basic understanding of the problem and requires him to identify the "
infrequent variables
Logic optimization is a process of finding an equivalent representation of the specified logic circuit under one or more specified constraints. This process is a part of a logic synthesis applied in digital electronics and integrated circuit d ...
." 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 ChartsASM++: a modern Algorithmic State Machine methodology for RTL designs
Computer engineering
Electronic design automation