Richard F. Tinder - Asynchronous Sequential Machine Design and Analysis_ a Comprehensive Development of the Design and Analysis of Clock-Independent (2009, Morgan and Claypool Publishers) [10.2200_S00160ED1V01Y2008
Richard F. Tinder - Asynchronous Sequential Machine Design and Analysis_ a Comprehensive Development of the Design and Analysis of Clock-Independent (2009, Morgan and Claypool Publishers) [10.2200_S00160ED1V01Y2008
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in
any form or by any means—electronic, mechanical, photocopy, recording, or any other except for brief quotations in
printed reviews, without the prior permission of the publisher.
Asynchronous Sequential Machine Design and Analysis: A Comprehensive Development of the Design and
Analysis of Clock-Independent State Machines and Systems
Richard F. Tinder
www.morganclaypool.com
DOI: 10.2200/S00160ED1V01Y200811DCS018
Lecture #18
Series ISSN
ISSN 1932-3166 print
ISSN 1932-3174 electronic
Asynchronous Sequential
Machine Design and Analysis
A Comprehensive Development of the Design
and Analysis of Clock-Independent State
Machines and Systems
Richard F. Tinder
Professor Emeritus of Electrical Engineering and Computer Science,
Washington State University
ABSTRACT
Asynchronous Sequential Machine Design and Analysis provides a lucid, in-depth treatment of asyn-
chronous state machine design and analysis presented in two parts: Part I on the background fun-
damentals related to asynchronous sequential logic circuits generally, and Part II on self-timed
systems, high-performance asynchronous programmable sequencers, and arbiters.
Part I provides a detailed review of the background fundamentals for the design and analysis of
asynchronous finite state machines (FSMs). Included are the basic models, use of fully documented
state diagrams, and the design and characteristics of basic memory cells and Muller C-elements.
Simple FSMs using C-elements illustrate the design process. The detection and elimination of tim-
ing defects in asynchronous FSMs are covered in detail. This is followed by the array algebraic ap-
proach to the design of single-transition-time machines and use of CAD software for that purpose,
one-hot asynchronous FSMs, and pulse mode FSMs. Part I concludes with the analysis procedures
for asynchronous state machines.
Part II is concerned mainly with self-timed systems, programmable sequencers, and arbiters. It
begins with a detailed treatment of externally asynchronous/internally clocked (or pausable) systems
that are delay-insensitive and metastability-hardened. This is followed by defect-free cascadable
asynchronous sequencers, and defect-free one-hot asynchronous programmable sequencers—their
characteristics, design, and applications. Part II concludes with arbiter modules of various types,
those with and without metastability protection, together with applications.
Presented in the appendices are brief reviews covering mixed-logic gate symbology, Boolean
algebra, and entered-variable K-map minimization. End-of-chapter problems and a glossary of
terms, expressions, and abbreviations contribute to the reader’s learning experience. Five productiv-
ity tools are made available specifically for use with this text and briefly discussed in the Preface.
Keywords
asynchronous, sequential, sequencers, logic, machines, digital, self-timed, arbiters
Contents
Preface........................................................................................................................ ix
Acknowledgments........................................................................................................ xi
Endnotes.................................................................................................................. 201
I. General Background Directly Supporting Material
in this Text........................................................................................................ 201
II. Alternative Approaches to Asynchronous State Machine Design
and Analysis...................................................................................................... 201
III. Important Historical Contributions to Asynchronous
Circuit Synthesis.............................................................................................. 201
IV. Sources Related to the Subject of EAIC Systems Discussed
in this Text........................................................................................................ 202
Preface
This text emphasizes the design and analysis of a variety of asynchronous sequential machines and
high-performance asynchronous programmable sequencers presented in a hands-on and in-depth
manner. As background to this, we devote considerable effort in developing the basic models, the
use of fully documented state diagrams, and the associated rules and algorithms needed to carry
out rather complex designs and analyses. The analysis and elimination of the timing defects, those
exclusively owned by asynchronous sequential machines, are an important part of the background
fundamentals developed in this text. We also emphasize the use of Muller C-elements, which oper-
ate outside of the fundamental mode, and use them in various different design approaches.
Inclusion of asynchronous systems in modern computer, microprocessor, and application-
specific integrated circuit chip designs have become a reality. With the advent of picosecond com-
plementary metal-oxide semiconductor (CMOS) technology, reliable high-speed asynchronous
performance is now a reality. We combine the use of asynchronous and locally clocked controller
systems, thereby offering an attractive alternative to conventional synchronous systems. This is ac-
complished in such a manner as to eliminate clock skew and improve reliability while operating
with a significant reduction in the power-delay product. Moreover, we develop the use of cascad-
able asynchronous programmable sequencers that can be made reprogrammable during operation,
permitting instantaneous changes between radically different asynchronous state machines on a
time-shared basis, all timing-defect-free. Included is the development of a variety of arbiters that
can be used with both Huffman and Muller controller/data-path frameworks.
The contents of this text are based on the author’s lecture notes used in a graduate course
taught over many years at Washington State University to graduate students and second-semester
seniors in electrical and computer engineering. The text is designed to be used as a one-semester
or two-quarter course in the subject matter. It also serves as a valuable source of information for
practicing engineers and computer scientists in related fields. Although the text provides the neces-
sary background in asynchronous sequential machine design and analysis, the readership is expected
to have had a beginning course in logic design and some knowledge of basic Boolean algebra and
K-map minimization. Every effort is made to take this complex subject matter and present it in a
manner that can be understood by a readership consisting of individuals of varying backgrounds.
asynchronous Sequential machine design and analysis
An instructor of a course in this subject matter is provided ample opportunity to limit, alter, or ex-
pound on any part of the text material as needed to satisfy the course description and needs of the
students. In this regard, the use of Very High Speed IC Hardware Description Language (VHDL)
or Verilog for purposes of circuit representation and simulation is encouraged. However, space limi-
tation prohibits their development in this text. End-of-chapter problems and a glossary of terms,
expressions, abbreviations, and symbols at the end of the text aid in the learning process.
A word to the readership: Due to space limitations, the information and developments found
in this text are presented in a thoughtful but succinct manner requiring careful reading. To assist in
the learning process, each subject is accompanied by the appropriate state diagrams, logic schemat-
ics, simulations, and Boolean functions as needed for clarity and emphasis. Numerous tables also
contribute in this regard.
xi
Acknowledgments
The author is deeply indebted to the many senior and graduate students for their countless sug-
gestions, contributions, comments, and arguments given during the many years the content of this
text were used in the conduct of the author’s graduate level course at Washington State University.
As most professors know, students can and do provide the most candid and critical assessments of
material presented in a given course. Such involvement has definitely enhanced the pedagogy of this
book’s subject matter. In this regard, the graduate student research contributions of Anders Boen,
Shawn Galiher, Hani Khalil, Rick Klaus, Thomas Kovacs, Gerald Murphy, and William VanScheik
are gratefully acknowledged. The author also acknowledges the insight and suggestions of Prof.
Mark Manwaring, formerly professor of Computer Engineering at Brigham Young University and
now chairman of Computer Science at the University of Idaho. Dr. Manwaring, as conference chair,
provided the author with the opportunity to present some of the text material at the First Annual
David C. Evans Computer Engineering Conference held in Salt Lake City, Utah, on June 3–4,
2002. The author would also like to acknowledge the useful discussions with Prof. Chris J. Myers
of the University of Utah. A debt of gratitude must be attributed to Prof. George LaRue of Wash-
ington State University for his help with the SPICE study involving possible metastable conditions
in Muller C-elements.
The encouragement and helpful suggestions offered by Joel Claypool, publisher of Morgan
& Claypool Publishers, is also gratefully acknowledged. Finally and most importantly, the author
wishes to acknowledge the support, care, and understanding of his loving wife, best friend, and
confidante, Gloria.
xiii
Students and faculty alike will find these five productivity tools highly useful, if not essential, in
solving many end-of-chapter problems that appear in this text. Complete instructions accompany
each software program as a Readme_<software name>.doc WORD file. All of the software de
scribed below, except the EXL-Sim simulator, require the use of a text editor and can be downloaded
from http://www.exlsim.com cost free. The student version of EXL-Sim used in this text can be
purchased from this website at nominal cost.
(1) EXL-Sim logic simulator. EXL-Sim is a full-feature, interactive, schematic-capture, and simula-
tion program that is ideally suited for use with this text at either the entry or advanced level of logic
design. It is the student version of a more powerful professional-level program. Its many features
include a complete library of mixed logic gate symbols, Muller C-elements with or without CLEAR
and user-defined delay and buffer symbols; drag-and-drop capability, part rotation and mirroring,
circuit and part duplication, rubber banding, mixed-logic or positive logic simulations (positive
logic waveforms mimic those of voltage waveforms); multiple levels of macro generation; individual
input, gate, and global delay assignments, a wireless connection feature that eliminates the need
to use wire connections and minimizes error; labeling, editing, sizing, and zooming of schemat-
ics; waveform interactive editing, zooming, scrolling, animation, and stepping; library and project
management; a variety of export and printout capabilities; and a host of other features including
preferences for default settings. Check http://www.exlsim.com for updates and announcements.
Note on the schematic captures and simulations of EXL-Sim used in this text: Many of the logic
schematics and labels have been produced by using a graphics program so as to bring the symbology
in agreement with that used in other parts of the text. For example, EXL-Sim cannot produce sub-
scripts but the graphics program can, and subscripts are used in the text. However, there are many
other schematics that have been imported into WORD as produced by EXL-Sim. We normally do
so to distinguish between the two methods. The simulations are precisely that produced by EXL-
Sim but the labels are usually done by the graphics program before importing them into WORD.
xiv Asynchronous Sequential Machine Design and Analysis
For some simulations, there are additional labels needed for clarification that had to be added by the
graphics program and superimposed on the waveforms.
Note on the use of gate path delays: For simplicity, we have used the same path delays for
all gates throughout most of the text. However, we could have modeled them close to each physi-
cal gate or used random delays, although these added features did not seem to add any significant
advantages in conveying the information to the reader.
(2) BOOZER logic minimizer. BOOZER is a software minimization tool that is recommended for
use with this text. It accepts entered variable or canonical (1’s and 0’s) data from K-maps or truth
tables, with or without “don’t cares,” and returns an optimal or near-optimal single or multioutput
solution. It can handle up to 12 Boolean function outputs and as many inputs when used on modern
computers.
(3) ESPRESSO II logic minimizer. ESPRESSO II is another software minimization tool that is in
wide use in schools and industry. It supports advanced heuristic algorithms for minimization of
two-level, multioutput Boolean functions, but accepts canonical data only. It is also readily available
from the University of California, Berkeley, 1986 VLSI Tools Distribution.
machines driven by either PLDs or RAM. The input file is that of a next-state table, for the de-
sired state machine, taken from a state diagram or state table. This software can be used to design
systems with the capability of instantly switching between several radically different controllers on
a time-shared basis and all defect-free. An optional essential hazard analysis is provided for each
one-hot design.
P A rt I
chapter 1
There are, of course, other characteristics exclusively attributed to asynchronous FSMs, and these
will become evident as we consider in detail the intricacies of clock-independent state machines.
It is natural for us to believe that data processing in the passage through a sequential system is
best accomplished by a system clock, an enabling or sampling function. This is what happens in syn-
chronous (clock-driven) sequential systems that have led to countless remarkable accomplishments
over time, many of which we are familiar with. These days, however, clock distribution problems
have emerged to greatly limit some applications of large, complex, and fast synchronous systems.
This has prompted inclusion of asynchronous components into synchronous system designs. The
reason for this is attributed to a number of factors:
• The speed requirements of a sequential system design may exceed the capability of a clock-
controlled approach. In some specific cases, a properly designed asynchronous FSM will
operate faster and be more appropriate than its synchronous counterpart.
• Many clock distribution (clock skew) problems can be eliminated by the inclusion of asyn-
chronous components in synchronous systems. Clearly, a purely asynchronous sequential
machine cannot have clock skew. Remember that clock skew problems can lead to system
failure by causing some components in a synchronous system to become out of synch with
other parts.
• The absence of flip-flops and oscillator circuits in an asynchronous sequential system design
can reduce the real estate required on an integrated circuit chip for some applications.
asynchronous sequential machine design and analysis
• Just as there are some designs that lend themselves to a synchronous design, there are oth-
ers that are best designed by using an asynchronous machine approach. Because of this,
we are seeing the increased embedded usage of asynchronous sequential components into
synchronous system designs.
Because of these features, designers are becoming more familiar with asynchronous sequential ma-
chine design and analysis, a fact that is certain to play an important role in future super high-speed
microprocessors and computers designs.
This means that only one input is permitted to change at any given time, and that each change
be minimally separated in time from the next. With few exceptions, all asynchronous FSMs must
adhere to this requirement. The exceptions include FSMs designed with memory elements that
operate outside of the fundamental mode as will be discussed later in this and other chapters.
The lumped path delay (LPD) model for an asynchronous Mealy FSM is presented in Figure
1.1. It consists of a next state (NS) forming logic section, an LPD memory stage, and an output
(OP) forming logic section. Connecting these three sections are the input (IP) lines, NS lines, and
present state (PS) feedback lines. This is called a Mealy model (after G. H. Mealy), because the IP
lines can directly affect both the NS and OP forming logic sections. Thus, the Mealy model is the
most general model for an FSM. If the IP lines to the OP section are dropped, the model is called
a Moore model, in honor of E. F. Moore.
In the LPD model, the delays in the next state forming logic are represented as fictitious
LPD memory elements where each memory element separates an NS variable Yi from a PS variable
yi, as shown in Figure 1.1. In this sense, the NS forming logic is considered ideal, that is, void of
delays with the delays lumped as fictitious memory elements in the NS/PS lines. Because operation
introduction and background
LPD Memory stage
Output
Intput (OP)
(IP)
Z0
x0 Y0 y0
x1 M0 Output Z1
Y1 y1 forming
x n-1 Next state M1
logic
forming
logic Zr–1
Ym–1 ym–1
M m–1
NS
figure 1.1: The generalized LPD model for an asynchronous Mealy FSM operated in the funda-
mental mode with fictitious LPD memory elements.
in the fundamental mode requires that no external input can be applied until any previous input
has settled in and the system has stabilized, the memory in an LPD FSM is preserved. Treating
the LPD model in this manner greatly simplifies the design and analysis of fundamental mode
FSMs.
where it is understood that each LPD memory element Mi represents a fictitious delay Mi = ∆ti. It
is this fictitious delay that is the cornerstone of the LPD model that, in turn, leads to the important
stability criteria for asynchronous FSMs operated in the fundamental mode:
asynchronous sequential machine design and analysis
Stability Criteria
(a) If the PS is logically equal to the NS in a given state at some point in time, then
and the asynchronous fundamental mode FSM is unstable in that state and must transition to
another state.
Thus, the presence of an LPD memory element in each feedback loop together with operation in
the fundamental mode ensures that each PS is preserved and ready for an NS transition.
Equations (1.1) and (1.2) can be represented in tabular form. When this is done, the results
are the excitation tables shown in Figure 1.2a and 1.2b. Here, yt = Yt signifies a stable state con
dition, whereas yt ≠ Yt represents an unstable state condition. The notation yt → yt + 1 represents a
transition from the PS to the NS, implying that yt +1 = Yt for the NS. Readers who are familiar with
synchronous FSM design will note the similarity between the excitation table for the LPD model
and that for a D flip-flop. The LPD excitation table in Figure 1.2b will prove essential to the de
PS State
variable NS
change variable
Yt yt � yt+1 yt � yt+1 Yt
0 0 � 0 Stable 0 � 0 0
0 1 � 0 Unstable Set 0 � 1 1
1 0 � 1 Unstable 1 � 0 0
1 1 � 1 Stable Set Hold 1 � 1 1
(a) (b)
figure 1.2: (a) Excitation table for the LPD model as derived from Eqs. (1.1) and (1.2). (b) The
excitation table of (a) arranged in the form familiar for D flip-flops now to be used for the LPD model.
introduction and background
sign of many asynchronous FSMs operated in the fundamental mode. This will be accomplished by
combining this excitation table with a state diagram representing the sequential behavior of a FSM,
the result being entered into entered variable (EV) Karnaugh maps (K-maps) and cover extracted
for the design. This will all be amply discussed in this and later chapters together with the use of
computer-aided design methods.
Memory stage
Output
(OP)
Intput
(IP)
Z0
S0
x0 S y0
R0 y
x1 R Output Z1
S1
y1 forming
S
x n–1 Next state R1 y logic
R
forming
logic Zr–1
Sm–1
S ym–1
Rm–1 y
R
NS
PS feedback
Nested Memory Elements
figure 1.3: Nested memory element model for an asynchronous Mealy FSM showing a memory
stage consisting of either basic SR cells that operate in the fundamental mode of SR C-elements that
operate outside of the fundamental mode.
asynchronous sequential machine design and analysis
gate-oriented and has no feedback to its NS forming logic—it has only a weak feedback feature in its
output. Use of either basic cells or C-elements in the model of Figure 1.3 may be viewed as embed-
ded or nested FSMs within an FSM. A detailed examination of both types of memory elements is
left for later discussions in this chapter. Note that if the IP lines to the OP section are dropped, the
model in Figure 1.3 would be called a nested memory element Moore model.
Clearly, the previous discussion indicates that the memory stage can take on a different char-
acter depending on the input requirements and the type of FSM to be designed. There are four
types of memory elements that can be used in the design of asynchronous FSMs:
We have touched on the first three memory elements: fictitious LPD memory elements, SR basic
cells, and SR C-elements. The first two memory element types (1 and 2) are used in the design of
asynchronous FSMs that must be operated in the fundamental mode. Muller C-elements operate
outside of the fundamental mode, whereas toggle modules are used in the design of asynchronous
FSMs that operate in the pulse mode discussed in Chapter 6. The use of these memory elements
will be discussed, in turn, together with the appropriate design considerations. Before we do this,
however, further background discussions of sequential machine fundamentals are necessary.
fc(xi) Conditional
output
fcd(xi)
c ZE if f(xi) Branching
0L11
fcb(xi) paths
PS variables
(ym–1 L y1y0)
b
0L01 fb(xi)
Branching
fab(xi) conditions
PS State code fba(xi)
assignment
a
0L00
fac(xi) ZE
Unconditional
output
fa(xi)
figure 1.4: Fully documented state diagram as interpreted for an asynchronous FSM showing branch-
ing paths, branching conditions, conditional and unconditional outputs, and state code assignments.
the state diagram segment. The down/up arrows symbol (↓↑) is used to indicate an active output
upon entering a state and an inactive output upon leaving the state, subject to any conditional input
indicated. It also serves to visually distinguish outputs from inputs. A branching path out of and
back into a given state symbol is called a holding condition. In Figure 1.4, the holding condition for
state a is denoted as fa(xi) or, alternatively, faa(xi), and similarly for states b and c. All others are either
out-branching or in-branching paths as indicated by the sense of the arrows. Note that the branch-
ing conditions fαβ(xi) given in Figure 1.4 are the input literals required to execute a given transition
from state α to state β, or from state α _to state α____ . Thus, fαβ(xi) can represent any number of literals
(inputs) as, for example, X, �T, Add ⋅ V , or B + Hold ⋅ C, etc.
The reader will learn with practice that the fully documented state diagram is by far the easi-
est, most lucid, and visually satisfying means of representing the sequential behavior of an FSM. In
this regard, it is important to note that we have deliberately opted not to use burst mode and extended
burst mode FSM label notation in state graph construction (see Glossary for definitions) because, to
do so, would defeat the underlying purposes of this text. It will become clear to the reader that the
fully documented state diagram is a very powerful tool when used to identify and eliminate a host
of timing defects in asynchronous FSMs. However, to use the fully documented state diagram for
such purposes, two rules must “ordinarily” be followed in its proper construction. The first of these
rules is called the sum rule stated as follows:
10 asynchronous sequential machine design and analysis
Sum Rule
The Boolean sum of all branching conditions from a given state must be logic 1.
Applied to state a in Figure 1.4, the sum rule would be satisfied iff fa + fab + fac = 1. Suppose that the
branching conditions from state a are fa = XY, fab = � and fac = X �. Clearly, the sum rule holds under
these branching conditions, because their Boolean sum would be logic 1 (see Appendix A.2 for a re-
view of Boolean algebra). An example of failure to meet the sum rule would be if fab = � Y, the others
remaining the same. Mathematically, the sum rule can be expressed for all j-to-i transitions as
n−1
∑ fi← j = 1 (1.3)
i=0
where fi←j represents the branching condition from the jth state to each ith summed over n states.
If the sum rule is not satisfied, one or more of the branching conditions would not be ac-
counted for and failure of the FSM could result. However, there are occasions in the design of
an asynchronous FSM where it is desirable not to have the sum rule apply. In these special cases,
certain input conditions are never allowed thereby permitting the FSM to function normally in
violation of the sum rule. An example in this case would be if fa = X Y, fab = � Y, and fac = X �. In this
case, the input condition � � is not accounted for. Thus, the FSM would only operate properly if
the input change X Y →� � is never permitted to occur.
A second rule is called the mutually exclusive requirement. Although branching accountability
is met via the sum rule, the asynchronous FSM may still malfunction if two or more of the branch-
ing conditions from a given state “overlap.” This rule may be stated as follows:
n−1
fi← j = ∑ fk← j or fi ← j fk ← j = 0 (1.4)
k=0 for all i and k, iff k = i
k=1
where each branching condition is found to be the complement of the Boolean sum of those re-
maining. Applied to state a in Figure 1.4, Eqs. (1.4) requires that
introduction and background 11
This example demonstrates that a simpler way of satisfying Eq. (1.4) would be to AND each
pair of branching conditions from a given state. If the result is logic zero for all ANDed pairs, then
all branching conditions are mutually exclusive. Consider that fa = � �, fab = X, and fac = Y in Figure
1.4. It is easily seen that the sum rule is obeyed but the mutually exclusivity condition is violated,
because X and Y both contain XY. Thus, if the holding condition in state a is � � and the change
� � → XY occurs, then branching to either state b or state c can occur leading to a possible unre-
solved condition that can result in an error transition (or metastability) and failure. Notice also
that fab ⋅ fac = X ⋅ Y = XY does not satisfy the null product result required by Eq. (1.4). Of course, if
branching condition XY is never permitted to occur, then there is no potential problem.
1. Select the FSM to be designed and represent it in the form of a fully documented state
diagram. The output (OP) logic can be mapped and obtained at this time.
2. Select the memory element (LPD or an SR type) and represent this memory element in
the form of an excitation table.
3. Plot the NS EV Karnaugh maps (K-maps) from items (1) and (2) by using the mapping
algorithm below, and loop out a minimum or near-minimum NS logic from the EV K-
maps. The use of computer-aided minimization software may be necessary to complete
this step.
S PS State
variable, y
0 y
yt � yt+1 Yt
S PS 0 0 S
0 � 0 0
R PS 0
0 � 1 1 Set
1 � 0 0 PS 1 1 R
1 YE
PS 1
1 � 1 1 Set Hold Y
R Y = yS + yR
figure 1.5: LPD-to-SR memory conversion. (a) The SR state diagram. (b) Excitation table for
memory in the LPD model as given by Figure 1.2b. (c) EVK-map and LPD-to-SR memory conversion
logic derived from the state diagram in (a) together with the excitation table in (b) and the use of the
mapping algorithm.
introduction and background 13
The utility of conversion between the LPD and SR models is that it is generally easier to obtain
the NS logic for the LPD model than for the SR model. Thus, conversion to the SR model via K-
map conversion can save time and reduce errors, and the result applies to either the use of nested
basic cells or Muller C-elements. The use of a minimization software that accepts map EVs, such
as BOOZER (see Preface), further reduces the time and effort required in obtaining reliable results.
All of this will be covered at the appropriate time.
To further help the reader understand the mapping algorithm as applied to the LPD model
design process, consider the simple three-state FSM in Figure 1.6a. Here, a three-state, fully
documented state diagram is shown having two state variables ( y1 and y0), two external inputs (A
and B), and a single conditional output Z. The output must go active in state 00 but only if A is
active. The FSM will hold in state a under input conditions A + � or any logic combination of in
puts contained in A + �, that is, � �, A� and AB. Notice that the sum rule and mutual exclusivity
requirement hold for all three states.
Shown in Figure 1.6b is the state table (flow table), which is the tabular form precisely repre
senting the state diagram but more amenable to computer-aided design. The arrows represent the
possible transitions. The input axis AB is unfolded in 2-bit Gray code with input domains A and
B indicated by brackets. Each cell entry is a state identifier representing the specific state code
y0
A+ B y1 0 1
y1y0
0 AB AB
PS
a Variables
Z if A
AB
00 1 A
A
y1y0 AB 00 01 11 10 Z Y1
y0
y1 0 1
AB 00 = a a c a a A
0 AB B
c
A 11 01 = b a c b a 0
B 1 A+ B
AB
11 = c c c b a 0
y0 Y0
AB y1 0 1
10 = d
b 0 A 0
01
B
1 0
Z
A. B
(a) (b) (c)
figure 1.6: LPD design of a simple three-state asynchronouc FSM. (a) Fully documented state dia-
gram. (b) State table. (c) NS and output K-maps showing optimal cover (shaded) loops.
14 asynchronous sequential machine design and analysis
assignment shown on the vertical axis of the state table in agreement with the state diagram. State
identifiers that are encircled represent holding conditions that satisfy both the state diagram and
the stability criteria of Eqs. (1.1) and (1.2). In an asynchronous FSM, this means that the FSM
is stable in any state for which the stability criteria is satisfied, but is unstable otherwise and must
transit.
As an example, the FSM in Figure 1.6a is stable in state b if both inputs A and B are si-
multaneously active. Then, for the FSM to transition b → a, B must go inactive; hence, A�. The
transitions 00 → 11 (a → c) and its reverse 11 → 00 (c → a) require that the FSM must transit via
either state 01 or the don’t care state 10 designated φ10. Thus, the 00 → 11 transition under input
conditions �B can be guaranteed only if transitions from 01 → 11 and 10 → 11 contain �B, which
they do. Similarly, the 11 → 00 transition under input conditions A� can be guaranteed only if the
transitions from 01 → 00 and 10 → 00 contain A�, which they do. The fact that the transitions
from missing state 10 contain the appropriate branching conditions will become clear when we
discuss asynchronous FSM analysis in Chapter 7. The transitions 00 → 11 and 11 → 00 via state 01
or 10 are examples of permissible race conditions to be discussed in Chapter 3.
The K-maps in Figure 1.6c are generated by combining application of the LPD excitation
table (the characterization of the memory) in Figure 1.2b with the state diagram in Figure 1.6a
by using the mapping algorithm. This is accomplished by taking each state variable in turn (e.g., y1
first then y0) and plotting the NS EV K-maps for 0 → 1 and 1 → 1 SET transitions between states.
Beginning with state 00, there is only one set condition for the y1 state variable and that is a 0 → 1
transition to state c under branching condition �B. Thus, �B is placed in cell 00 of the Y1 NS vari-
able K-map. Continuing to state 01, there is again only one set condition for the y1 state variable, a
0 → 1 transition to state c under branching condition �B, which is placed in the cell of coordinates
01 of the Y1 NS variable K-map. In state 11, the 1 → 1 set-hold occurs under input condition �,
which is placed in the 11 cell of the Y1 K-map. State 10 is a don’t care state, so a φ is placed in the
10 cell. Now consider the y0 state variable and state 11. The y0 state variable transits from state 11
to 11 under input condition � but also from state 11 to 01 under input conditions AB. Therefore,
the Boolean sum of these two set conditions for state variable y0 is, by the absorptive law in Ap-
pendix A.2, � + AB = � + B, which must be placed in the 11 cell of the Y0 K-map. (Note: Always
minimize any combined branching conditions.) Then, for state 01 the transitions 01 → 01 and
01 → 11 require that AB = �B = B be placed in the 01 cell of the Y0 K-map. Again, a don’t care
symbol φ is placed in the 10 cell of the Y0 K-map. What is the 00 cell entry for the Y0 K-map?
The output K-map for Z requires that an A be placed in the 00 cell because state 00 has
a conditional output (Z if A), meaning that this output can go active in state 00 only if A is ac-
tive independent of input B. The other two states, 01 and 11, have no output assigned to them so
logic 0 must be placed in cells 01 and 11 of the Z K-map. Cell 10 must also contain a don’t care
symbol, φ.
introduction and background 15
When the mapping process has been completed by following Appendix A.3, the maps are
read (looped out) to give
_ _ _ _ _
Y1 = A B + y1 A Y0 = A B + y0 B + y1 A Z = y0 A (1.7)
where prime implicants (PIs) �B and y1 � are shared between NS variables Y1 and Y0, and are called
shared PIs. This yields a total gate/input tally of 6/13 excluding inverters that are used in the LPD
logic circuit. To help understand the concept of gate/input tally and application of the LPD model,
the NS and output logic in Eqs. (1.7) are shown in Figure 1.7 to be implemented with a NAND/
INV logic circuit by using mixed-logic notation. Here, as in the LPD model of Figure 1.1, fictitious
memory elements are represented by the symbol Mi separating the NS variables Yi from the PS
variables yi. The circuit is implemented assuming that the inputs arrive active high and that the
output Z is issued active low (a matter of choice). The forward slash on a gate input line indicates a
logic incompatibility requiring that the input to that logic gate be complemented in the gate output.
It is not obvious, but the shared PI y1 � provides a transition path from state 00 to state 11 via don’t
care state 10 should the FSM transit by that path. This will be made clear when FSM analysis is
discussed in Chapter 7. Note that Figure 1.7 verifies that the gate outputs agree with the p-terms in
Eqs. (1.7) and that the total gate/input tally is 6/13 exclusive of inverters. Once the reader is familiar
with LPD model designs, the fictitious memory elements can be removed but implied. Thus, in this
case, the state variable outputs will then be given as y1(H ) and y0(H ).
figure 1.7: Implementation of Eq. (1.7) with NAND/INV logic assuming that the inputs arrive
active high and that the output is issued active low. (The slash indicates a logic incompatibility.)
16 asynchronous sequential machine design and analysis
that the inputs and outputs of the logic circuit in Figure 1.7 carry what are called activation level
indicators. They are:
The DeMorgan relations for any logic function α, and relationships between (H) and (L) and the
high and low voltage levels (HV and LV), are essential to understanding the mixed-logic notation
and design methods in the logic domain used in this text. These are, respectively:
_
α (L) = α (H ) 1(H ) = 0(L) corresponds to HV
_ (1.8)
α (H ) = α (L) 0(H ) = 1(L) corresponds to LV
The simplicity and utility of this type of notation will become apparent with practice. The above
notation will be used extensively throughout this text. Appendix A, provided at the end of this text,
will review mixed-logic symbology and other fundamentals that the designer will find useful. For
now, the cardinal rule to be followed can be stated as follows:
Cardinal Rule
Always design or analyze a logic circuit in mixed-logic notation and symbology. Use of positive
logic or voltage-level notation must be left to the hardware implementation stage.
Following this cardinal rule can help users avoid numerous errors and failure. The reader will learn
that asynchronous state machine design and analysis is complex, requiring a simplified notation that
maximizes the probability of success. Use of mixed-logic notation and symbology is superbly suited
to accomplishes that. Readers who have been taught only positive logic must unlearn the positive
logic notation and aggressively adapt to the cardinal rule.
S
State
variable, y
0 yt � yt+1
S R Qt+1 Yt y
0 0 Qt Hold S
0 �0 0 0 S
0 1 0 Reset SR
0 �1 1
1 0 1 Set
QE 1 �0 0 1 S + R
1
1 1 1 Set
1 �1 1 Y= S + R y
S+R
(a) (b) (c) (d)
figure 1.8: Design of the set-dominant basic memory cell by using the LPD model. (a) Operation
table. (b) State diagram. (c) Excitation table for the LPD model. (d) NS K-map and minimum cover.
(e) NAND Logic circuit showing the fictitious LPD memory element and the single feedback path. (f )
Logic circuit with fictitious memory element removed. (g) Logic symbol.
18 asynchronous sequential machine design and analysis
logic expression Y = S + �y, which is implemented in mixed-logic form with and without the ficti-
tious memory element in Figure 1.8e and 1.8f, respectively. Notice that this simple NAND centered
asynchronous FSM has but one feedback path. The appearance of the “cross-coupled” NAND gates
in Figure 1.8f does not change this fact. The logic circuit symbol, given in Figure 1.8g, provides
a suitable representation of the set-dominant basic cell that can be used in circuits for which the
nested element model in Figure 1.3 is applied. Thus, the active low indicator bubbles on the inputs
circuit symbol in Figure 1.8g imply active low S and R inputs.
Shown in Figure 1.9 is the LPD design of the reset-dominant basic cell. The state diagram
for this cell in Figure 1.9b is derived from its operation table in Figure 1.9a. It is mapped in Fig-
ure 1.9d by using the mapping algorithm to combine the state diagram with the excitation table
for the LPD model given in Figure 1.9c. The K-map is looped out in maxterm code to yield the
S+R
State
variable, y
0 yt � yt+1
S R Qt+1 Yt y
0 0 Qt Hold SR 0 �0 0 0 S . R
R
0 1 0 Reset
0 �1 1
1 0 1 Set
QE 1 �0 0 1 R
1 1 1 Reset
1
1 �1 1 Y = R (S + y)
R
(a) (b) (c) (d)
figure 1.9: Design of the reset-dominant basic memory cell by using the LPD model. (a) Operation
table. (b) State diagram. (c) Excitation table for the LPD model. (d) NS K-map and minimum cover.
(e) NOR Logic circuit showing the fictitious LPD memory element and a single feedback path.
(f ) Logic circuit with the fictitious memory element removed. (g) Logic symbol.
introduction and background 19
product-of-sums (POS) logic expression Y = �(S + y). In maxterm code K-map minimization, the
domains are complemented and read as POS. Appendix A.3 reviews EV K-map minimization but
in minterm code only. (See Tinder’s book in Endnotes for an exhaustive treatment of EV K-map
mapping minimization.)
The logic circuit for Y = �(S + y) is implemented in NOR logic with and without the
fictitious memory element as shown in Figure 1.9e and 1.9f. Again, we observe that there is but
one feedback path. Notice that for the reset-dominant basic cell the inputs arrive active high (H),
whereas for the set-dominant (NAND-centered) basic cell they arrive active low (L). A suitable
logic symbol for the reset-dominant cell without active low indicator bubbles is given in Figure 1.9f.
An inspection of the state diagram in Figure 1.9b indicates that the sum rule and mutual exclusivity
condition are both satisfied.
The logic character of the basic memory cells is best understood by the use of timing diagrams
(logic waveforms). Shown in Figure 1.10 are the combined timing diagrams for the set- and reset-
dominant basic cells that have been taken from a logic simulator described in the Preface but dressed up
with a drawing tool. To save space, the input waveforms are made to appear exactly the same for the
two basic cells but with the understanding that their activation levels SL,SH and RL,RH must be in
agreement with their respective figures, Figures 1.8f and 1.9f. Thus, the inputs to the cross-coupled
S(L), S(H)
R(L), R(H)
S(L) τp y(H)
R(L)
τp y(L)
τp τp τp
R(H) τp y(H)
τp τp τp
S(H)
τp y(L)
figure 1.10: Timing diagrams for the set-dominant and reset-dominant basic cells showing loss of
mixed-rail outputs for the S,R = 1,1 condition, and the oscillatory behavior that results when S and R
change 1→ 0 simultaneously.
20 asynchronous sequential machine design and analysis
NAND cell (set-dominant) are SL and RL, whereas for the cross-coupled NOR cell (reset-
dominant) they are SH and RH.
Outputs y(H), y(L) are called mixed-rail outputs because they normally issue either as 1H,1L
or as 0H,0L—in the physical domain, the voltages are the inverse of one another, according to Sec-
tion 1.7.1. However, these outputs do not change simultaneously but rather their changes are sepa-
rated by the propagation delay, τp, of a single gate, which has arbitrarily been taken to be the same
for both NAND and NOR gates. Notice in Figure 1.10 that the y(L) output from the cross-coupled
NAND gates is symmetrically set inside of the y(H) output by time delays of τp. Conversely, for the
cross-coupled NOR gates, the y(H) output is symmetrically set inside of the y(L) output, again by
time delays denoted by τp.
Under certain conditions, the two basic cells shown in Figure 1.10 can lose their mixed-rail
output character. Loss of mixed-rail output character means that both outputs go active high, 1H, as
in the NAND-based cell, or they both go active low, 0H, as in the NOR-based cell. Thus, physi-
cally these outputs are issued at the same voltage level, HV for the NAND-based cell and LV for
the NOR-based cell. Remember that 1(H) = 0(L) and 0(H) = 1(L) in mixed-logic notation. When
both inputs to either basic cell go active and then transition 1 → 0 simultaneously as shown in Fig-
ure 1.10, the basic cell may become metastable and either “hang up” in a state that is neither a set
not reset, or it may oscillate. This supports the need to avoid the S,R = 1,1 condition when using
basic cells as memory elements and the need to operate them in the fundamental mode, where input
changes must be minimally separated in time.
If a set of basic memory cells are to be used as memory elements in an asynchronous logic
circuit, in agreement with the nested element model of Figure 1.3, they must be characterized by an
excitation table. To design an asynchronous FSM, the mapping algorithm requires that the state di-
agram for the FSM (to be designed) be combined with the excitation table for the selected memory
element via the mapping algorithm. Shown in Figure 1.11 are the excitation tables for the set- and
reset-dominant basic cells as derived from their respective state diagrams. We notice from the state
diagrams that the S,R = 1,1 condition exists under Set (0 → 1) and Set Hold (1 → 1) changes
for the set-dominant basic cell, and under Reset Hold (0 → 0) and Reset (1 → 0) for the reset-
dominant basic cell. Thus, S,R = 1,1 is inherent in these two basic cells.
The excitation tables in Figure 1.11 can be combined (merged) to eliminate the presence of
the S,R = 1,1 condition. By taking from Figure 1.11b and 1.11c only those SR entries that are
enclosed in shaded loops, a combined form of the excitation table results in the absence of the S,R =
1,1 condition. Thus, a generic form of the excitation table results that is applicable to either the set-
or reset-dominant basic cell. Use will be made of the combined form in Section 1.9 and throughout
the text. Note that each input in an ORed holding condition is taken separately and shown in pa-
rentheses. Thus, S + � for state 1 in Figure 1.11a is presented as (1 φ) for S and (φ 0) for �.
introduction and background 21
State . State
S variable Input logic variable Input logic State S+R
State
variable, y change values change values variable, y
Q 1 0 0 1 Reset 1 0 1 Q
1 1
1 0
1 1 Set Hold 1 1
0
S+R R
(a) (b) (c) (d)
figure 1.11: Excitation tables for the basic memory cells. (a) State diagram for the set-dominant
basic cell derived from the operation table in Figure 1.8a. (b) Excitation table for the set-dominated basic
cell derived from its state diagram in (a). (c) Excitation table for the reset-dominated basic cell derived
from its state diagram in (d) or from its operation table in Figure 1.9a. (Note that the SR entries within
shaded loops are those shared in common between the two excitation tables.)
A1+ A0
Weak (keeper)
y
Inverter
A1 A0 yt+1 0
A1(H)
0 0 0 Reset
y(H) A1A0 C y(H)
0 1 yt Hold A1A0 A0(H)
A1(H)
1 0 yt Hold CL(L)
1 1 1 Set 1 Y�
A0(H)
A1+ A0
CL(L)
figure 1.12: The normal Muller C-element. (a) Transistor circuit with clear (CL). (b) Positive
logic truth table representation of the transistor circuit. (c) State diagram derived from the truth table.
(d) Logic circuit symbol.
V DD
Weak (keeper)
Inverter A1+ A0
y
A1 A0 yt+1 0
y(H) A1(H)
0 0 0 Hold
A1(H) A1A0 C y(H)
0 1 yt Reset A1A0 A0(H)
1 0 yt Set CL(L)
A0(H) Y�
1 1 1 Hold 1
(a) A1+ A0
figure 1.13: The complementary Muller C-element with clear (CL). (a) Transistor circuit showing
inverter on the A0 input. (b) Positive logic truth table representation of the transistor circuit. (c) State
diagram derived from the truth table. (d) Logic circuit symbol.
introduction and background 23
1.13b and 1.13c convey this requirement. The circuit symbol in Figure 13d caries an active
low indicator bubble representing logic level conversion. The clear feature is again added by following
the configuration shown in Figure 1.12a. With regard to inverters, the reader must remember the
following:
Function of an Inverter
An inverter does not invert a voltage signal in the logic domain but merely converts positive logic
to negative logic or vice versa—it is the physical inverter that inverts voltage levels.
Note that the C-element in either Figure 1.12 or 1.13 can be designed without a clear (CL) input
by shorting the NMOS to ground and by removing the PMOS (an open circuit at the PMOS).
yt yt+1 Y A1 A0 S R A1 A0
0 0 0
Reset Hold 0 0 0
1 0
Set 0 1 1 1 0 1 0 1 1
Reset 1 0 0 0 1 0 1 0 0
1 1
Set Hold 1 1 1
0 0 1
figure 1.14: Summary of the excitation tables. (a) PS-to-NS transitions. (b) LPD model. (c) Comple
mentary C-elements. (d) combined form for SR basic cells (e) Normal C-elements.
24 asynchronous sequential machine design and analysis
1.14(c) is valid for the complementary C-element in Figure 1.13, column 1.14(d) applies to the
combined basic cells (either a set- or reset-dominant) as in Figure 1.11, and column 1.14(e) applies
to a normal C-element. The reader will notice the similarity between entries for the complemen-
tary C-elements and those for the combined basic cells illustrated by loops. Equation (1.6) gives
not only the conversion logic between the LPD model and basic cells but also the conversion logic
between the LPD model and complementary C-elements. The idea here is to first design with the
LPD model, which is relatively easy, and then convert to either a C-element or basic cell memory
design.
• • • •
25
chapter 2
In this chapter we will design a simple asynchronous finite state machine (FSM) by using both
the lumped path delay (LPD) and nested C-element models. Conversion between these models
will require an extension of the mapping algorithm given in Section 1.6. The reader will find that
conversion between these models is, in effect, a quasi-conversion between Huffman and Muller
designs—a powerful tool for use by a knowledgeable designer.
For the next state (NS) K-map conversion, Y → SR, Eq. (1.6) and the excitation tables in Figure
1.14 require the following four steps:
1 A 1 A 1 A
Y1 S1 R1
y0 y0 y0
y1 0 1 y1 0 1 y1 0 1
0 AB B 0 AB B 0 (A+ B) B
1 A+ B 1 (A+B) 1 AB
Y0 S0 R0
(a) (b)
Figure 2.1: Y → SR conversion for the FSM in Figure 1.6a. (a) Original NS K-maps reproduced from
Figure 1.6b. (b) Converted S,R EV K-maps showing optimum NS logic cover.
don’t use it unless it is necessary to extract optimum or near optimum cover. Brief reviews of EV K-map
minimization and incompletely specified functions are given in Appendix A.3.
For comparison purposes, the optimum NS and output forming logic for the LPD and SR
models are given in Eqs. (1.7) and (2.1), where the NS SR logic results from covers given by the
shaded loops in Figure 2.1b. An inspection of these equations indicates that the NS logic gate/input
tally for the LPD model is 5/11 exclusive of inverters, whereas that for the nested element model
yields a gate/input tally of 4/8 exclusive of inverters and C-elements.
_ _ _
Y1 = A B + y A S1 = A_B R 1 = A_ (2.1)
_ 1 _ ⇒ __
Y0 = A B +_ y0 B + y1A S0 = A B _R 0 = AB + y1B
Z = y0 A Z = y0 A
The logic circuit for the LPD model result was previously given in Figure 1.7. The nested SR
element model in Figure 1.3 and the SR logic in Eq. (2.1) apply to either the use of basic cells or
C-elements. However, an inspection of the excitation tables for the C-elements and basic cells in
Figure 1.14 indicates there is an important difference in the way these equations are used. Comple-
mentation of the A0 columns in Figure 1.14c and 1.14e satisfies Eq. (1.6) and allows A1 → S and A0 →
R providing that the complementation requirement is followed:
CL(L)
S(H) S(L) S(H) S(H)
y(H) y(H) y(H) y(H)
R(H) R(L) R(L) R(H)
CL(L) CL(L) CL(L)
(a) (b)
Figure 2.2: Typical examples of alternative uses of C-elements as required for SR logic. (a) Compli-
mentary C-elements. (b) Normal C-elements.
This complementation requirement is best illustrated in Figure 2.2 for either the complementary or
normal C-elements. Thus, having obtained the SR logic from the LPD model, the designer is free
to choose which inputs are to serve as the S and R inputs owing to the transistor circuit configura-
tions for the C-elements given in Figures 1.12 and 1.13.
To illustrate, the C-element-based logic circuit, representing the SR expressions in Eq. (2.1),
is shown in Figure 2.3. In this circuit, use is made of the wireless connection feature that is used to
simplify the appearance of a logic circuit. It is the same feature that is recommended for use with the
logic simulator described in the Preface. As a reminder, the slash appearing in the figure indicates
a logic level incompatibility requiring that the input to a gate where it applies be complemented in
the output of that gate. For example, the two-input conjugate NOR gate whose output is connected
to the S inputs of the two C-elements has a mixed-logic output �B(H ) Remember also that an in
verter is a logic level converter, (H ) → (L) or (L) → (H ), and must not be given a physical meaning
such as (high voltage) ↔ (low voltage). These reminders are all part of the mixed-logic notation
symbology used in this text to design or analyze logic circuits in the logic domain. Refer to Section
1.7.1 and Appendix A for details.
CL(L)
A(H) A(L)
A(H)
B(H) B(L)
y1(H)
CL(L) A(H)
B(L) y1(L)
A(H)
y0(H)
B(L)
y0(L)
y1(L)
CL(L)
B(L)
y0(L)
Z(L)
A(H)
Figure 2.3: C-element logic design (with clear) of the same FSM featured in Figure 1.7 demonstrating
the difference between the LPD and nested C-element model by using the wireless-connection feature.
28 asynchronous Sequential machine design and analysis
CL(L)
A(H)
B(H)
y1(H)
y0(H)
Z(L)
(a) (b)
Figure 2.4: (a) Simulation of the C-element logic circuit in Figure 2.2 showing initialization with
clear CL(L), its release, and the resulting transitions in agreement with the state diagram in Figure 1.6a.
(b) Blowup view of the shaded region in (a) showing the transition from state 00 to state 11 via don’t care
state 10.
Simulation of the logic circuit in Figure 2.3 is given in Figure 2.4a, where use is again made
of mixed-logic notation. The reader should follow the A, B input sequence to verify that the FSM
simulation follows the sequential behavior required by the state diagram in Figure 1.6a. Notice that
the circuit is initialized to the 00 state by setting the clear input CL(L) = 1(L) for a short period.
Following release of the CL(L) signal, CL(L) → 0(L) =1(H), the reader should verify that the FSM
transitions through the three states are consistent with Figure 1.6a. The transitions 00 → 11 and
11 → 00 follow paths via the state 01 or don’t care state 10 as they must. This is demonstrated by the
blowup in Figure 2.4b, where the transition y1(H), y0(H) = 00 → 11 follows a path through don’t
care state 10 spending a time in that state equal to the delay through the NOR gate plus a C-element
shown in Figure 2.3. Simulation of the FSM in Figure 1.6a, the LPD model version of Figure 2.3,
would look very similar to that in Figure 2.4. Naturally, requirements for the fundamental mode
would have to be followed. The subjects of initialization and reset are discussed in Section 2.2.
+VS Voltage
Power Up/Dn
VX
Switch
VS
Inverting
Schmitt VX(t) VS{1-e-t/RC }
trigger
Vpu
Diode R Sanity (L)
Hysteresis
X Vpd
Sanity (L)
figure 2.5: (a) Sanity circuit showing mixed-rail outputs. (b) V-t characteristic at node X for the san
ity circuit in (a) showing power-up (Vpu) and power-down (Vpd) switching thresholds and hysteresis
effect of the inverting Schmitt trigger.
Initializes 0 Initializes 0
Sanity(L) Sanity(H)
1 1
Sanity(L) = 1(L) Sanity(H) = 1(H)
0
t=0 tpu
t 0 t
Initializes 1 t=0 tpu Initializes 1
(a) (b)
figure 2.6: Gate requirements for initializing a logic 0 or a logic 1. (a) Active low gate input from the
sanity circuit. (b) Active high gate input from the sanity circuit.
30 asynchronous Sequential machine design and analysis
The gate requirements for initializing a logic 0 or logic 1 are given in Figure 2.6. Initialization
by means of the NS logic is applicable to asynchronous FSMs that adhere to the LPD or nested
basic cell models in Figures 1.1 and 1.3. Thus, the NS forming logic for such circuits can be imple-
mented with either NAND, AND, NOR, or OR logic, and be initialized by a Sanity(L) signal ac-
cording to Figure 2.6. Use of NAND logic to initialize a 0(H) and 1(H) is illustrated in Figure 2.7a
and 2.7b, which is applicable to the LPD model with feedback paths to the NS logic. In contrast,
the C-elements, shown in Figure 2.7c, initialize only to 0(H) = 1(L) when Sanity(L) = 1(L) is ap-
plied. Naturally, it follows that an inverter on the C-element output would allow initialization to
0(L) = 1(H) if that is necessary. Obviously, initialization by means of say the NAND in Figure 2.7a
and 2.7b requires additional NAND gate inputs that can slow down the circuit response to input
change. Initialization by means of C-elements has an advantage because no additional inputs are
required.
Now, the initialization of the FSM in Figure 2.3 can be easily understood. The CL(L) signal
is the Sanity(L) that delivers a 1(L) for a short period, about equal to the time constant of the sanity
circuit in Figure 2.5a. This drives the state variables y1, y0 to 0(H), which initializes the FSM into
the 00 state as indicated in Figure 2.4. Then after a short period, the Sanity circuit goes to 0(L) and
the FSM is enabled and function normally. In Figure 2.4, note also that when Sanity(L) = CL(L)
Sanity(L) Sanity(L)
Feedback
paths
Si(H)
Feedback Feedback yi(H)
paths paths
Ri(H)
Sanity(L)
Si(H)
yi(H)
Ri(L) Feedback
paths
Sanity(L)
(a) (b) (c)
figure 2.7: Initializing two-level NAND (SOP) logic and C-elements with Sanity(L). (a) NAND
logic Sanity(L) = 1(L) = 0(H ), used to initialize a logic 0. (b) NAND logic with Sanity(L) = 1(L) used to
initialize logic 1. (c) Sanity(L) = 1(L) inputs to C-elements as used to initialize only logic 0’s.
simple fsm design and initialization 31
goes to 0(L) and the inputs are A (H ) = 0, and B(H ) = 1(H ), the FSM transits 00 → 11 as it must
according to the state diagram in Figure 1.6a. Because the output forming logic Z(L) = � 0A(L) is
not initialized, it is enabled to go active during initialization into the 00 state if A is active high. The
output forming logic in Figure 2.3 can be initialized to 0(L) by using a three-input NAND gate
with Sanity(L) = 1(L) as one of the inputs.
• • • •
33
chapter 3
There are five types of timing defects that, if present and active in asynchronous finite state ma-
chines (FSMs), can cause them to malfunction. Nearly all of these defects do not exist in synchro-
nous FSMs because flip-flops, together with the sampling input called Clock, serve to filter them
out. We will discuss these timing defects as they exist in asynchronous FSMs, indicating their
potential to cause failure and examine the means by which they can be eliminated. Further discus-
sion on asynchronous state machine design and analysis cannot occur until these timing defects are
discussed in detail. The five types of timing defects are as follows:
AB AB
AB AB
Q Q Q
Possible
fPQ AÅ B correction AÅ B
fQP
B AB
Endless cycle
P if P Oscillation if AB P
(fPQ )(fQP ) � 0 AB AÅ B
AB AB
(a) (b) (c)
Figure 3.1: Endless cycles in asynchronous FSMs. (a) A seqment of a state diagram used as a model
for endless cycle analysis. (b) Example of an endless cycle. (c) Elimination of the endless cycle in (b).
there now results (A ⊕ B) ⋅ AB = 0, thereby eliminating the endless cycles. Endless cycles can occur
in a variety of state configurations including those involving more than two states.
fQ X
L 110
fQX
fR Q Non-critical race requirements
fRQ
L 10
IPQ fPQ IPQ fR IPQ fRQ
I
R fSQ IPQ fQ or fQX IPQ fS IPQ fSQ
I
L 11
fS
fPQ (b)
S
L 00
P Critical race requirements
L 01
IPQ fPQ IPQ fR or IPQ fS
I
fP
IXX = Input condition (c)
(a) fXX = Branching condition
Figure 3.2: Races and critical races in asynchronous FSMs. (a) Generalized state diagram segment
used as a model for detection of races and critical races. (b) Requirements for non critical races. (c) Re-
quirements for critical races.
The critical race shown in Figure 3.3 can be easily eliminated by using a correction path that
diverts the 11 → 00 transition by way of state 01 under the same branching condition �B. The tran-
sition is now 11 → 01 → 00, which is logically adjacent. This is called a cycle or cycle path, which, in
this case, is permitted. Once the correction path is selected, the FSM must be redesigned by using
either the lumped path delay (LPD) or nested element model. Further analysis must not continue
until the FSM is free of endless cycles and critical races, all easily determined by inspection of the
state diagram.
A8B B
A AB AB ZE if A
a b c d
A 00 01 11 10 B
AB AB B
Critical race
Correction path
replacement state
AB
Figure 3.3: State diagram of an FSM showing a critical race via state 10 for the 11→00 transition
and its elimination by providing a correction path represented by the dashed line.
36 Asynchronous sequential machine design and analysis
R—the residues of the two coupled terms to eliminate a static-0 hazard in a POS ex
O
pression. (See Tinder’s book in Endnotes for analyses of static-0 hazards in POS logic.)
In the interest of saving space, we will limit our discussions to static-1 hazards in SOP NS
forming logic. We will demonstrate that static hazard identification and elimination can easily be
accomplished by using the NS logic functions from K-maps combined with the state diagram from
which the K-maps are plotted. In the process, we demonstrate how a normally complicated analysis
can be made quite tractable, even routine, for the designer. Note: The designer must always check the
state diagram during a hazard analysis to authenticate the presence of any suspect hazards.
To illustrate static hazard analysis and elimination, we consider exclusively SOP NS forming
logic. Shown in Figure 3.4a is a state diagram with four states, two state variables, two external
inputs, and a single conditional (Mealy) output. The NS K-maps in Figure 3.4b apply to both the
LPD and nested SR element models. The SR K-maps are generated from the LPD “Y” K-maps by
following the Y → SR algorithm discussed in Section 2.1. The reader should follow the mapping
process beginning with the plotting of the entered variable (EV) K-maps followed by the looping-
out process. Once this has been done for the LPD model, attention should next be given to the Y →
SR transformations. Note that the FSM in Figure 3.4a is devoid of cycles and buffer states.
y0 y0
y1 0 1 y1 0 1
A
Sanity 0 AB AB 0 AB AB
a Z
1 A + B A +B 1 AB A + B
00 AB
AB Y1 Y0
AB A y0 y0
y1 0 1 y1 0 1
Z if A
d AB b 0 AB AB 0 AB (AB)
A AB
10 01
1 (A+B) (A+B) 1 AB (A+B)
AB S1 S0
y0 y0
y1 0 1 y1 0 1
AB c AB
0 (A+ B ) (A+ B ) 0 (A+B) A +B
11 Z if A
1 AB AB 1 (A+B) AB
A
R1 R0
(a) (b)
Figure 3.4: A four-state FSM used to demonstrate identification and elimination of static-1 hazards
in SOP NS logic. (a) State diagram with initialization in to the 00 state and a single conditional output,
Z. (b) NS K-maps showing optimum SOP cover for both LPD and nested SR element logic designs.
38 Asynchronous sequential machine design and analysis
The NS forming logic for the LPD model is obtained form the Y1 and Y0 EV K-maps in
Figure 3.4b. When looped out as shown, the results are given by Eq. (3.1). Here, three static-1
hazards are identified all consistent with the state diagram in Figure 3.4a. Their hazard covers
(HCs) are indicated by brackets.
B
11 11
HC
_& _ _
}
Y1 = A B + y1 B + y1 y0 A + y1 y0 A
_ __ _ __
Y0 = y 1 A B + y1 AB + y1 y0B + y0 A B + y1 y0 A (3.1)
% %
HC 1 HC2
01 __ 11
AB Hazard cover
11 11
A
Note in Eq. (3.1) that there is only one set of coupled terms in the Y1 expression, an exter-
nally initiated static-1 hazard occurring in state 11 during a change A → � while holding on B. The
hazard cover for this static hazard is y1y0B, but which is contained in the essential prime implicant
(EPI) y1B. Thus, in this case, an EPI also serves as hazard cover. Although somewhat rare, this is
something for which the designer must always check so as to avoid excessive redundant cover.
In contrast, Eq. (3.1) shows that there are two static-1 hazards present in the expression for
Y0. One is an internally initiated static-1 hazard that takes place on a 11 → 01 transition under
input conditions � � (refer to the state diagram in Figure 3.4a). The hazard cover HC1 is y0 � �,
which permanently eliminates this static-1 hazard; with hazard cover, this static hazard is not pos-
sible under any circumstances. The second static-1 hazard is externally initiated occurring in state
Interval = 12.0 ns
y1(H)
y0(H)
(a) (b)
Figure 3.5: Timing diagram segments showing the effect of the two static-1 hazards in Y0 of Eq.
(3.1). (a) Without hazard cover HC1. (b) Combined action of both static-1 hazards in the absence of
hazard covers HC1 and HC2 resulting in logic instability.
detection and elimination of timing defects in asynchronous FSMs 39
11 under holding condition A when B changes B → �. The hazard cover for this hazard is HC2 =
y1y0 A, which permanently eliminates the possibility of its formation. The reader will note that both
_
types of hazards result from a 1 → 0 change in a coupled variable, a state variable change y1 → y 1 in
one case and an external input variable change B → � as the other. The internally initiated static-1
hazard forms as a result of a transition 11 → 01 under constant inputs � �. The externally initiated
static-1 hazard forms in state 11 under holding condition A. The actions of these static-1 hazards
are shown in Figure 3.5. When both static hazards are active, as shown in Figure 3.5b, unstable
conditions occur and malfunction of the FSM most likely results. The interval of 12.0 ns indicated
in Figure 3.5a is the time it takes for this hazard (without HC1) to be activated and is predictably
equal to the delay through four gates. For this simulation, the gates and C-elements in the simulator
have been set to have a fixed delay of 3.0 ns with inverters set to 1.0 ns.
For comparison purposes, we now run a static-1 hazard analysis on the SR nested element
logic. When the SR logic is extracted from the NS EV K-maps in Figure 3.4b, the results are:
_ _ _ __
S1 = A B R1 = y0 AB + y0 A B
_ __ _ _ _
S0 = y1 A B + y1 AB R0 = A B + y1 A + y1B (3.2)
%
}
00 B 00 HC
An inspection of the NS forming logic in Eq. (3.2) indicates that there is a static-1 hazard
present in the expression for R0. The coupled terms �B + �1 A in R0 produce the hazard on a A →
� change in state 00 and is eliminated by the consensus term �1B. However, use of C-elements as
the memory, serve as filters for hazards developed in the NS forming logic. Thus, there is no need
to include the hazard cover term indicated in Eq. (3.2). This hazard cannot reach the output of the
C-element.
Comparing the LPD and nested element NS logic expressions in Eqs. (3.1) and (3.2) in-
dicates a typical difference in the relative complexity of these two design approaches. The total
gate/input tally for Eq. (3.1) is 10/31 (with one shared PI y1y0 A), whereas that for Eq. (3.2) is 10/23
including the shared PI A� in the R1 and R0 expressions. Not included in these gate/input tallies
are the presence of possible inverters, Sanity inputs that would be applied to the presumed NAND
logic expressions in Eq. (3.1), and the inclusion of two C-elements to implement Eq. (3.2). Invert-
ers can be included in the tallies only if the activation levels of the external inputs are known.
3.3.2 Detection and Elimination of Static Hazards in the Output Forming Logic
Static hazards can occur in the output forming logic as well as in the NS forming logic. However,
there is one major difference. A static hazard occurring in the NS forming logic of an asynchronous
40 Asynchronous sequential machine design and analysis
y0
y1 0 1
0 1 A Z = y0 A + y1 y0 + y1 A
1 0 A 01 00 HC
A
Z
(a) (b)
Figure 3.6: (a) Output logic K-map plotted from Figure 3.4a. (b) Minimum SOP logic extracted
from Figure 3.5a showing an internally initiated static-1 hazard and its cover.
FSM has the potential to cause the FSM to malfunction. A static hazard occurring in the output
forming logic can cause a problem only if the transient effect of the hazard can cause a problem in
the next stage to which that output is an input. The duration of the transient behavior for all static
hazards typically occurs over a period equal to an inverter or gate delay. Shown in Figure 3.6a is
the output logic K-map extracted from Figure 3.4a, indicating the presence of an internally initi
ated static-1 hazard and its cover. This hazard occurs on a 01 → 00 transition under input condition
A and is a negative glitch of strength equal to that of an inverter. The timing diagram for this static
hazard is given in Figure 3.7 and accompanies Eq. (3.1). An interval of 16.0 ns is required for pro-
duction of the static hazard following activation of input A to initiate the transition 01 → 00. This
interval is the delay equal to five gate delays plus an inverter.
signs. For example, in Eq. (3.1) there are two sets of couple terms with two or three coupled variables
all of which are capable of producing function hazards. Function hazards in the NS forming logic
of asynchronous LPD FSMs can be avoided if their input changes are always minimally separated
in time. A function hazard cannot be eliminated by static hazard cover, but use of the nested C-
element approach can help to eliminate the effect of function hazards. However, C-elements can go
metastable under certain conditions as discussed in Section 3.7.
1. Identify the origin state and the destination state in a state-to-state transition involving a
change of two or more state variables.
2. If the origin and destination states have the same output action relative to a given output,
look for the presence of at least one ORG relative to that output which can appear as either
a positive or negative glitch.
3. If the origin and destination states have a different output actions relative to a given output,
an ORG is not possible relative to that output.
ORGs are timing defects that can be quite disruptive to the proper operation of a given asyn-
chronous FSM. Appearing in an output signal, an ORG can be of strength (time duration) ranging
from that for an inverter to several gate delays. In a synchronous FSM, such unwanted transient
signals are easily filtered out by the action of the flip-flops and clock signal. However, in an asyn-
chronous FSM there is no suitable means to filter out ORGs so they must be eliminated.
An inspection of the state diagram in Figure 3.4a indicates the presence of an ORG if the
FSM transits from origin state 01 to destination state 10 via state 00 under branching conditions
�B. In this case, the origin and destination states have the same output action relative to output Z,
that is, neither state can issue an output under branching condition �B. If the FSM should transit
01 → 10 via race state 00, an ORG will occur. Shown in Figure 3.7 is this ORG that is a positive
0 → 1 →0 glitch of strength equal to the path delay of an inverter. The transition 01 → 10 via race
state 11 under branching condition �B, should it occur, would not produce an ORG because the
output action in that state is conditional on an active input A. Setting (Z if A) in state 00 eliminates
42 Asynchronous sequential machine design and analysis
Interval = 16.0 ns
CL(L)
A(H)
B(H)
y1(H)
y0(H)
Z(H)
Figure 3.7: Timing diagram segment for the output logic given in Figure 3.6 showing a static-1
hazard (exclusive of hazard cover), and an output race glitch (ORG).
the ORG on a 01 → 10 transition. The state diagram given in Figure 1.6a does not have an ORG
associated with the transitions 00 ↔ 11 based on the three ORG detection rules given at the begin-
ning of this section.
τ1 τ2
Indirect
τ2 yb
path
2nd Invariant
Indirect τ3 yb
path 2nd Invariant
∆tcorrect
∆tcorrect
(a) (b)
Figure 3.8: Illustrations of path delay requirements for E-hazard formation in two-level logic show-
ing causal delays ∆tE , initiator input X, first and second invariants, gate delays τ, race gate (RG), and
correction delays to eliminate the E-hazard. (a) First-level race gate indicating direct and indirect delay
paths to race gate. (b) Second-level race gate indicating direct and indirect delay paths to race gate.
Race to Second-Level RG
E-hazard forms if (∆tE + t1) > (t2 + t3 + t4) ⇒ ( yb wins race with initiator X )
E-hazard eliminated if (∆tE + t1) < (t2 + t3 + t4 + ∆tCorrection) ⇒ (initiator X wins race with yb)
The delay indicated by ∆tCorrection is a counteracting delay placed in a specific feedback path to ne
gate the effect of the inadvertent delay ∆tE, thereby permitting the FSM to function normally.
fc I a � I ab in state a
f ab
I
I ab= Lxi xj L I ab
fcx c fb
I
Lyiyj Included in
1st Level ANDing f bc
I
I bc= Lxi xj L I bc
fcb fbc Race Gate if fa
I
yj I bc Yi
I
b xi = Initiator input
Lyiyj fb
Only a single change in the initiator x i
yi = First invariant is allowed in a � b � c transitions with
Path to
x j and all other inputs held constant.
yj = Second invariant 2nd Level ORing
Race Gate if
For E-hazard formation
yi I ab Yi I ab f cb
I
a
I
Lyiyj fab For D-trio formation
I ab f cb
I
fa (a) (b)
Figure 3.9: Minimum requirements for first-order E-hazard and d-trio formation in two-level SOP
logic. (a) State diagram segment showing first- and second-level race gate requirements only one of
which will be met in the first-invariant function Yi. (b) Minimum requirements for E-hazard and d-trio
formation indicating assumed input conditions for Iab and Ibc.
E-hazard that erroneously transits a → b → c → b eventually residing stably in state b where it was
intended to go, but by a roundabout path including state c.
With reference to Figure 3.9, the following is a summary of the minimum requirements for
activation of E-hazards and d-trios in asynchronous FSMs (here, I denotes an input condition and
f is a branching condition):
1. The IP must be via a gate in the second invariant that cannot contain the RG.
2. The IP must not be inconsistent with all state variables of the initiation state a in Figure
3.9, meaning the state variables . . . �i, �j.
3. The IP must not be inconsistent with any input held constant during the E-hazard transi-
tion, meaning input xj in Figure 3.9.
_
4. The IP must contain the initiator as either xi or x i.
5. The IP must follow a path to the RG that is unobstructed.
_
Therefore, the IP must be via a gate in Yj (second invariant), must contain xi or x i, and must not be
_
inconsistent with . . . �i �j and xj for SOP (and . . . yi yj, and x j for POS). For the sake of brevity, we
will not include POS NS forming logic in our discussions.
Note: Always check any static hazard (S-hazard) cover present for possible involvement in
the formation of an E-hazard. Static hazard analysis and their elimination must always precede any
E-hazard analysis because the effects caused by active static hazards are sometimes similar to those
caused by E-hazards.
ANDing race gate test. AND the branching condition for the second transition in a suspect E-
hazard path with the second invariant state variable. If the result is contained in the expression
for the first invariant, then an ANDing RG exists as depicted in Figure 3.8a. In this case, further
analysis for an ORing RG is not necessary. ANDing RGs are more often encountered than ORing
RGs.
ORing race gate test. If the test for an ANDing RG is negative, then the analysis must be
extended to ORing race gates. An ORing RG means that the race occurs at a second-level gate,
which in NAND logic is an ORing operation. To determine whether an ORing RG is present,
AND the branching condition for the first transition with the first invariant state variable. If the
result is contained in the expression for the first invariant, then an ORing RG exists as depicted in
Figure 3.8b. Clearly, the formation of an E-hazard or d-trio by a second-level ORing RG is more
unlikely than for a first-level ANDing RG because a larger causal delay ∆tE is required, as indicated
by Figure 3.8.
Path of
E-hazard
Figure 3.10: Simple example of an FSM containing a single E-hazard showing either an ANDing
RG or the path to an ORing race gate—one or the other but never both.
FSM presented in Figure 3.10. Here is what we can directly deduce from the state diagram together
with Figure 3.9: � � ⊆ fa = A + �, �B ⊆ fb = �B, and there is only one change in initiator B
with ( � held constant) over the transitions a → b → c. Furthermore, viewing the 00 → 01 → 11
transitions, it is clear that y1 is the first invariant and y0 is the second invariant. Therefore, to initiate
the E-hazard, it is required that � � → �B in state a and that an inadvertent delay ∆tE of sufficient
magnitude be explicitly located on the initiator B line to the first invariant Y1. Also, the IP must be
y0 y0 y0
y1 0 1 y1 0 1 y1 0 1
0 0 AB 0 0 AB 0 (A+B)
1 A + B 1 (A+B) 1 AB
Y1 S1 R1
y0 y0 y0
y1 0 1 y1 0 1 y1 0 1
0 AB A 0 AB A 0 (A+B) A
1 A + B 1 (A+B) 1 AB
Y0 S0 R0
(a) (b)
Figure 3.11: K-maps derived from Figure 3.10 showing minimum SOP cover. (a) Cover for the
LPD design. (b) Cover for the nested SR element logic design.
detection and elimination of timing defects in asynchronous FSMs 47
via a gate in Y0, must not be inconsistent with �1, �0, �, and must contain the initiator as either B
or �.
All that now remains is to obtain the NS forming logic for the FSM in Figure 3.10 so as to
determine the RG, IP, and the minimum delay (∆tE) required to activate the E-hazard. Figure 3.11
shows the K-maps for LPD and SR nested element models as extracted from the state diagram in
Figure 3.10. Here, we have followed the extended mapping algorithm given in Section 2.1. From
these K-maps, we loop out minimum cover for the LPD and nested SR element designs with the
results given by Eq. (3.3) together with the output function Z. Note that an S-hazard exists in NS
function Y1 with hazard cover y1y0 � added to eliminate the hazard. No hazards are possible for the
SR functions, which is almost always the case.
RG RG
__ _ __ _ ©
Y1 = y0 A B + y1 B + y1 y0 A S 1 = y0 A B R1 = A B «
}
®
–A HC
_ _ _ _ _
« (3.3)
S 0 = AB R0 = A B + y 1 A
§
Y0 = A B + y0 A + y1 B
IP Z = y1 y0 IP
«
«
§
©
«
«
«
®
©
§
The RG and IP can now be determined by viewing the state diagram in Figure 3.10 and by
taking into account the minimum requirements for E-hazard formation given in Section 3.6.1. We
must ask ourselves the following questions:
1. For an ANDing RG, is y0 � � contained in Y1? Answer: Yes (see Eq. (3.3))
2. For an ORing RG, is �1�B contained in Y1? Answer: No
_ _
(∆t E + τ Inv ) > τ AB + τ Y0 or (∆t E ) > τ AB + τ Y0 − τ Inv (3.4)
Here, τInv is included because B(H ) must pass through an inverter before it can be an input to RG
y0 � �, where the race occurs. Also, tY0 represents the OR function delay required to produce Y0, as
48 Asynchronous sequential machine design and analysis
is evident from Eq. (3.3). Similarly, for a C-element design, the minimum path delay ∆tE required
to activate the E-hazard is from Eq. (3.3) given by
_ _
(∆t E + τInv ) > τ AB + τC - element or (∆t E) > τ AB + τC - element − τ Inv (3.5)
Z = 1 y0 (3.6)
This output is of interest to us at this point only if the E-hazard becomes active. An E-hazard
transition a → b → c would cause the output Z to glitch over a period equal to two gate delays as
indicated in the timing diagram of Figure 3.13.
In
di
re
Direct Path y0(H)
RG ct
Pa
A(L) th
B(H) ∆tE
y1(H)
A(H) A(H)
A(L) y1(L)
B(L)
Sanity(L)
B(H)
B(L) y1(L)
In A(H) y0(H)
di
re A(L)
ct
Pa B(H)
th
IPG
y1(L)
Z(H)
y0(H)
Figure 3.12: C-element circuit using the wireless connection feature for the SR logic in Eq. (3.3)
showing the RG, IPG, and the race between the direct path of the initiator B and the indirect path of
the second invariant y0.
detection and elimination of timing defects in asynchronous FSMs 49
In our simulations up to this point, we have, for simplicity, assigned a propagation delay of 3.0
ns to all gates and C-elements, and a propagation delay of 1.0 ns to each inverter. (The simulator
does permit a wide variation of assigned gate, C-element, and inverter delays.) With this in mind,
the minimum path delay to activate the E-hazard for either Eq. (3.4) or Eq. (3.5) is
∆t E > (3 + 3 − 1) = 5 ns . (3.7)
This result is easily tested by simulation. To do this, we take the C-element design for sim-
plicity. Shown in Figure 3.13 are the simulations for two settings of ∆tE, one exactly at 5.0 ns for
normal operation, and the other at 5.1 ns causing the formation of the E-hazard. Note that, in the
latter case, the FSM transits incorrectly 00 → 11 via state 01 spending two gate delays (tAND +
tC-element = 6.0 ns) in that race state. What is happening here is that the delay ∆tE, of sufficient
magnitude, allows the second invariant to win the race with the initiator B at the RG, thereby per-
mitting the FSM to cycle from state 00 to 11 via state 01. In effect, the FSM tries to execute the
proper state change required by � � → �B but because y0 wins the race with initiator B, the FSM
still senses � � and transits on to state 11, after which �B becomes valid. If ∆tE is not of sufficient
magnitude to activate the E-hazard, normal operation will occur.
An active E-hazard can effect an output involved in the E-hazard path. This is illustrated in
Figure 3.13, where an output glitch of 6 ns is produced as a result of the E-hazard path 00 → 01 →
11, where the FSM spends 6 ns in state 01. Of course, if the E-hazard is absent, the E-hazard OP
4.0 ns 6.0 ns
CL(L)
A(H)
B(H)
y1(H)
y0(H)
Z(H)
ORG E-hazard OP ORG
E-hazard Glitch
(a) ∆ tE > 5.0 ns (b) ∆ tE = 5.1 ns
Figure 3.13: Timing diagrams for the C-element design of Eq. (3.3) showing the effect of an active
E-hazard. (a) Normal operation with Δt E ≤ 5.0 ns. (b) FSM malfunction due to an E-hazard formation
when Δt E > 5.0 ns.
50 Asynchronous sequential machine design and analysis
glitch disappears. Note that with or without the activation of an E-hazard, an ORG is produced
during the 11 → 00 transition via race state 01. This is a relatively large ORG of 4-ns duration.
However, this ORG can be easily eliminated by making the output Z conditional on �B. Now,
the branching 11 → 00 caused by the branching condition A� cannot activate Z during a race
path via state 01. The large ORG demonstrates that such timing defects can be very disrup-
tive should the output be presented to a next stage that can be affected by such transient output
signals.
D-trio formation. So far, we have not demonstrated the formation of d-trios mainly because
an active d-trio may or may not be disruptive to the operation of the FSM. For completeness, we
draw the readers’ attention to the FSM in Figure 3.4. There are three d-trios identified from this
state diagram. They are a → d → c → d, d → a → b → a, and c → b → a → b. We will take the first
one 00 → 10 → 11 → 10 for demonstration purposes. Here is what we can deduce from the state
diagram together with Eq. (3.1): The initiating transition is AB → �B, the initiator is A with B held
constant. The ANDing RG is y1AB in Y0, y0 = first invariant and y1 = second invariant. ∆tE must ex-
ist on the A line to Y0. The IP must not be inconsistent with �1, �0, B; must contain A or �; and must
exist via a gate in Y1. Therefore, the IP must be �B. From this information we calculate the mini-
mum causal delay to be ∆tE > (τ Inv + τY1). If y1 wins the race with initiator A at the RG y1AB, then
the FSM will transit to state 11 where, after a short while, it will sense �B and transit back to state
10. Given the delays we have assigned to the simulator used in this text, ∆tE > (τ Inv + τY1) = 4 ns.
To show an understanding of the analysis process, the reader should prove that the d-trio c → b →
a → b requires an ORing RG if A� → � � occurs in state 11, and that the path to the ORing RG
is via y0 � � in Y0, which is a hazard cover. Now find the IP.
Elimination of E-hazards. Inadvertent delays ∆tE occur for various reasons; the most common
are due to manufacturing errors such as those made at the foundry. For this reason, the designer
cannot disregard the possibility that an E-hazard of sufficient magnitude may appear at a specific
location. So what can be done to eliminate the possible formation of the E-hazards that may exist
in a given FSM? The answer is simple and is depicted in Figure 3.8. All that is necessary is to place
a counteracting delay ∆tCorrect in the feedback of the second invariant state variable. A conservative
value for this counteracting delay would be equal to ∆tE as determined from E-hazard analysis.
But what if E-hazards and d-trios abound in a complex state diagram? Some designers would rec-
ommend that the “shotgun” approach be used—that is, the placing of counteracting delays on all
feedback lines. The problem with this approach is that these delays placed on all feedback lines may
significantly slow down the operation of the asynchronous FSM. So, whenever it is possible and
justifiable, the designer should take the time to run the required analyses to determine where the E-
hazards exist and assign reasonable values of ∆tCorrect to be placed in certain specific feedback lines.
If only one or two E-hazards exist in a relatively complex FSM, it would be a wise move to treat
detection and elimination of timing defects in asynchronous FSMs 51
them separately. Also, it is known that some E-hazards require such large ∆tE that nothing may
need to be done to prevent their becoming active. However, there is one caveat that should be men-
tioned here. Modern designs now use gates (or their metal-oxide semiconductor equivalent) that
are extremely fast, having very small propagation delays. Line delays caused by transmission line ef-
fects, for example, can cause E-hazards in such circuits. Thus, the designer of such modern circuits
would be well advised to consider gate propagation delays relative to circuit or chip layout to make
an intelligent decision as to what, if anything, must be done regarding possible E-hazard formation.
If counteracting delays ∆tCorrect are necessary in y-variable feedback lines, use of an even number
of inverters is usually the best choice. Alternatively, inertial delay circuits can be used, but at an ad-
ditional cost in hardware together with an unnecessary increase in response time. An inertial delay
will usually consist of capacitors, diodes, resistors, and a rendevous module (see Tinder’s text in
Endnotes).
This brings us to reiterate some important points. E-hazards are “sequential” hazards that
are strictly a function of the sequential behavior of the asynchronous FSM as evidenced from an
inspection of the state diagram representation. FSMs of three or more states are subject to pos-
sible E-hazard formation, but only in state machines operated in the fundamental mode. In such
machines, they are nearly always regarded as potential timing defects that can be activated only
when delays exceeding a minimum value are placed in specific locations in the circuits. If active, E-
hazards are guaranteed to cause the malfunction of the asynchronous FSM. The only reliable means
of eliminating an E-hazard is to place a counteracting delay in the feedback of the second invariant
state variable as discussed in Section 3.6.
arbiters can be justified in C-element-based FSMs is a matter that the designer must weigh. It is
doubtful that any input conditioning arbiter module can properly deal with the “keeper inverter”
issue. However, the use of a properly designed arbiter can detect a metastable condition and prevent
that metastability from being passed on to the next stage. Chapter 11 discusses bus and handshake
arbiters that effectively deal with the metastability problem.
• • • •
53
chapter 4
We now describe a class of asynchronous finite state machines (FSMs) whose transition times
are the fastest possible and that avoid all race-associated timing defects, namely, critical races and
output race glitches (ORGs). This class of fundamental mode FSMs are commonly called single
transition time (STT ) machines. Here, state code assignments must be found that will eliminate
critical races and ORGs while at the same time producing next state (NS) functions that represent
the fastest transition times possible. The means by which this can be accomplished is called the ar-
ray algebraic approach to state machine design. This approach lends itself nicely to computer-aided
design (CAD) all without the use of state diagrams or K-maps. Instead, use will be made of the state
table and partitioning methods as discussed in the following sections.
1. By using a state diagram, construct the state table free of cycles and buffer states both of
which are strictly forbidden. Use state identifiers (a, b, c, …) in the state table as was done
in Figure 1.6b and make certain that the sum rule holds for all states. Violation of the
sum rule can cause critical races. If any two rows in the state table are identical with re-
spect to the state identifiers, merge these two rows into one and rename the state identifiers
accordingly.
2. Identify the state that is to be initialized and assume that it will be an all-zero state (…000)
or an all-one state (…111) following the initialization procedure given in Section 2.2. Al-
though these assumptions are not mandatory, they do simplify considerably the initializa-
tion process.
54 asynchronous sequential machine design and analysis
3. Partition the state transitions into sets that eliminate critical races and ORGs. This is done
by the use of π (partial)-partitions gathered from the input columns of the state table by
applying an extension of the “into rule” stated as follows:
The into rule: Make logically adjacent assignments to present states that branch “into” a
common state, provided that their input conditions are the same.
The state identifier for the initiation state, together with all the other state identifiers as-
sociated with that initialization state, must be positioned on the left side of the π-partitions
(separated by a comma). In doing this, a valid STT state code assignment can be obtained
by following the remaining steps of this procedure.
4. Collect the π-partitions that include all state identifiers into τ (total)-partitions such that
each τ-partition begins with the state identifier for the initialization state and all other as-
sociated state identifiers on the left side of the partition (indicated by a comma).
5. Find the minimum set of τ-partitions that “cover” all π-partitions. The resulting number
of τ-partitions is equal to the minimum number of state variables for the FSM. If there
is more that one minimum set of τ-partitions, any one of the minimum sets will yield an
optimum or near optimum STT design—there is usually little difference in their use.
6. Select a valid state code assignment for the FSM from a minimum set of τ-partitions
choosing the initialization state to be either an all-zero state (…000) or an all-one state
(…111), not a mixture. Note that for FSMs lacking cross branching, the partitioning meth-
ods default to a unit distance (Hamming distance of one) coding of states as for the cor-
rected FSM in Figure 3.3.
AB AB
AB AB AB AB
c c
AB AB
(a) (b)
AB
I0 I1 I3 I2
ym-1 ... y1y0 00 01 11 10 R S T
y1y0
a b c a a 0 0 B y2 00 01 11 10
b b c a b A 0 0 0 a b c
c b c d c 0 0 0
1 d
d b d d a 0 A 0
(c) (d)
Figure 4.1: (a) State diagram for an FSM having two cycle paths. (b) The state diagram in (a) with
the cycle paths removed. (c) State table for the state diagram in (b). (d) State assignment map obtained
from the state matrix, S.
Note that τ2 combines π-partitions π4 = ad, b and π5 = ad, c, the numbering system being a matter
of choice. Because there are three τ-partitions, there must be a minimum set of three state variables
with a chosen as the initiation state. If we choose to initialize into the 000 state, a valid state as-
signment matrix, S , is given in Eqs. (4.1), which is used to plot the state assignment map in Figure
4.1d.
τ1 τ3 τ2 I0 I1 I3 I2
a 0 0 0 a 0 0 ab ad
S =
b
c
0
0 0
1
1
1
D =
b
c
0
1 0
abc
0 b
0 c
d 1 1 0 d 0 d cd 0 (4.1)
56 asynchronous sequential machine design and analysis
The column arrangement in the S matrix is a matter of choice because there are 3! = 6 ways to
permute the three τ-partitions and hence 6 possible and valid state code assignments. We have cho-
sen the state assignment given in S specifically for later comparison with the computer automated
design of this FSM given in Section 4.4. If initializing into a = 111 state is an alternative, then there
are 2 × 3! = 12 possible and valid state code assignments. Generally, there are n! valid state code as-
signments for n state variables when the initialization state is chosen to be the all zeros state, or 2n!
valid state code assignments if initialization into the all ones state is an alternative.
The destination matrix D is also given in Eqs. (4.1). It is constructed from either the state
table or state diagram by identifying those states whose destination is to a specific present state
identifier under a given branching condition. For example, under branching condition I0 = � �,
state b exclusively branches to itself (a holding condition). Or, under branching condition I1 = �B
states a, b, and c branch to state c, whereas state d branches to itself as a holding condition. The “1”
in the I0 column for D results from the state association abcd = 1.
Now, with the S and D matrices known, we can find the function matrix, FNS given by
⎡ ⎤
⎡ ⎤ 0 0 ab ad ⎡ ⎤
0 0 0 1 ⎢ ⎥ 0 d cd 0
⎢ ⎥⎢1 0 0 b⎥ ⎢ ⎥
FNS = S̃D = ⎣ 0 0 1 1 ⎦ ⎢ ⎥ = ⎣ 0 1 cd c ⎦
⎣0 abc 0 c ⎦
0 1 1 0 1 abc 0 bc
0 d cd 0 (4.2)
⎡ ⎤
0 y2 y1 0
⎢ ⎥
= ⎣0 1 y1 2 y1 ⎦
1 ( 1 + y0 ) 0 y0
∼
Here, S is the transpose of S, the matrix multiplication result abcd = 1, and the y-variable matrix on
the right side is one of a few alternative forms obtained from the state assignment map in Figure
4.1d. Notice that Figure 4.1d permits �2y1 or y1y0. Although the y-variable matrix in Eqs. (4.2) is
handpicked for the state assignment chosen, the reader must note that for complex asynchronous
state machines it may be necessary to use a logic minimizer to obtain an optimum y-variable matrix
from the state assignment map. This is done within the CAD program called ADAM (Automated
Design of Asynchronous Machines), described in Section 4.4.
The NS functions can now be found from the following conformable matrix multiplication,
where it will be recalled that I0 =� �, I1 = �B, I3 = AB, and I2 = A�:
⎡ ⎤
⎡ ⎤ I0 ⎡ ⎤ ⎡ ⎤
0 y2 y1 0 ⎢I ⎥ Y2 y 2 B + y1 AB
⎢ ⎥⎢ 1 ⎥ ⎢ ⎥ ⎢ ⎥ (4.3)
FNSI = ⎣ 0 1 y1 2 y1 ⎦ ⎢ ⎥ = ⎣ Y1 ⎦ = ⎣ B + y1 AB + 2 y1 A ⎦
⎣ I3 ⎦
1 1 + y0 0 y0 Y0 + 1 + y0 ) B + y0 A
)
I2
design of single transition time machines 57
After simplification by applying the factoring and absorptive laws (see Appendix A.2), there results
the final two-level expressions for Y2, Y1, and Y0 given by
Y2 = y2 B + y1 AB + y2 y1 B
HC
Y1 = B + y1 B + 2 y1 A (4.4)
Y 0 = + 1 + y0 + y0
where HC below the term y2,y0B indicates that term is a static 1-hazard cover for the coupled terms
y2 �B, y1 AB. Without the hazard cover, this hazard would cause a 1-0-1 glitch in Y2 when A → �
in state 110 = d under holding condition B. The y-variable matrix in Eqs. (4.2) interpreted from the
state assignment map in Figure 4.1d eliminates all other S-hazards. (See Section 3.3.1 for a review
of S-hazards in the NS forming logic.)
Following a similar procedure, the three outputs are obtained as follows:
� �
FR = R̃ DI = [0 A 0 0] DI = 0 A 0 A y1 y0 I R = y1 y0 AB
� � � � (4.5)
FS = S̃DI = 0 0 0 A DI = 0 Ay2 Ay1 0 I S = y2 AB
� �
FT = T̃DI = [B 0 0 0] DI = 0 0 B y1 B y0 I T = y1 AB
Here, I represents the input column matrix as in Eqs. (4.3). Notice that the term y2 �B for S is a
shared PI with the first term in Y2. Such shared PIs are common in the array algebraic method. This
brings the total NS and output gate/input tally for the LPD results to 15/40 exclusive of inverters.
Now that the LPD NS forming logic has been found by using the array algebraic approach,
we will use Y → SR K-map conversion to obtain the set–reset (SR) logic required for C-element or
SR basic cell design of this FSM. To do this, we will plot the NS logic in Eqs. (4.4) in third-order
entered variable (EV) K-maps so that the essence of the array algebraic approach is maintained.
Then, using these K-maps, we will convert to SR EV K-maps following the procedure outlined
and demonstrated in Section 2.1. The K-map Y → SR conversions are shown in Figure 4.2, where
optimum SR logic is indicated by shaded loops. The reader should follow the plotting and loop-out
processes closely so that the procedures are fully understood. (Refer to Appendix A.3 for a review of
EV K-map minimization.) The SR results are given below.
S2 = y1 AB R2 = + 1 A
S1 = B R1 = + y2 (4.6)
S0 = + 1 R 0 = AB
Notice that there is one shared PI, AB, bringing the total NS and output gate/input tally to 13/31
exclusive of C-elements and inverters. When the three C-elements are included, the total NS and
58 asynchronous sequential machine design and analysis
y1y0 y1y0 y1y0
y2 00 01 11 10 y2 00 01 11 10 y2 00 01 11 10
Figure 4.2: The NS logic LPD-to-SR K-map conversion showing optimum SR cover for use with
Muller C-elements or SR basic cells.
output gate/input tally becomes 16/37, again exclusive of inverters. Inverters are not tallied unless
their input activation levels are known. Note also that the sanity circuit initialization input to the
C-elements is not indicated in Eqs. (4.6). That is because the initialization input overrides the NS
forming logic permitting normal operation of the FSM beginning from the initialization state (state
a = 000 in this case) only after the sanity input has been “turned off.”
Shown in Figure 4.3 are two implementations of the asynchronous FSM in Figure 4.1b.
These are the lumped path delay (LPD) model by using Eqs. (4.4), and the SR design with C-
elements by using Eqs. (4.6). In both cases, inputs A and B are assumed to arrive active high, and
the sanity circuit input is assumed to be that of Figure 2.5a with input requirements illustrated in
Figure 2.7a and 2.7c. Notice that in the case of the LPD model in Figure 4.3a, the Sanity(L)
inputs must be applied via the ANDing operations to the NS logic. In contrast, the C-element
implementation in Figure 4.3b allows the Sanity(L) inputs to be applied directly to the C-elements.
However, in either case, initialization is an override forcing the FSM into the a = 000 state ready for
the FSM to operate normally once the Sanity(L) input changes 1(L) → 0(L). Notice that the wire-
less connection feature is used in Figure 4.3 to simplify the circuit and thereby minimize the chance
for error, as will be the practice throughout this text. This is the same schematic capture feature that
is recommended for use with the logic simulator described in the Preface.
design of single transition time machines 59
Simulation of the C-element implementation in Figure 4.3b is shown in Figure 4.4 together
with the outputs in Figure 4.3d. The reader should verify the validity of this timing diagram by
comparing it with the state diagram given in Figure 4.1b. One advantage of the C-element design
is that it minimizes the effects of function hazard formation in the NS logic when inputs change
in close proximity to each other. This advantage results from the fact that C-elements operate
y2(H)
A(L)
B(H)
y1(H)
A(H)
B(H) y2(H)
y1(H)
y2(H) y2(L) A(H)
B(H)
y1(H)
B(H) HC y2(H)
B(H)
y2(L)
A(L) y1(L)
B(H) A(H) SAN(L)
y1(H)
A(L)
B(H) y1(H) B(H)
A(L)
y1(L) B(L)
A(L)
y2 (L)
y0(H) A(L)
y0(H) y0(H)
A(L) y0(L) A(H)
B(H)
y0(L)
y0(H) SAN(L)
B(L)
Outputs
Intputs
y (L)
A(H) A(L) 1 y (H) y (L)
y (H) 2 1
0 R(H) A(L) S(H) A(H) T(H)
B(H) B(L) A(H)
B(L) B(H) B(H)
(c) (d)
Figure 4.3: Implementation of the FSM in Figure 4.1b by using the wireless connection feature.
(a) The LPD model by using Eq. (4.4) including hazard cover indicated by the shaded gate. (b) The SR
design with C-elements by using Eq. (4.6) with no hazard cover needed. (c) Inputs. (d) Output logic.
60 asynchronous sequential machine design and analysis
outside the fundamental mode. However, the reader must be warned that if the inputs to an output
function change in close proximity to each other, a function hazard can occur in that output signal.
Remember that a function hazard actually represents a “proper response” to inputs that are allowed
to change close to each other. The problem arises when the inputs change so close to together
that an output spike occurs that might or might not cross the switching threshold. This potential
problem is eliminated by requiring that input changes to the output logic be minimally separated
in time. However, internally initiated function hazards (by y variables) can occur and are difficult,
if not impossible, to eliminate. Static hazards are rare in the output logic functions that derive from
the array algebraic approach, regardless of the model used.
A simulation of the LPD circuit in Figure 4.3a will differ only slightly from that in Figure
4.4 because of the difference in throughput delays of the two implementations. The C-element
design is basically a three-level design, whereas that for the LPD circuit is a two level design—refer-
ring to levels of path delay. This difference is somewhat offset by the fact that the average number
of gate inputs is a little more than 3 for the LPD design compared to about 2 for the C-element
design. Remember that gate propagation delay increases with number of inputs. Thus, we conclude
that the two designs are expected to have about the same power/delay product.
The LPD and SR designs of the FSM in Figure 4.1b, without the use of the array algebraic
approach, can be done as in Figures 3.10 and 3.11. By using a logic minimizer (such as BOOZER,
described in the Preface), simplified results can be obtained. However, in doing this, ORGs and
critical races are now possible. The special state assignment partitioning methods used in the array
algebraic approach guarantees that these timing defects will not exist in the resulting logic. As a
SAN(L)
A(H)
B(H)
y2(H)
y1(H)
y0(H)
R(H)
S(H)
T(H)
Figure 4.4: Simulation of the C-element logic circuit in Figure 4.3b combined with the outputs in
Figure 4.3d.
design of single transition time machines 61
rule, the presence of cross branching will allow the presence of ORGs and/or critical races unless
sufficient numbers of state variables are added to remove any race conditions.
term y1 y0 A in Y1 provides entrance to Y1 via its y0 input as required to complete the IP. Note that
the new interpretation c = y1y0 does permit an ANDing RG in R1 and an IP via R0. Therefore, we
now conclude that the minimum path delay required for E-hazard #2 formation is (∆tE2 + t P) >
(t Inv + 3t P), assuming that input B arrives active high. Here, τP on the left side represents the
path delay through y1B, whereas 3τP on the right side represents path delays through gates y0�, Y0
(ORing), and y1y0 A in Y1 in that order. Thus, if y0 wins the race with A to the three-input NAND
gate performing the ORing operation for y1, the E-hazard will be activated. This E-hazard can be
prevented by placing a counteracting delay ∆tCorrect on the y0 feedback line such that (∆tE2 + t P) <
(t Inv + 3t P + ∆tCorrect).
With the Y1 changes given above, the reader should mentally trace through the direct and
indirect paths for this E-hazard in the LPD circuit of Figure 4.3. Note that E-hazard #2 is not pos-
sible for the SR model because it does not satisfy all requirements for E-hazard formation via an
ORing RG.
TABLE 4.1: CAD design of the FSM in Fig. 4.1(c) by using software called ADAM. (a) STT input
file, Fig. 4.1c. (b) Remarks on the input file. (c) Batch file Fig41c.bat as required
by ADAM for an SR design of Fig. 4.1(c).
necessary to overcome the DOS barrier when designing large STT FSMs. For our purposes, we will
design the STT FSM in Figure 4.1c to operate with C-elements requiring use of the SR batch file
Fig41c.bat given Table 4.1.
After the input and batch files shown in Table 4.1 are constructed using a .txt editor, they
must be saved to the C:\ADAM directory. Once they are there, the batch file can be activated (e.g.,
double click on Fig41c.bat), after which the seven output file contents given in Table 4.1c will be
generated and will appear in the C:\ADAM directory. Any of these files can be viewed through
the edit feature. The most useful of the output files are .out1 and .out7. The major parts of .out1
are given in Table 4.2 and are seen to be in agreement with Eqs. (4.1). The main parts of .out7 are
given in Table 4.3. Here, it will be seen that the cubes for S2, R2, S1, R1, S0, R0 are not necessarily
the same as those given in Eqs. (4.6) but they are, nevertheless, valid. If you consider that ADAM
must minimize (with ESPRESSO) state assignment maps such as those in Figure 4.1d with several
don’t care states, it is expected that ADAM will generate one of a variety of valid NS logic solutions.
In logic design, it is well understood that the larger the number of don’t care states in a logic map to
be minimized, the greater the number of possible valid design solutions. For further details on this
and other relevant subjects, the reader should consult the Readme.doc provided with ADAM. It will
become evident that ADAM is truly a versatile and powerful design tool.
A simulation of the ADAM SR state equations is identical with that in Figure 4.4 with the
exception of a function hazard that occurs in the y1(H ) state variable, and a static hazard that is
produced in T (H ). Function hazards are not unusual and must be expected when using ADAM for
design. This software will normally generate more p-terms (redundant PIs) than necessary in an
attempt to maximize the number of shared PIs, some subject to function hazard production. Read-
ing the logic for output T from Table 4.3a gives
T = 2 0 AB + 1 y0 AB (4.7)
design of single transition time machines 65
TABLE 4.2: ADAM results given in the file .out1 showing only the π- and τ-partitions, state
code assignments, and the destination matrix.
The Following lists all the π-Partitions The Following is the State Assignments
0001 0 Matrix as Derived from the τ-Partitions
01X0 1 000
0X10 2 001
X01X 3 011
X10X 3 110
0011 4
The Following are all the τ-partitions as The Following is the Destination Matrix as
Derived from the π-Partitions Derived from the State Table:
0001 0 0 0000 0000 1XX1 11XX
0110 2 1 1111 0000 X1XX 0000
0100 3 1 0000 111X XX1X 0000
0010 3 2 0000 XXX1 0000 XX11
0011 4 3
where it is clear that an internally initiated static-1 hazard exists during the b → a (001 → 000)
when y0 → �0 under branching conditions AB. Hazard cover for this S-hazard is �2 �1 AB. Note
that this hazard could be avoided by using the logic T = �1 AB as given in Eqs. (4.5). See Section
3.3.2 for a review of static hazards in the output forming logic. Simulation of the p-term table in
Table 4.3b for PLA design yields exactly the same logic waveforms. However, the static-1 hazard
in the output T (H) still remains as expected by considering the last two p terms in Table 4.3b and
Eq. (4.7).
The reader should see from an inspection of the SR and p-term cubes in Table 4.3 together
with the state diagram in Figure 4.1c that the minimum requirements for E-hazards #1 and #2
discussed in Section 4.3 are met for either implementation of this asynchronous FSM.
TABLE 4.3: (a) ADAM results given in the file .out7 showing only the final SR state equations
and the output equations, and (b) P-term table in Berkeley format for a PLA design.
(a) Cubes shown have the form: (b) P-term table in Berkeley
y2 y1 y0 A B format for PLA design
.i 6 (Number of inputs)
S2 = -1-11 The Final Output .o 6 (Number of outputs)
Equations are: .ilb y2 y1 y0 A B SAN (Input names)
R2 = -0-11, ----0 R = -0110 .ob Y2 Y1 Y0 R S T (Output names)
.p 15 (Number of P-terms)
S1 = -0-01 S = 1--01 -11101 011000
--1011 011000
R1 = 0100-, --0-0, ---00 T = 0-011-0111 -01101 001000
-0-011 011000
S0 = -0-01, ---00 ---001 001000
-11-01 001000
R0 = -1-11, -0-11 --10-1 001000
-01-01 001000
1--011 110000
-1-111 110000
11--11 110000
-0110- 000100
1--01- 000010
0-011- 000001
-0111- 000001
.e (End)
[1] Static hazards must be eliminated from the NS forming logic in asynchronous FSMs de-
signed by using the LPD model. This refers to static-1 hazards since we emphasize the use
of SOP NS forming logic in this text. Such hazards are filtered out by using the nested cell
model particularly when C-elements are used as the memory. No such filtering mechanism
is possible for the output forming logic in asynchronous FSMs for which hazard cover must
design of single transition time machines 67
be added if it is determined that a static hazard in a given output can affect the operation
of the next stage to which it is an input.
[2] There is no hazard cover that can be used to protect an asynchronous FSMs from the
formation of function hazards, which are common in the NS and output forming logic
of these machines. This is true independent of the Huffman design model used, LPD or
nested memory cell. Remember that function hazard formation is the proper response of
the NS and output forming logic to inputs that change close to each other. Although the
use of C-elements in the memory stage can help filter out some function hazards, the only
reliable means of eliminating function hazards is to make certain that such input changes
are separated by some satisfactory minimum period. Arbiters can be used to provide this
minimum separation, as explained in Chapter 11. What the designer does not want are
function hazard transients to reach near or slightly exceed the switching threshold of a
given gate where the effect on FSM operation can become unpredictable.
[3] E-hazards (sequential hazards) are potential timing defects that, if present and active, are
certain to cause the malfunction of asynchronous FSMs in which they are formed in FSM
designs that operate in the fundamental mode. This includes FSMs that use C-elements
as memory in designs we call quasi-Muller FSMs. These timing defects are produced by
delays placed at specific places in an asynchronous FSM with delay magnitudes that ex-
ceed certain minimum values. The problem is that most of these delays are unintended
and may occur as a result of foundry errors in chip production or that may occur simply
due to transmission line delays or both. In modern high-speed CMOS logic designs, the
minimum delays required to produce E-hazards are quite small, and may be of the order of
a nanosecond. The only reliable means of eliminating the effects of a given E-hazard is to
place a counteracting delay of some safe value on the feedback line of the second invariant
state variable. This is explained in detail in Section 3.6.
[4] Chapters 8 and 9 in Part II of this text feature Muller-type systems that effectively deal
with all hazard and race-related timing defects in the NS forming logic.
• • • •
69
chapter 5
Design of One-Hot
Asynchronous FSMs
The one-hot design of asynchronous finite state machines (FSMs) requires a state code assignment
consisting of a single “1” per state. One possible four-state state code assignment would be 0001,
0010, 0100, 1000, where a transition between any two states represents a Hamming distance of 2.
Thus, n states each require n state variables. In a one-hot circuit, each state-to-state transition re-
quires that the active “1” of the origin state remain active until the transition to the destination state
is complete. As a consequence, this forces the FSM to transit through a state with two 1’s, a state
consisting of 1’s from both the origin and destination states. This process continues as the asyn-
chronous FSM undergoes the remainder of its allowable transitions. The reader will learn that this
approach to asynchronous FSM design is remarkably simple requiring no next state (NS) or output
K-map optimization or static hazard analysis.
{
m −1 _
Yj = ∑ yk fj ← k
k=0
“Into” Terms
m −1
+ yj Fj
“Out of ”
Term
{ (5.1)
Z = ∑ yj fj (X )
k=0
Here, the “into” terms of Eqs. (5.1) represent the Boolean sum of all yk f j ← k branching conditions
into each jth state of a one-hot FSM. The “out of ” term for each NS variable Y is responsible for
forcing the FSM to transit via a state with two 1’s during an origin-to-destination state transition.
Fj in Eqs. (5.1) is the Boolean sum of all y variables in states to which the jth state transits, andF–j is
the complement of that sum. The model for the “into” terms to the jth state of Eqs. (5.1) is shown
70 asynchronous sequential machine design and analysis
fj� (m–1) fj � 2
fj�1 Ym –1 = y 0 f(m–1)� 0 + y1 f(m –1)�1 + y 2 f(m–1)� 2 + L + ym–1 f(m–1)� (m–1)
0
jth f j� 0
Z0 = y 0 f0,0 (x) + y1 f1,0 (x) + y 2 f2,0 (x) + L + y m–1 fm–1,0 (x)
Zj � if f j,0(x)
(a) (b)
Figure 5.1: Model for the “into” terms of Eqs. (5.1). (a) State diagram segment showing “into” terms
branching conditions and Mealy outputs for the j th reference state. (b) Generalized one-hot NS and
output forming logic for the “into” terms given in Eqs. (5.1) for m states and r total outputs.
in Figure 5.1a, together with the output function for that state as generalized in Eqs. (5.1). The
NS and output functions are given in Figure 5.1b, where only the “into” terms are represented for
the NS functions.
The r output expressions in Z of Eq. (5.1), summed over m states, represent conditional
(Mealy) outputs. Here, f j,(X) represents the jth function of external inputs X for the th output
with = 0, 1, 2, . . . (r - 1). For unconditional (Moore) outputs, f j,(X ) = 1.
• State code assignments are not needed or desired. Instead, use is made of state identifiers,
either alphabetical (a, b, c, etc.), or numerical (0, 1, 2, etc.) used as ( y0, y1, y3,…) in the NS
and output functions.
• The NS and output equations are read directly from a state diagram or state table—m states
require m NS Y functions. This means that there will be m PS feedback paths required to
implement a one-hot design. For very complex FSMs, the large number of feedback paths
may be prohibitive.
• All cycles and buffer states must be eliminated prior to any one-hot design. Thus, every state
must have a holding condition that will not allow further transitions until an input changes.
• Static hazards in the NS functions are always internally initiated but are covered by the
holding conditions of the state. Static hazards in the output logic are not possible.
DESIGN OF ONE-HOT ASYNCHRONOUS FSMs 71
• Initialization is accomplished by the “1-hot + zero” method in which an all “0” state is ini-
tialized into the beginning one-hot state. Thus, a term �0�1�2 . . . �m-1 is added to one-hot
NS variable of the initialized one-hot state. Combining the “out of ” term and the “1-hot +
zero” term reduces the latter by one � variable after applying the factoring and absorptive
laws.
• The normal C-element implementation of a one-hot design is by the Y → S� one-hot
conversion algorithm:
ere, the initializing 1-hot + zero term is automatically included by the Y → S� conversion
H
algorithm. The conversion algorithm for the �j p terms will also automatically include the
necessary logic to cover the “out of ” term requirements. Thus, if a set–reset (SR) design is
required, it is strongly recommended that the lumped path delay (LPD) logic functions be
produced first.
• Essential hazards (E-hazards) are always formed via ANDing race gates (RGs) and are
highly predictable from the state diagram or state table.
B
0000 Sanity
a
AB “Into” Terms
“Out of ”
Term 1+ Hot+0
AB Ya = aB + bA B + dAB + ab c + b c d
AB AB Hold
Cond .
W� Z�
AB A
A d b Yb = bA + aA B + cA B + ba d
Hold “Out of” W=d
AB Cond Term
X = cA
Yc = cB + aAB + d A B + c b d Z=b
AB AB
c
X� if A
Yd = dA + bAB + cA B + d a c
B
(a) (b) (c)
Figure 5.2: (a) A one-hot FSM having no cycle paths but showing the 0000 state as required by the
one-hot-plus-zero initialization method. (b) The one-hot LPD logic for the FSM in (a). (c) Output
logic.
By using the Y → S� one-hot conversion algorithm given by Eqs. (5.2), the LPD NS equations
in Figure 5.2b are converted to the SR logic in Eq. (5.3) suitable for use with normal C-elements
of the type shown in Figure 1.12 and illustrated in Figure 2.2b. Normal C-elements are used
because the Y → S� conversion algorithm automatically generates the necessary �j requirement for
each C-element input. Presented in Figure 5.3 is the NAND/C-element implementation of Eqs.
(5.3). The 1-hot + zero term is represented by the shaded gate. Note that the NS logic gate tally for
the LPD and SR designs are the same (21), but without taking account of C-element use for the
SR design.
1− Hot + 0
Sa = bAB+ d B + a = + c
_ __
Sb = a A B + c A B b = + (5.3)
_
Sc = a AB + d A B c = B +
Sd = bAB + c A d = A +
The simulation of the C-element logic circuit in Figure 5.3 is shown in Figure 5.4a. A care
ful inspection of the waveforms indicates that the sequential behavior required by the state diagram
DESIGN OF ONE-HOT ASYNCHRONOUS FSMs 73
b(H)
A(H)
B(L)
a(H)
d(H)
A(H)
A(L)
B(H)
B(L)
d(H)
b(L)
A(L)
c(L) a(H) B(H)
c(H)
d(L)
B(H) a(L) B(L) c(L)
b(L) SAN(L) b(L) SAN(L)
c(L) d(L)
a(H) b(H)
A(L) A(H)
B(H) B(H)
c(H) c(H)
A(L) A(H)
b(H) d(H)
B(L) B(L)
A(H) b(L) A(L) d(L)
a(L) SAN(L) a(L) SAN(L)
d(L) c(L)
W=d X = cA Z=b
Figure 5.3: C-element implementation of Eqs. (5.2) showing the 1-Hot+0 state (shaded), the nec-
essary SANITY(L) input, and the three output functions given in Figure 5.2.
in Figure 5.2a is followed. However, it is also obvious that each origin-to-destination state transi-
tion takes place via a state containing the two 1’s of these states. As discussed earlier, this is a direct
result of the “out of ” term found in each NS function. This is emphasized in Figure 5.4b, which
is a blowup of the shaded region in Figure 5.4a. As a result, overlapping outputs are possible (W
Names 40.00 ns 80.00 ns 120.00 ns 160.00 ns 200.00 ns 240.00 ns 280.00 ns 277.88 ns 282.88 ns
SAN(L)
A(H)
B(H)
a(H)
Z(H) = b(H)
c(H)
W(H) = d(H)
X(H)
(a) (b)
Figure 5.4: (a) Simulation of the one-hot FSM in Figure 5.2a implemented with the C-element
circuit in Figure 5.3 and in agreement with Eqs. (5.3). (b) Blowup of the shaded area in (a) showing the
c-to-d transition via state 0011 where output X = c A is maintained active with c.
74 asynchronous sequential machine design and analysis
and X in this case) so care must be exercised when using such output signals as inputs to any next
stage. Note that there are no static hazards present in this design. The static hazards that exist in the
LPD Yj functions given in Figure 5.2 are formed between an “into” term and the “out of ” term, but
are each covered by the holding condition for the function. Thus, static hazards are absent in any
one-hot design. This is not true for essential hazards as is discussed in the next section.
The indirect path (IP) must not be inconsistent with a, A (a constant), and must contain B
or � in c. Therefore, the IP must be via a AB in c (i.e., in Sc). With this information, it becomes clear
that the minimum requirements for E-hazard #1 to form must be ∆t E1 + τInt > (τaAB + τC-element).
Should this E-hazard form, the FSM would transit a → (0101) → (1100) and reside stably in the
1100 cycle state, never completing the transition to state d, a serious malfunction of the FSM.
Once the minimum path delay requirements for E-hazard formation are known, a reason-
able choice can be made for the delay ∆tCorrect that could be placed on the c line to the RG. Once
DESIGN OF ONE-HOT ASYNCHRONOUS FSMs 75
∆tCorrect is properly placed, the probably of formation of E-hazard #1 would be greatly diminished.
Naturally, ∆tCorrect need not be used if the designer feels confident that this E-hazard cannot form.
Of course, such guesswork could become a serious mistake.
E-Hazard #2. The required path for this E-hazard is b → d → c under input conditions
�B → AB with cycle paths given by
b d c
With this information, we conclude that the first and second invariants are c (under AB) and
d (under �B), respectively. Thus, the ANDing RG must be d �B in c (i.e., in Sc). To activate this E-
hazard, an inadvertent delay ∆tE2 of sufficient magnitude must exist on the initiator line A to the
first invariant c. The IP must not be inconsistent with b, constant input B and must contain A or �
in d. Thus, the IP is via bAB in d (i.e., in Sd). From this information, we deduce that the minimum
delay requirements for E-hazard #2 formation is (∆tE2 + τInv) > (τbAB + τC-element). To be effective,
the counteracting delay ∆tCorrect must be placed on the c line to the RG.
• • • •
77
chapter 6
Up to this point, we have dealt exclusively with asynchronous design methods that permit input
signals to overlap but with the potential to have certain timing defects that could cause the asyn-
chronous finite state machine (FSM) to malfunction. Asynchronous state machines that are de-
signed to operate with nonoverlapping pulsed inputs and that operate with “data triggered” memory
elements are called pulse mode sequential machines. The pulse mode approach offers a simple means
of designing asynchronous FSMs but at the price of greatly restricting input signal conditions.
The pulse mode approach eliminates the timing defects owned exclusively by fundamental mode
FSMs, and eliminates the problems associated with clock skew and the need to synchronize inputs
to the clock. Thus, at first glance, it would seem that the pulse mode approach to FSM design
has all of the advantages of synchronous FSMs while being free of the timing defects common to
fundamental mode (Huffman) machines or Muller machines. Although this is true, the apparent
advantages of the pulse mode methodology are offset by the severe limitations placed on the input
data signals.
Output
Intput (OP)
(IP)
Z0
x0 Y0 y0
x1 Output Z1
Y1
Data
y1 forming
x n-1 Next state logic
Triggered
forming
Toggle
logic Zr–1
Modules
Ym–1 ym–1
NS
PS feedback
figure 6.1: The generalized model for an asynchronous Mealy FSM operated in the pulse mode
with data-triggered toggle modules as the memory elements.
1. Branching conditions in a pulse mode state diagram are always single variables or ORed
single variables (e.g., X + Y ) that are always uncomplemented as required for positive pulses.
Unconditional branching in a pulse mode state diagram is strictly forbidden.
2. Any state coding will suffice. However, owing to the toggle character of the toggle module
memory elements, a binary sequence is preferred wherever possible so as to minimize the
next state (NS) logic. Recall the toggle character of the binary code beginning with the
least significant bit and proceeding all the way to the MSB.
3. Data must be presented to a pulse mode circuit as discrete nonoverlapping positive pulses
that are at least minimally separated as shown in Figure 6.2. Although there is in no upper
bound place on their active duration, there is a required lower bound.
design of pulse mode fsms 79
X2(H) .
X1(H)
X0(H)
figure 6.2: Examples of nonoverlapping data input signals that are at least minimally separated
positive pulses having active durations with no upper bound.
4. The NS logic is obtained by combining the excitation table for the toggle module (T flip-
flop) with the pulse mode state diagram by using the mapping algorithm in Section 1.6.
5. Because states in a pulse mode design cannot toggle to themselves, only outgoing single
variable or ORed single variable branching conditions are required in mapping the NS
logic. Thus, holding condition should not be given in the state diagram or state table.
6. From the characteristic described above, it is obvious that the sum rule is never obeyed
but the mutually exclusive requirement is uniquely satisfied by the nonoverlapping input
requirement.
7. Falling edge triggered (FET) toggle modules must be used with the discrete positive pulses
as in Figure 6.2.
8. When it is appropriate to do so, the outputs should be made conditional on the exciting
branching variable (a Mealy output) when using FET toggle modules. Doing this results
in two important advantages that derive from falling edge triggering:
(a) Output race glitches (ORGs) are not possible.
(b) Static hazards in the output forming logic are not possible.
These advantages are not guaranteed if unconditional (Moore) outputs are used.
9. Initialization methods are exactly the same as used for LPD model designs or for C-
element designs discussed in Section 2.2. When using a C-element design, initialization
must be into the all “0” state.
10. Proper pulse mode designs cannot have endless cycles, critical races, or E-hazards. Static-1
hazards in the NS logic are not possible when FET toggle modules are used.
11. Debouncing of inputs from mechanical switches is imperative because pulse-mode circuits
are highly sensitive to transient signals of sufficient duration and strength.
12. Synchronization of inputs to a pulse mode FSM is not necessary because the requirement
of nonoverlapping data inputs, at least minimally separated, is a form of synchronization.
13. Pulse mode FSMs that are properly designed and operated cannot go metastable and,
therefore, have an infinite mean time between failures.
80 asynchronous sequential machine design and analysis
The 13 characteristics of the pulse mode approach to asynchronous FSM design just given
should seem impressive compared to the LPD and nested element approaches that operate in the
fundamental mode. It would appear that pulse mode FSMs have all the benefits of asynchronous
fundamental mode FSMs but without their inherent problems. This is true! However, the price
that must be paid for this “perfection” is the sever restrictions placed on the input signals and the
memory elements use to process them—restrictions that require discrete nonoverlapping pulses at
least minimally separated to be the inputs to FET toggle modules.
T y0 y0 y0
y1 0 1 y1 0 1 y1 0 1
Sanity 0 0 0 0 0 T
T T
00
T 1 T 1 1 T 1 T 0
T
Y1 S1 R1
y0 y0 y0
y1 0 1 y1 0 1 y1 0 1
T 10 Q 01 T 0 T 1 0 T 0 T 0
1 0 T 1 0 T 1 T
T Y0 S0 R0
T 11
Q Y 1 = y 1T + y0T S 1 = y 0T R 1 = y 0T
Y 0 = y 1T + y0T S 0 = y 1T R 0 = y 1T
T
(a) (b)
figure 6.3: FET toggle module design for use with the pulse mode circuits. (a) State diagram for
the FET toggle module. (b) LPD logic and K-map conversion and logic for C-element or SR basic cell
design of toggle modules.
design of pulse mode fsms 81
y0(L)
T(H)
y1(H) = Q(H) Names 40.00 ns 40.00 ns 120.00 ns
y0(H) SAN(L)
y1(L) = Q(L)
T(H)
SAN(L) T(H)
(a) Q (c)
T(H)
Q
CL
(b)
figure 6.4: (a) Implementation of the toggle module with NOR gates and complementary C-
elements. (b) Circuit symbol for a falling edge triggered (FET) toggle module with a T(H) data input.
(c) Simulation of the circuit in (a) showing both falling edge triggerig (Q) and rising edge triggering (P).
design by using either C-elements or SR basic cells. See Section 2.1 for a review of the extended
mapping algorithm required for the Y → SR conversion.
By using the logic given in Figure 6.3b, we have opted to design this toggle module by using
NOR gates and complementary C-elements of the type shown in Fig 1.13. The resulting logic circuit
is presented in Figure 6.4a, which is initialized into the 00 state as indicated by the SAN(L) input to
the C-elements. The circuit symbol for the FET toggle module is given in Figure 6.4b. The simula-
tion of the logic circuit in (a) is provided in Figure 6.4c with Q and P outputs for falling and rising
edge triggering, respectively. For use in a pulse mode design with nonoverlapping positive pulses, it is
the Q(H ) = y1(H ) or Q(L) = y1(L) outputs that must be used consistent with the logic circuit symbol
in (b). An inspection of the waveforms in (c) indicates that the Q(H) and Q(L) output changes are
indeed triggered by the falling edges of the T (H) waveform. The waveform for P(H ) = y0(H ) changes
with the rising edge of the T (H) waveform and therefore defines an RET toggle module. Again, it
is important for the reader to understand that the use of the Q outputs from the toggle module are
essential to the proper operation of a pulse mode circuit design. They eliminate ORGs and static
hazards in the output forming logic that might otherwise form with rising edge triggering.
PS variable
change
LPD Pulse Mode
Model Model
yt � yt+1 Yt T
Reset Hold 0 � 0 0 0
Set 0 � 1 1 1 Toggle
Reset 1 � 0 0 1
Set Hold 1 � 1 1 0
figure 6.5: Excitation tables for the LPD model and pulse mode designs of asynchronous FSMs.
given in Figure 6.5. Thus, the pulse mode model requires the toggle conditions 0 → 1 and 1 → 0
be used in a manner similar to the two set conditions (0 → 1, 1 → 1) used for the LPD model as
discussed in Section 1.7. Keeping in mind this information and the characteristics of the pulse mode
given in Section 6.1.1, we can now proceed with a simple pulse mode design.
The state diagram for a 2-bit digital combinational lock is shown in Figure 6.6(a). Note that
there are no holding conditions in the state diagram, and that all branching conditions are single
uncomplemented input variables or are ORed combination of the single uncomplemented variables.
Clearly, the sum rule cannot hold for a pulse mode state diagram. To minimize the NS forming logic,
the state code assignments are in binary sequence wherever possible. The output OPNVLT (for open
vault) is conditional on the exiting input X. Thus, all requirements outlined in Section 6.1.1 are met.
The EV K-maps for the NS and output forming logic of the 2-bit digital combinational lock
are given in Figure 6.6b. The NS K-maps are plotted by using the T excitation table, given in
Figure 6.5, together with the mapping algorithm in Section 1.6. Thus, the “T” K-maps are plotted
by toggle branching from each state. For example, in state 011, state variable y1 toggles to state 000
under X but also toggles to state 100 under Y. This requires the entry to be X + Y for state 011 in the
T1 K-map. There are three don’t care (unused) states each indicated by a φ symbol. The resulting
logic for the NS and output functions are given by Eqs. (6.1), where optimum use of the three don’t
care states is indicated by the shaded loops. Note the shared prime implicants (PIs) y1y0Y and y0 X
between the NS functions T2 and T1 and between T1 and T0, respectively, and the shared PI y2X
between T2 and the output function OPNVLT. This gives a gate/input tally of 9/21 for the NS and
output functions.
T2 = y2 X + y2 Y + y1 y0 Y T1 = y1 X + y0 X + y1 y0 Y T0 = 2 Y + y0 X
OPNVLT = y2 X (6.1)
design of pulse mode fsms 83
y1y0
y2 00 01 11 10
000
0 0 0 Y 0
Y Y
1 X+Y
001 T2
X y1y0 y1y0
X y2 00 01 11 10 y2 00 01 11 10
X 0 0 X X+ Y X 0 0 0 0 0
010
Y 1 0 1 X
T1 OPNVLT
011 y1y0 (c)
X+Y y2 00 01 11 10
Y
0 Y X+Y X+Y Y
100 OPNVLT if X 1 0
T0
(a) (b)
figure 6.6: Design of a 2-bit digital combinational lock by using the pulse mode approach. (a) State
diagram with a conditional (Mealy) output OPNVLT (for opten vault). (b) EV K-maps for use of toggle
modules as the memory elements. (c) EV K-map for the conditional output, OPNVLT if X.
y2(H)
OPNVLT(L)
X(H)
y1(H) y2(H)
X(H) Y(H)
y2(H)
(a) Y(H)
T2(H) T1(H) T0(H)
y0(H)
y1(H) X(H)
y0(H)
Y(H)
figure 6.7: Design of the 2-bit digital combinational lock given in Figure 6.6. (a) Implementation
of the NS and output forming logic given by Eqs. (6.1). (b) Toggle modules as the memory stage with
initialization into the 000 state.
84 asynchronous sequential machine design and analysis
40.00 ns 80.00 ns 120.00 ns 160.00 ns 200.00 ns 240.00 ns 280.00 ns
Names
SAN(L)
X(H)
Y(H)
T2(H)
T1(H)
T0(H)
y2(H)
y1(H)
y0(H)
OPENVLT(L)
figure 6.8: Simulation of the pulse mode FSM in Figure 6.7 designed to operate as a 2-bit digital
combinational lock using toggle modules as the memory elements.
The NS and output functions given by Eqs. (6.1) are implemented with NAND logic in Figure
6.7a, where all three shared PIs are wired in. Note that the output is issued active low, OPNVLT(L)
for convenience. The memory stage is made up of three FET toggle modules, as indicated in Fig-
ure 6.7b. The active low indicator bubble on the left side of each toggle module is indicative of the
falling edge triggering of the memory module.
The simulation of the logic circuit in Figure 6.7 is given in Figure 6.8, where an initial
Sanity(L) input 1(L) initializes the FSM into the 000 state. Then, after a 1(L) → 0(L) change in
the Sanity(L) signal, the FSM operates properly. Here, the three Ti(H ) outputs are included for
completeness, but it is clear that the PS state functions yi(H ) change only on the falling edge of the
data inputs X and Y. Previously, it was indicated that there is no upper bound on the active dura-
tion of the data pulses. It was also indicated that a lower bound does exist. If a data pulse is not
developed sufficiently, it will not be read by the toggle module. Worse yet, if the data pulse is two
weak to completely cross the switching threshold, it cannot be read predictably and a metastable
condition may ensue.
D Q T Q
T(H) Q T(H) Q
CL CL
(a) (b)
figure 6.9: Alternative memory elements for use in asynchronous pulse mode FSM designs. (a) An
FET D-flip-flop (FF) converted to an FET toggle module. (b) An FET T-FF converted to an FET
toggle module.
ules. Shown in Figure 6.9 are two examples of alternative memory elements suitable for pulse mode
FSM design. Figure. 6.9a features an FET D-FF that is converted to an FET toggle module by
connecting its active low output to the D input. A T-FF can be converted to an FET toggle module
by connecting its T input to logic 1(H) = HV as in Figure 6.9b. See Tinder’s text in Endnotes for
further details.
Generally speaking, the toggle module in Figure 6.4 is the most desirable simply because it
is fast, requires the least amount of hardware for implementation, and is the most reliable option.
Toggle modules converted from D-FF and T-FF require more logic hardware but are also reliable if
implemented with C-elements. In any case, runt pulses should be avoided because they may or may
not be of sufficient strength to cross the switching threshold.
Reset
X SW Up X � 1(H) = 0(L)
SW(H) = 0(H)
SW(H) contact Y � 0(H) = 1(L)
+VS SW(L) = 0(L)
R
Up Off
X = Y � 0(H) = 1(L) Hold
contact
Dn
SW R Set
SW Dn X � 0(H) = 1(L)
SW(L) SW(H) = 1(H)
contact Y � 1(H) = 0(L) SW(L) = 1(L)
Y
(a) (b)
figure 6.10: Debouncing the single-pole/double-throw (SPDT) switch by using a set-dominant basic
cell in Figure 1.8. (a) Logic circuit. (b) Logic values for Up-, Dn- and Off-contact positions of switch,
SW.
86 asynchronous sequential machine design and analysis
number of states or may even cause metastability in the FSM. To counteract bounce transients, a
single-pole/double-throw (SPDT) switch can be effectively used, as indicated in Figure 6.10. If
a spring-loaded switch (SW) is initially in the UP position, the SW outputs are in a Reset state.
When the SW is depressed, it will pass through a Hold state before reaching the Dn contact. Upon
reaching the Dn position, the first transient to cross the switching threshold will force the SW out-
puts into a Set state thereby avoiding any further transient action. The reverse process follows the
release of the SW. Accordingly, the SPDT switch can never undergo an X,Y 1(L) → 0(L) oscillation
as in Figure 1.10.
• • • •
87
chapter 7
Analysis of asynchronous finite state machines (FSMs), as interpreted in this chapter, is a “reverse
engineering” process. By this, we mean that the analysis process generally begins with a circuit and
ends with a state diagram or state table. Of course, we have already analyzed circuits for various
timing defects, and that is, or should be, part of any analysis performed on an asynchronous FSM.
But remember that the state diagram of an asynchronous FSM serves as a most powerful tool in
any analysis process. Not only can we analyze a state diagram for various timing defects, but many
design irregularities become obvious sometime with only a cursory observation of the state diagram.
We will hold to these notions throughout this chapter, with the result of achieving a practical and
reliable means of analyzing any given asynchronous FSM.
a) If the next state (NS) logic for the asynchronous FSM has been designed by using Set–
Reset (SR) memory elements, read and map the SR logic into EV K-maps and then use the
reverse conversion SR → Y algorithm to produce LPD EV K-maps. Note that don’t cares
will not be present because they cannot be represented in a circuit.
b) If the NS logic for the asynchronous FSM has been designed by using toggle modules as
memory elements, read and map the T logic into EV K-maps and then use T → Y K-map
88 asynchronous sequential machine design and analysis
conversion to obtain the LPD EV K-maps. The algorithm for T → Y K-map conversion is
as follows: For all that IS NOT yi in the Ti K-map, transfer it directly to the same domain
cells in the Yi K-map. For all that IS yi in the Ti K-map, transfer each cell entry comple-
mented to the same domain cells in the Yi K-map. Again, no don’t care states are possible
in the analysis.
Part 3: Once the logic circuit has been mapped into LPD EV K-maps, construct the PS/NS
table. Do this for each state with inputs represented in canonical-literal form as a binary sequence
covering all possible input conditions for that state. As an example, if a given cell depends on two
inputs, X and Y, then four entries are necessary (� �, � Y, X �, X Y ). This is necessary so as to avoid
possible branching omissions. Each entry in the NS column is found by comparing the NS cell
entries in the K-maps with the corresponding input conditions in the inputs column. When com-
pleted, the PS/NS table is precisely the tabular form of the state diagram. The state diagram ob-
tained from the PS/NS table will have all states represented including possible don’t care states,
buffer states, and hang states.
E(H)
1
2
3 6 y1(H)
E2 Y1 = EC X + y1 E X + y1C
C(L)
4 P(H) = y0 EC + EC M + y1C
P = y1C
SAN(L)
(a) (b)
Figure 7.1: (a) A three-input, one-output LPD Logic circuit to be analyzed. (b) NS and output
forming logic as read and simplified from the circuit in (a).
analysis of asynchronous fsms 89
y0 y0 y0
y1 0 1 y1 0 1 y1 0 1
0 EC ECM 0 0 EM 0 0 0
1 E+C EM + C 1 C EM + C 1 C C
Y1 Y0 P
Figure 7.2: Next state and output EV K-maps as plotted from Eqs. (7.1) in Figure 7.1.
PS NS PS NS
y1 y0 y1 y0 E+C
Inputs Y1 Y0 Inputs Y1 Y0
Sanity
EC 0 0 EC 1 1
00
EC 0 0 EC 0 0 EC
00 10 E+CM
EC 0 0 EC 1 1
EC 1 0 EC 1 0
EC
ECM
ECM 0 0 ECM 1 1 EC 10 01 EM
ECM 0 0 ECM 1 1 PE if C
ECM EC
ECM 0 0 ECM 0 0
ECM 0 0 ECM 0 0 C ECM
01 11
ECM 0 0 ECM 1 1 11
PE if C
ECM 0 1 ECM 1 1
ECM 1 0 ECM 1 0
C
ECM 0 1 ECM 0 1
(a) (b)
Figure 7.3: (a) PS/NS table obtained from the Y K-maps in Figure 7.2 and (b) the state diagram for
the FSM represented by the logic circuit in Figure 7.1a as derived from the PS/NS table in part (a) and
the output K-map in Figure 7.2.
90 asynchronous sequential machine design and analysis
The EV K-maps for the NS and output forming logic in Eqs. (7.1) are given in Figure 7.2.
From these K-maps, the PS/NS table is constructed and presented in Figure 7.3a. Note that the
inputs are listed in canonical-literal form in binary sequence covering all possible input combina-
tions for each state. In state 00, for example, an inspection of the EV K-maps indicates that cell 00
(for state 00) depends only on inputs E and C. Therefore, the “Inputs” column in the PS/NS table
corresponding to state 00 has only the four canonical-literal entries given as a binary sequence. In
contrast, states (and K-map cells) 01 and 11 depend on inputs E, C, and M so there will be eight
canonical-literal entries in the PS/NS table for these two states. It is true that shortcuts can be
taken in constructing the PS/NS table. However, this is not recommended because the probability
of branching errors is likely to increase.
The PS/NS table in Figure 7.3a is precisely the tabular form of the state diagram shown in
� �
Figure 7.3b. For example, in PS 00, the 00 → 00 holding condition is C + EC + E = + ,
and the 00 → 10 branching condition is EC. In state 01 the 01 → 10 branching condition is read
simply as EC�; the 01 → 01 (holding condition) is E�M + ECM = EM. The 01 → 00 branching
condition for the five entries is most easily found by constructing a conventional third-order 1’s and
0’s K-map with ECM as its coordinates. Looping out the five entries readily yields � +�� as the
conditions for this branching path. The output function for this FSM is read directly from the EV
K-map in Figure 7.2 and requires that a conditional output P if � be issued in states 10 and 11.
Now that we have obtained the state diagram for this FSM, it would be instructive to know
exactly its function. A detailed inspection only of the state diagram in Figure 7.3b will most likely
yield incomplete or incorrect information. However, combined with a simulation, the state diagram
can contribute significantly to an understanding of its purpose. Shown in Figure 7.4 is the simula
Names 40.00 ns 80.00 ns 120.00 ns 160.00 ns 200.00 ns 240.00 ns 280.00 ns 320.00 ns 360.00 ns
SAN(L)
E(H)
C(L)
M(H)
y1(H)
y0(H)
P(H)
Figure 7.4: Simulation of the circuit in Figure 7.1 showing this FSM to be a pulse generation mod-
ule whereby a single pulse or string of pulses are issued antiphase with clock (C ) as controlled by the
mode (M ) and enable (E ) inputs.
analysis of asynchronous fsms 91
tion of this FSM. It appears that this FSM is a pulse generation module (PGM) that can issue a single
pulse or a string of pulses, all antiphase to the clock input and all controlled by the enable and mode
inputs E and M, respectively. If the PGM enters state 11 and then exits to state 01 on ECM or to
state 00 on �C, only a single pulse will be issued. On the other hand, if the PGM cycles with C
between states 11 and 10 under E�, then a string of pulses will occur, one pulse for each cycle but
antiphase to the clock (C) input. If, at any time, the enable input E goes inactive 1(H ) → 0(H ), then
no pulses can be issued.
contains �0EC ) in y1. The IP must be via only gate 5 giving a minimum path delay require-
ment for the D2-trio activation of ∆tE1 > τ5, a relatively small delay. However, activation of
the D2-trio cannot cause a glitch in P but does cause a glitch in y1.
It is clear that neither E-hazard nor the D1-trio are a cause for concern because the minimum
delay requirements to activate them are relatively large, all exceeding two gate delays. If there is a
concern, however, counteracting delays of one or two τp placed on the second invariant feedback
line will more than suffice to endure proper operation of the FSM.
⎭
⎪
⎪
⎪
_
⎪
_ ⎫
⎪
⎪
S2 = A B + y 0 B
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
R2 = A + y0 A ⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
S1 = ⎪
⎪
AB ⎪
⎪
__ ⎪
⎪
⎪
⎪
R1 = AB ⎪
⎪
⎬
_ _⎪
⎪
_ _ ⎬
⎪
⎪
⎪
S0 = y 1 A B + y1 A + y2 A B (7.2)
⎪
⎪
⎪
_ _ _ __ ⎪
⎪
⎪
⎪
R0 = y1 A + y1 A B + y 2 A B ⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
_ ⎪
⎪
⎪
⎪
W= y2 y1 y0 ⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
_ ⎪
⎪
X= y2 y1 y 0 A ⎪
⎫
⎪
⎪
_ ⎪
⎪
Z= y2 y 1 y0 ⎭
From the information in Eqs. (7.2) and following the analysis procedure outlined in Section 7.1,
we will analyze this FSM ending with a detailed state diagram showing all states and branching
paths associated with the FSM. Figure 7.5 shows the SR → Y K-map conversions for the NS logic.
Note that the conversion process is just the reverse of the four-step Y → SR conversion algorithm
given in Section 2.1. The reader should trace through this K-map conversion to verify the reverse
algorithm.
From the LPD EV K-maps in Figure 7.5, we construct the PS/NS table shown in Figure
7.6a, where the external inputs (A and B) are listed in literal-canonical binary sequence for each of
the eight present states 000 through 111. This PS/NS table is the tabular form of the state diagram
presented in Figure 7.6b. Note that there are four primary states (shaded) and that each transition
analysis of asynchronous fsms 93
y1y0 y1y0 y1y0
y2 00 01 11 10 y2 00 01 11 10 y2 00 01 11 10
0 B AB AB B 0 AB A A AB 0 B AB AB B
1 B AB AB B 1 AB A A AB 1 A+B A A A+B
S2 R2 Y2
y1y0 y1y0 y1y0
y2 00 01 11 10 y2 00 01 11 10 y2 00 01 11 10
0 AB AB AB AB 0 AB AB AB AB 0 AB AB A+B A+B
1 AB AB AB AB 1 AB AB AB AB 1 AB AB A+B A+B
S1 R1 Y1
y1y0 y1y0 y1y0
y2 00 01 11 10 y2 00 01 11 10 y2 00 01 11 10
0 AB AB AB AB 0 B B A A 0 AB B A AB
1 A A B B 1 AB AB AB AB 1 A A+B A+B B
S0 R0 Y0
Figure 7.5: SR-to-Y K-map conversion for the NS functions given in Eqs. (7.2).
between any two of these states represents a Hamming distance of 2, as was true for the one-hot
designs. There are four don’t care states easily recognized as those states having only out-branching
conditions, and no in-branching paths. As can be seen, transitions between any two primary states
must briefly transit via one of the don’t care states but always with the appropriate branching condi-
tions, again similar to the one-hot designs but faster. Note that this state diagram, with reference to
the primary states, is the same as that shown in Figure 5.2, but this FSM is now identified as a single
transition time (STT) machine. Thus, there are no cycles, buffer states, critical races, or output race
glitches, and every state-to-state transition must pass through a don’t care state.
A simulation of the FSM, represented by Eqs. (7.2) using C-elements as memory, is provided
in Figure 7.7a. Note that it compares nearly identically with that in Figure 5.4, except that it has
only three state variables instead of four as required for the one-hot design. Figure 7.7b shows a
blowup of the shaded area in Figure 7.7a showing the 110 → 011 transition via a very brief passage
through don’t care state 111. It is true that both one-hot and STT designs of this FSM must transit
between states with a Hamming distance of 2 (i.e., between states differing by two 1’s in their state
code assignment). However, it is the STT design that is the faster of the two designs as can be seen
94 asynchronous sequential machine design and analysis
PS Ext. NS PS Ext. NS
y2y1y0 Inputs Y2Y1Y0 y2y1y0 Inputs Y2Y1Y0
001
AB 0 0 0 AB 1 0 1
AB B AB
000 AB 1 0 1 100 AB 1 0 1 B
Sanity
AB 0 0 0 AB 0 0 0
a
AB 1 1 0 AB 1 1 0
000 AB
AB 0 0 0 AB 1 0 1 AB AB
AB
AB 1 0 1 AB 1 0 1 AB AB
001 101
AB 0 0 0 AB 0 0 0 WE ZE
A d AB b A
AB 0 1 1 AB 0 1 1 010 100
011 101
AB
AB 0 0 0 AB 1 0 1 AB A
AB 1 1 0 AB 1 1 0
010 110
AB 0 1 1 AB 0 1 1 B AB c AB AB
AB 1 1 0 AB 1 1 0 110 XE if A
AB 0 0 0 AB 1 0 1
AB B
AB 1 1 0 AB 1 1 0
011 111 A AB
AB 0 1 1 AB 0 1 1 111
AB 0 1 1 AB 0 1 1
(a) (b)
Figure 7.6: (a) PS/NS table derived from the K-maps of Figure 7.5. (b) State diagram, as con-
structed directly from the PS/NS table in (a), showing the four primary states (shaded) and the four don’t
care states for which there are no in-branching conditions, only out-branching paths.
by comparing the blowup regions in Figures 5.4b and 7.7b. In general, STT FSMs are the fastest
machines possible.
A static hazard analysis indicates that there are two externally initiated static-1 hazards in NS
forming logic given by Eqs. (7.2). One hazard exists in S0 between coupled terms �1 �B and y2 � �, and
is produced on a B → � change while in state 101 holding � constant. The cover for this hazard
is y2 �1 �. The second static hazard exists in R0 between coupled terms �1A� and �2 � �, and is pro-
duced on A →� change while in state 000 holding � constant. However, neither of these hazards
can get by the C-elements and, consequently, no hazard cover is needed. This is one advantage in
using C-element for the memory stage in asynchronous FSM design. However, there is always the
possibility that function hazards will be formed if the inputs are allowed to change in close proxim-
ity to each other. Remember that a function hazard glitch is a correct response to competing input
analysis of asynchronous fsms 95
Names 40.00 ns 80.00 ns 120.00 ns 160.00 ns 200.00 ns 240.00 ns 280.00 ns 280.99 ns 282.99 ns
SAN(L)
A(H)
B(H)
y2(H)
y1(H)
y0(H)
W(H)
X(H)
Z(H)
(a) (b)
Figure 7.7: (a) Simulation of the STT FSM represented by Eq. (7.2) implemented with C-elements
and in agreement with Figure 7.6. (b) Blowup of the shaded area in (a) showing the 110-to-011 transi-
tion taking place via don’t care state 111.
changes. To avoid function hazards, input changes should be minimally separated so as to avoid runt
pulses that can cause any memory element to go metastable.
Because E-hazards are potential sequential defects, the minimum requirements for E-hazard
formation are the same as those given in Section 5.4, but without the need to include a specific
cycle state as was required for a one-hot E-hazard analysis. Thus, an E-hazard analysis will follow
the same procedure as laid out in Section 3.6. The FSM in Figure 7.6b has two E-hazards that
are possible. The first will occur along a path a → c → d under input conditions A� → AB with
the inadvertent delay ∆tE1 on the initiator line B to the first invariant y0. The RG must be the
ANDing RG y1A� in y0 found in S0, and the IP must not be inconsistent with the origin state �2,
�1, �0 and the constant input A, and must contain the first invariant as B or � in y1. Therefore, the
IP must be via AB in S1. From this information, the minimum path delay requirement must be
(∆tE1 + τInv) > (τAB + τC-element), hence very similar to the requirement indicated in Section 5.4 for
the E1-hazard.
The E2-hazard will occur along a path b → d → c under branching conditions �B → AB with
an unintended delay ∆tE2 on the A line to the first invariant y0. The RG is the ANDing RG y1�B
in y0 found in R0. The IP must not be inconsistent with the origin state y2, –y1, y0 and the constant
input B, and must contain the first invariant as A or � in y1. Thus, the IP must be via AB in S1. Ac-
cordingly, the minimum path delay requirement is (∆tE2 + τInv) > (τAB + τC-element).
Clearly, any given E-hazard analysis is remarkably the same irrespective of the method used
to implement the asynchronous FSM. In the case of the analysis just completed, we see that the
96 asynchronous sequential machine design and analysis
RGs, IPs, and minimum path delay requirements for E-hazard formation were basically the same.
This confirms the fact that E-hazards are sequential defects that are inherent in the sequential be-
havior, and not the implementation method or model used.
1 - Hot + 0
Term
_
Ya = a + f Y + a + fff (after simplification)
Yb = bX + aX + eX + b
Yc = c + b + c f
_ (7.3)
ffff Yd = d + e + d f
Ye = eY + c XY + e
Yf = f X + f + c X + dX + f
P = b + c Y + d + f X Y
Q = c + dY
Because the NS and output forming logic for a one-hot FSM can be read directly from a
state diagram or state table, the reverse is also true. Shown in Figure 7.8 is the state diagram for this
one-hot FSM as constructed directly from Eqs. (7.3). An inspection of the state diagram reveals that
there are no buffer states, cycles, or critical races present. There are no static hazards possible, but
function hazards are possible if the external inputs or state variables change in close proximity to
analysis of asynchronous fsms 97
TABLE 7.1: Potential E-hazards in Figure 7.8 showing split paths to states f and e for E1- and
E2-hazards and an extended state for E3-hazard
E1-hazards E2-hazards E3-hazard
f f
XY XY
a b c b c d f a b
X X XY X XY X
e X XY
e
each other. It happens rarely but some function hazards cannot be avoided and must be dealt with
by other means such as the use of C-elements as memory and, if necessary, output filters.
There are five potential E-hazards associated with the FSM state diagram in Figure 7.8.
Referring to Section 5.4, the first E1-hazard paths is a → b → c that divides into two depending on
Sanity 000000 a
X
X
b PE
X
X
PE if XY XY
XY
c QE
XY XY
e f PE if XY
XY X
Y X+Y
d PE
QE if XY
Figure 7.8: State diagram constructed directly from Eqs. (7.3) representing a one-hot asynchronous
FSM.
98 asynchronous sequential machine design and analysis
the Y input as indicated in Table 7.1. For both E1-hazard paths, the ANDing RG is b� in Yc, and
the IP is aX in Yb. For these sequences, the branching conditions must be � � → X � leading to state
f, and � Y → XY leading to state e. The second E2-hazard path is b → c that divides into two, again
depending the Y input as indicated in Table 7.1. For the E2-hazard paths, the ANDing RG is cX �
in Yf leading to state f, and is cX Y in Ye leading to state e, with the IP being b� in Yc for both. The
branching conditions for the E2-hazards are X� →� � to state f, and X Y → � Y to state e. The third
E3-hazard path is d → f → a → b under branching conditions� Y → XY for which the RG is f � Y in
Ya with the IP being dX in Yf. For all five E-hazards, the initiator is X but the minimum path delay
requirements differ for them. To activate either the E1-hazards or the E3-hazard, the minimum
path delay requirement is (∆tE + τInv) > (τIP + τORing), where the right side of the inequality is an
ANDing operation into an ORing operation as in the SOP logic of Eqs. (7.3). To activate the E2-
hazards, the minimum path delay requirement is (∆tE) > (τInv + τIP + τORing). As a reminder, only
a single change of the initiator is allowed in any a → b → g E-hazard path. Thus, paths c → e →
d and c → f → a cannot produce an E-hazard. Path c → e → b is excluded as an E-hazard path
because only one initiator change is permitted.
To test the sequential functionality of this FSM, excluding E-hazard production, a simulation
of the logic circuit (circuit not shown) is provided in Figure 7.9. Here, all state-to-state transitions
and output responses are shown. The logic circuit from which this simulation is made is NAND-
SAN(L)
X(H)
Y(H)
a(H)
b(H)
c(H)
d(H)
e(H)
f (H)
P(H)
Q(H)
Figure 7.9: Simulation of the one-hot FSM represented by Eqs. (7.3) showing strict adherence to its
state diagram in Figure 7.8.
analysis of asynchronous fsms 99
based with C-elements and the appropriate inverters. Note that each one-hot state-to-state transi-
tion must transit through a state containing two 1’s, one from the origin state and the other from
the destination state.
T2 = 2 1 0 Y + y2 y0 X
T1 = 2 y1 y0 X + y0 Y
T0 = 2 1 0 X + y2 1 y0 Y + y1 ( y2 ⊕ y0 )(X + Y ) (7.4)
P = y2 y1 X + y1 y0 X + 2 1 y0
Q = y2 y1 Y
0 0 Y 0 0 0 0 Y X+Y 0 0 X 0 X+Y 0
1 0 X X 0 1 0 Y Y 0 1 1 Y 0 X+Y
T2 T1 T0
1 1 X X 1 1 0 Y Y 1 1 1 Y 1 X+Y
Y2 Y1 Y0
y1y0 y1y0
y2 00 01 11 10 y2 00 01 11 10
0 0 1 X 0 0 0 0 0 0
1 0 0 X X 1 0 0 Y Y
P Q
Figure 7.10: NS T-to-Y K-map conversion and output logic for the pulse mode FSM represented
by Eqs. (7.4).
100 asynchronous sequential machine design and analysis
Now that we have mapped the NS and output logic into LPD EV K-maps, we can construct
the PS/NS table. Construction of a PS/NS table for a pulse mode FSM is remarkably simple be-
cause the inputs must be presented as discrete nonoverlapping positive pulses that are at least mini
mally separated. This means that only input combinations such as a� �, ab �– , or g need be considered
in the PS/NS table; all others, such as say X Y, � � or �, must be discarded or ignored. Thus, only
one input can be active at any given time, and a transition cannot occur on an input condition of “no
active input.” Shown in Table 7.2 is the PS/NS table as obtained directly from the NS EV K-maps
in Figure 7.10. Remember that any given output is given with respect to the PS, never with respect
to the NS.
Construction of the state diagram for this pulse mode FSM is accomplished directly from the
PS/NS table in Table 7.2 and is shown in Figure 7.11. Here, input entries such as X �, � Y, X, or Y
simply mean that an X or Y pulse is required to execute a given transition on the falling edge of that
pulse. States 010 and 100 are hang states, meaning that should the FSM power up into either of
these states the FSM would reside in that state indefinitely. The dashed arrow from state 100 to 101
is used to indicate that the PS/NS table calls for that transition but which is clearly not possible due
to the absence of any single, nonoverlapping positive pulse. The presence of hang states addresses
the importance of initializing into a specific state such as the 000 state. To do otherwise would be a
serious mistake and could lead to unrecoverable errors.
PS NS PS NS
Y
X
c PE if X X+Y
111 QE if Y
Y X
d e
100 101 011 PE if X
Y
X+Y
f
110
PE if X
QE if Y
Figure 7.11: State diagram obtained from the PS/NS table in Table 7.2 showing extraneous states
010 and 100.
To complete the analysis of this pulse mode FSM, we iterate the benefits of this approach
to FSM design. As with all properly designed pulse mode FSMs, the state machine in Figure 7.11
cannot have endless cycles, critical races, or static hazards in either the NS or output logic, output
race glitches, and E-hazards. All these benefits result from the stringent requirements placed on
the inputs to any given pulse mode FSM. That is, all inputs must be presented as discrete nonover-
lapping positive pulses that are at lease minimally separated and that all state transitions occur on
the falling edge of an input pulse. To meet these input restrictions, it may be necessary to use bus
arbiters on the incoming data, a subject to be discussed in Chapter 11 and covered by Problem 11.2
in Appendix B.
• • • •
103
part ii
Self-Timed Systems,
Programmable Sequencers,
and Arbiters
105
chapter 8
Externally Asynchronous/Internally
Clocked Systems
OUTPUT
Q Q OUTPUTS
NEXT LOGIC
DFLOP
DFLOP
D D
Q STATE Q
LOGIC
R R
INPUTS
Q Q
DFLOP
DFLOP
D D
Q Q
R R
Input
Register Memory
Register
NOR GATE
Tri-State Driver
EN(L)
CLOCK
Figure 8.1: General Mealy model architecture for the EAIC system showing DFLOP input and
memory registers and clock generating circuitry with tri-state enable.
when the first DFLOP senses a resolved set or resolved reset, CK is turned off, CK(H ) →0(H ),
by the active data ready signal R j → 1(H ) = 0(L). At this point, the input register is made ready to
receive the next set of input data—a two-step process that provides numerous advantages over both
synchronous and asynchronous systems. In the following, we will show that EAIC systems possess a
number of features that make them an attractive choice for system-level applications. These features
include controllers for which the internal clock is used to operate numerous data-path devices such
as counters, shift registers, etc., and the creation of a highly reliable delay-insensitive or pausable
mode of operation that creates a near-infinite MTBF. In most cases, input conditioning circuits
such as arbiters and synchronizers are not needed but debouncers may be required. The use of de-
bouncing circuits is not as critical as in the case of pulse mode designs, where debouncing circuits
should be considered mandatory (see Section 6.5).
The logic circuit for a multiple input NOR gate, provided in Figure 8.2a, consists of a spe
cial p-channel MOSFET (PMOS) and a bank of n-channel MOSFET (NMOS) such that CK(H)
can go active only if all data ready inputs go to LV, that is all Ri (H ) → 0(H ) = 1(L). This NOR gate
is specifically designed to minimize fan-in limitations and propagation delay. The number of per-
missible inputs Ri up to about eight will have negligible effect the gate path delay, a condition not
externally asynchronous/internally clocked systems 107
+VDD
Specially
built PMOS
CK(H)
R0(H)
R1(H)
R2(H)
CK(H)
Rn–1(H)
R0(H)
R1(H)
R2(H)
Rn–1(H)
(a) (b)
Figure 8.2: Multiple input NOR gate specifically designed to minimize fan-in limitations and propa-
gation delay. (a) CMOS circuit. (b) Generalized NOR gate symbol and input logic level requirements
for EAIC system operation.
true for a normal complementary metal-oxide conductor (CMOS) NOR gate. To work properly,
the special PMOS must be designed such that the drain-to-source impedance remains sufficiently
high as to minimize drain current when one or more NMOS are turned ON. In this respect, the
special PMOS operates similarly to a depletion-mode NMOS. The generalized NOR symbol is
shown in Figure 8.2b.
.
D(H) D y1(L)
C-element S Q Q(H)
y0(L) C-element
CK(H) Resolver R Q Q(L)
R(H) CL(L)
CL(L)
y1+ y0
CK y
Unresolved State
Sanity y1y0
a 0
00 DCK
DCK y1y0
y1y0
CK CK 1 Q�
b c
CK CK
01 Resolved 10
Reset� State Set� y1+ y0
(a) Resolver (b) C-element
Figure 8.3: Design of the C-element-based DFLOP for EAIC systems and showing the NAND
gate required to generate the data-ready signel. (a) State diagram for the C-element resolver FSM input
stage. (b) State diagram for the complementary C-element output stage with output, Q.
to pause until all data ready signals rendezvous properly at the NOR gate. Thus, CK = 1(H ) only
when all yj (L) = 0(L). At this time, external data are clocked into the input registers and previous
data are clocked out of the memory registers. However, the first data ready Rj (H ) signal that senses
a resolved Set or resolved Reset of a DFLOP’s y1(L),y0(L) state variables sends a 1(H ) = 0(L) to the
RE:CK � 1(H) when all R’s � 0(H) = 1(L) and all y1(L) = y0(L) = 0(L) in unresolved state 00.
FE: CK � 0(H) when the first Rj �1(H) = 0(L). That is, when y1 ,y0 �10 (Set) or 01 (Reset)
Figure 8.4: Blowup of the CK waveform segment showing requirements for the continuous genera-
tion of the internal clock in the EAIC system.
externally asynchronous/internally clocked systems 109
CK generating NOR gate. This, in turn, causes CK to go to 0(H ) and all resolvers to transit to their
unresolved 00 states ready to begin the process all over again.
The entered variable (EV) K-maps for the design of the C-element-based DFLOP resolver
are given in Figure 8.5. By using the mapping algorithm in Section 1.6, the lumped path delay
(LPD) K-maps are produced from Figure 8.3a as shown in Figure 8.5a. They are then converted
to SR K-maps in Figure 8.5b by using the Y → SR conversion algorithm described in Section 2.1.
From these EV K-maps, the optimum logic expressions are easily extracted and are presented in
Eqs. (8.1) and (8.2). The logic expressions for the LPD (Huffman) DFLOP design are given in
Eqs. (8.1), which when implemented operates in the fundamental mode. Equations (8.2) give the
logic expressions for the Muller C-element DFLOP design. When these expressions are imple-
mented, the DFLOP will operate as a quasi Muller circuit because C-elements operate outside of
the fundamental mode. It is the C-element design we emphasize in this text because they provide
the most protection and the highest reliability. There are, however, two other ways to design the
DFLOP—by using basic cells and by using a different LPD design (see Tinder’s text in End-
notes)—but both must operate in the fundamental mode. Such designs do not afford the same level
of protection and reliability as the C-element design, but are otherwise completely acceptable.
⎧ ⎫
⎨Y = y� DCK + y CK = (D + y ) ⋅ CK ⎬
1 0 1 0 1 0
Huffman DFLOP resolver (8.1)
⎩ � � ⎭
Y0 = y 1 CK + y 1 y0 CK = (D + y0 ) ⋅ 1 CK
�
y0 y0 y0
y1 0 1 y1 0 1 y1 0 1
1 CK 1 CK 1 CK
Y1 S1 R1
y0 y0 y0
y1 0 1 y1 0 1 y1 0 1
0 DCK CK 0 DCK CK 0 (D+CK) CK
1 0 1 0 1
Y0 S0 R0
(a) (b)
Figure 8.5: EV K-maps for the resolver input stage in Figure 8.3a. (a) LPD K-maps obtained by using
the mapping algorithm given in Section 1.6. (b) SR K-maps obtained by using the Y-to-SR conversion
algorithm in Section 2.1 for use in the C-element based resolver of a DFLOP.
110 asynchronous sequential machine design and analysis
S1 = 0 DCK 1 = CK
Quasi-Muller DFLOP resolver (8.2)
S0 = 1 CK 0 = CK
SAN(L)
y0(L)
D(H) SAN(L)
y1(L) DFLOP
CK(H) Q(H) D Q
y0(L) Q(L) Q
CK
R
y1(L) R(H)
SAN(L) CL
Figure 8.6: C-element design of a Muller DFLOP. (a) Logic circuit as designed from Eqs. (8.2) and
Figure 8.3 showing the resolver logic, output stage, and the data ready NAND gate. (b) Circuit symbol
for the DFLOP in agreement with (a).
externally asynchronous/internally clocked systems 111
presents only minor or insignificant changes in the operation of the DFLOP. The logic circuit sym-
bol for the DFLOP is given in Figure 8.6b.
X+Y+Z
Sanity
a
000 BC
A 00 01 11 10
XYZ 0 0 0 0 XYZ
X+Y
b 1 Z YZ
XYZ 001
DA
XYZ BC
A 00 01 11 10
X+Z c 0 0
XYZ XYZ XZ XY
011
1 Z YZ
XYZ
DB
X+Y
d BC
XYZ A 00 01 11 10
010
0 XYZ XY XYZ 0
XYZ
Y+Z
1 Z XYZ
e
XYZ
110 DC
Z BC
XYZ A 00 01 11 10
0 0 0 0 0
f
111 Seq_Rec if XYZ
1 XYZ 0
Seq_Rec
Z
(a) (b)
Figure 8.7: (a) State diagram for a three-bit Gray-to-Seven FSM with a single output. (b) EV K-
maps for the three state variables and output Seq_Rec.
112 asynchronous sequential machine design and analysis
The EV K-maps for the NS and output logic are given in Figure 8.7b as plotted directly from
the state diagram in Figure 8.7a by applying the mapping algorithm given in Section 1.6 together
with the D exitation table given in Figure 1.2. The advantage of the EV mapping approach can be
appreciated by the fact that use of the old conventional 1’s and 0’s method would require the use of
sixth-order K-maps. Even so, the third-order EV K-maps in Figure 8.7b are sufficiently complex
enough to justify the use of a logic minimizer that accepts EVs. The recommended logic minimizer
is called BOOZER, and its results are given by Eqs. (8.3), (8.4), and (8.5). As is evident, BOOZER
seeks out and maximizes the use of shared PIs thereby providing optimum or near optimum results.
(See Preface for a brief description of all recommended software for use with this text.)
A(H)
Q X'(H) C(H) 1(L) 1(L) DA(H) Q A(H)
X(H) D Z'(L) 2(L) D
X Q X'(L) 3(L) A Q A(L)
CK(H) B(H) CK(H)
CL R RX(H) C(L) CL R RA(H)
X'(L) 2(L)
Y'(H)
Z'(L)
SAN(L) SAN(L)
A(H)
X'(H) 3(L) 1(L)
Q Y'(H) Y'(H) 2(L) Q B(H)
DB(H)
Y(H) D Z'(L) 3(L) D
Y Q Y'(L) 4(L) B Q B(L)
CK(H) A(L) 5(L) CK(H)
CL R RY(H) C(H)
4(L) CL R RB(H)
X'(L)
Y'(L)
Z'(H)
SAN(L) SAN(L)
A(L)
B(H)
X'(L) 5(L)
1(L)
Q Z'(H) Y'(H) 3(L) DC(H) Q C(H)
Z(H) D Z'(H) 4(L) D
Z Q Z'(L) 6(L) C Q C(L)
CK(H) B(L) CK(H)
CL R RZ(H) X'(L) CL R RC(H)
6(L)
Y'(L)
Z'(L)
SAN(L) SAN(L)
RX(H) RA(H)
RY(H) RB(H) A(L)
RZ(H) C(L)
X'(L) SeqRec(H)
RC(H) Y'(L)
Z'(L)
CK(H)
Figure 8.8: Logic circuit for the Gray-to-Seven FSM constructed from Eqs. (8.3), (8.4), and (8.5) by
using the wireless connection feature and in agreement with the EAIC architecture shown in Figure 8.1.
externally asynchronous/internally clocked systems 113
_
[1] = AC [2] = B Y [3] = AX Y [4] = C Z [5] = B YZ [6] = (8.3)
DA = [1] + [2] + [3]; DB = DA + [4] + [5]; DC = [1] + [3] + [4] + [6] (8.4)
The logic expressions for the Gray-to-Seven sequence recognizer given by Eqs. (8.3), (8.4),
and (8.5) are shown implemented in Figure 8.8, where the mixed-logic wireless connection feature
(emphasized in this text) is used to simplify the appearance of the logic circuit. Here, use is made of
the C-element DFLOP circuit symbol given in Figure 8.6b and the clock generating circuit is a
six-input NOR gate but with no tri-state driver on its output.
Simulation of this logic circuit is given in Figure 8.9 showing an internal clock frequency
of about 417 MHz, the Seq_Req(H ) output pulse in state 111, and a static-1 hazard in the DB
memory register input that could not get passed the C-elements in its DFLOP. Note that the FSM
is initialized into the 000 state, consistent with the state diagram in Figure 8.7a and the logic circuit
in Figure 8.8. When the sanity input releases the FSM to operate normally, the FSM begins in state
CK(H)
X(H)
Y(H)
Z(H)
QA(H)
QB(H)
QC(H)
Seq_Rec(H)
DA(H)
DB(H)
DC(H)
Static-1 Hazard
Figure 8.9: Simulation of the EAIC circuit in Figure 8.7 showing the internal clock signal, the NS and
output response to input changes, and a static-1 hazard in the input to an output stage DFLOP.
114 asynchronous sequential machine design and analysis
_
001 as required by the state diagram when the input conditions are � � Z . To initialize this FSM
reliably and stably into state 000, at least one of the inputs must be active at the time the sanity input
signal goes inactive. Note that the static-1
_ hazard in DB is externally initiated in the 010 state under
holding conditions � YZ when Z → Z as indicated in Eq. (8.6). From an inspection of Eq. (8.6),
it is clear that the hazard cover for the static hazard in DB would be �B�� Y, but it is not needed
because the C-element filters out the hazard.
SAN(L)
y0(L)
D(H)
y1(L) SAN(L)
y1'(L)
CK(H) Q(H)
Q(L)
y0'(L)
y0(L)
R(H)
y1(L) Metastable Detection
SAN(L) Stage
Figure 8.10: C-element design of a Muller DFLOP with a metastable detection stage (MDS) de-
signed to prevent any possible metastable condition from being passed on to the output C-element and
data-ready gate.
externally asynchronous/internally clocked systems 115
8/1 for the up adjustment (↑). With the overall switching threshold altered down to about 0.25VDD,
only strong active low input signals y1 < Vth will carry to the output y1′. On the other hand, active
low input signals y1 > Vth will not cross the switching threshold and will not carry to the output y1′.
As a result, only cleanly asserted active low signals can pass through the MDS circuit, whereas any
metastable condition will cause the MDS to drop low after exiting the metastable state. The MDS
stage also serves as a mutual exclusion operation. To better understand the above discussion, refer to
Eqs. (1.8), where in mixed logic symbology it is clear that 0(H ) = 1(L) → LV. Thus, only a strong
active low y1(L) signal will correspond to y1 < Vth (i.e., LV) and be passed through to the output y1′ .
A weak active low y1(L) signal for which y1 > Vth (or HV) would not cross the switching threshold
(toward zero voltage) and would not carry to the output y′1. Figure 8.11 illustrates these facts.
To test the action of the MDS circuit, its PSPICE simulation is shown in Figure 8.11, where
response to a metastable condition, region (2) is featured after a brief period (1) of correct operation.
Here, the metastable voltage Vm tends to lie in the usual range of mid-supply (Vm ≈ VDD/2). This
is the voltage at which a metastable condition resides for a time (the metastable exit time, ∆tm) after
which it must resolve as either a clean set or reset. Experiments have shown that the metastable exit
time is highly unpredictable. Furthermore, there is never a guarantee that the metastable state will
flatline on Vm for a time ∆tm. To test the MDS under worse-case conditions, the inputs, y1 and y0
in region (2) are introduced as a damped sign-wave oscillation about the threshold voltage Vth with
VDD y1
Inputs
y0
Voltage
Vm
Vth
0 (a)
VDD
y1'
Outputs
Voltage
y0'
Vm
Vth
0 (b)
Figure 8.11: PSPICE simulation of the MDS circuit Figure 8.9b showing (a) input voltages and
(b) output voltages before, during, and after a metastable state.
116 asynchronous sequential machine design and analysis
a phase difference of 90°. During this metastable state, the oscillatory condition causes only the
beginning of pulse formation of the MDS outputs y1′ and y′0. After a time ∆tm, the inputs resolve as
either a clean set or reset causing the MDS outputs to drop predictably low after the inputs exceed
the adjusted threshold voltage Vth. This means that the outputs of the MDS drop to 0(L) with a
data ready output of R(H ) = 0(H ) and a DFLOP output Q(H ) = 0(H ). Under these conditions, it is
fair to say the EAIC system would have an MTBF that is extremely high but not infinite.
where δDFLOP is the propagation delay through the DFLOP and δNOR is the propagation de-
lay through the NOR gate exclusive of the tri-state driver. If use is made of modern high-speed
CMOS, as is assumed in this text, the CK frequency can exceed 400 MHZ as was demonstrated in
Figure 8.9. Here, we assume that all gates and inverters have a propagation delay of 0.30 and 0.10 ns,
respectively. For simplicity, no account is taken of gate fan-in although the simulator we use has that
capability. Also, for the complementary C-elements we have assigned a propagation delay of 0.20
ns. Thus, a calculation made on this basis by using Eq. (8.7) gives a frequency of 417 MHz, which
is exactly that measured in a blowup of Figure 8.9. If use is made of the MDS stage in Figure 8.10,
the CK frequency would drop to 345 MHz.
If the path delay through the NS forming logic in Figure 8.1 exceeds a certain upper bound,
the proper operation of the EAIC system cannot be guaranteed. To stay within this upper bound, it
is necessary that the updated Q outputs from the input register propagate through the NS forming
logic before the next rising edge clock event, that is, during one CK cycle. Tracing one CK cycle
beginning and ending at the NOR gate, the NS logic constraint is given by
which is more than four gate delays without the MDS or about six gate delays with the MDS.
Thus, two-level logic with inverters is well within this upper bound and the proper opera-
tion of the EAIC system is guaranteed. Clearly, the minimum width of any data pulse must be
larger than one CK cycle if it is to be picked up reliably by the EAIC system. The throughput
is the elapsed time between input change and output response normally occurring in the range
−1
δ Throughput = (3δ DFLOP + 2δNOR ) ± fCK .
externally asynchronous/internally clocked systems 117
Outputs
Figure 8.12: Cascaded configuration of n -EAIC microcontoller (MC) stages showing possible feed-
back variations between stages, external inputs to each stage, serial and parallel outputs, individual or
global initialization (RESET), and individual or global internal clock enable (CK-EN).
118 asynchronous sequential machine design and analysis
elements (DFLOPs) to T and SR memory elements is accomplished via the usual means (see
Tinder’s text in Endnotes). Thus, counters, shift registers, and other state machine designs can be
designed by either the EAIC method or by conventional means.
Parallel/serial processing can be achieved by cascading n-EAIC MCs, as that shown in Fig-
ure 8.12. Here, each MC stage can receive inputs from previous stages, from succeeding stages as
feedback, or from external sources, and outputs can be generated from each stage. Each MC stage
operates at its own internally generated clock frequency, which can be paused separately at any time
or paused together with all or any combination of the remaining MCs. The major benefit of such
a scheme is that it is programmable, highly reliable, and offers versatility not available by other
schemes. When input data are idle, the internal clock of the MC stages can be turned off indi-
vidually or globally, thereby minimizing power dissipation. Initialization (RESET) of the EAIC
MC stages can also be done individually or globally. Finally, and most importantly, each MC stage
shown in Figure 8.12 can be replaced by an MC together with its data path devices to produce a
series/parallel system of minimicroprocessor (EAIC MM) stages that are fully programmable and
that can handle complex operations with an extremely high degree of reliability and high speed. In
all cases, it must be remembered that in a cascaded EAIC system of MCs, there is no single sys-
tem clock that is common to all MCs. Each EAIC MC has its own individual internal clock that
will normally not be in synch with those produced by other EAIC MCs. However, EAIC designs
with MDS capability ensure the proper operation of a cascaded EAIC MC system with or without
EAIC operated data path devices. Thus, clock skew problems become a non-issue.
1. EAIC systems are essentially delay-insensitive, meaning that the internal clock will pause
anytime a delay occurs in the input register DFLOPs, or in the DFLOPs of the memory
(output) register. The internal clock can be deliberately turned off during stand-by peri-
ods.
2. The internal clock can be used to operate any number of data path devices such as counters,
shift registers, and other secondary state machines.
3. EAIC systems are metastably hardened, which raises the MTBF to extremely high val-
ues.
4. The CAD software ADAM can generate D functions for the design of FSMs suitable for
use by with EAIC systems.
• • • •
119
chapter 9
Cascadable Asynchronous
Programmable Sequencers (CAPS) and
Time-Shared System Design
In Part I of this text, it was made clear that any finite state machine (FSM) designed to operate
in the fundamental mode must be free of timing defects such as endless cycles, critical races, static
hazards in the next state (NS) forming logic, and active essential hazards. Normally, the task of rid-
ding the FSM of these defects is not difficult but it can be tedious and does require a considerable
understanding of the intricacies of asynchronous FSM design methods. The externally asynchro-
nous/internally clocked (EAIC) system, presented in Chapter 8, provides a means of avoiding these
problems by using an internally generated clock somewhat similar to synchronous FSM design.
However, the EAIC system cannot be used as a programmable sequencer owing to the mechanism
required to generate the internal clock. In this chapter, we will consider in detail a versatile and
highly reliable class of defect-free asynchronous programmable sequencers (APS) that can be cas-
caded to form sequencers of much greater capability—all defect-free. These APS can rightfully be
classified as true Muller-type systems as defined in Section 1.10.
methods to produce reliable clockless APS systems. Cascadable MAC module APS systems can
be operated under a variety of operating conditions and constraints, and on a time-shared basis, all
defect-free, including E-hazards—time-, effort-, and expense-saving features.
1. MAC modules can be driven by a bank of PLDs (see Glossary) or by RAM. MAC module
APS systems can be instantly switched between radically different asynchronous micro-
controllers (AMCs) on a time-shared basis, all defect-free. A deactivate input (DI ) signal
within the MAC module is used for extensive cycle control but can also be used for con-
nectivity purposes making this APS system highly versatile. A DI signal pulse marks each
state transition that occurs. The number of individual DI outputs needed depends on the
number and size of cycle-state FSMs.
In–1 I1 I0
CL SAM
yn-1 y1 y0 EP OP Se So Reset
TCM
DI Te To
To PLDs
To NS Instruction Logic
if Needed
Figure 9.1: Components of an n-input MAC module consisting of a 2n state array machine (SAM)
and a timing control machine (TCM) and their interconnections.
caps and time-shared system design 121
TABLE 9.1: Various cascading configurations for MAC modules showing maximum state capacity,
maximum number of state variables, and out-branching capability
2×2 1 4 = (22)1 2 2
2×2 2 16 = (22) 4 4
2×2 3 64 = (22)3 6 6
2×4 1 8 = (2)(1 + 2) 3 3
4×4 1 16 = (42)1 4 4
producing MAC module APS systems with very large state number capacities all without
loss of speed or reliability.
4. MAC modules can be cascaded to produce very large APS systems all without compromis-
ing speed and reliability. For example, cascading three 2n MAC modules produces a MAC
module of 23n state capability and 3n-way out-branching capability. Table 9.1 illustrates a
few examples of MAC module cascading configurations
5. MAC module APSs require logically adjacent state-to-state transitions. Use of cycles
and buffer states is permitted and is sometimes necessary. Each cycle or buffer state
transition is strictly controlled by the handshake configuration between the SAM and
TCM.
PLD inputs
m 2k-1 m1 m0
k-decoder
inputs
k-1 1 0 0
1
PLD Select
Decoder EN PLD2k-1 EN PLD1 EN PLD0
2k-1
n NS inputs
In–1 I1 I0
2n state
MAC module CL CL(L)
Figure 9.2: Generalized architecture for programming an n-bit MAC module to operate with any
one of 2k PLDs (ROMs, PLAs, PALs, or CPLDs) by using k-inputs to a PLD select decoder and by
using 2k, n-inputs to the interfacing logic.
caps and time-shared system design 123
6. The general architecture for programming an n-bit MAC module to operate as any one
of 2k asynchronous state machines or microcontrollers (AMCs) on a time-shared basis is
shown in Figure 9.2. Here, the driving logic can be any number or combination of PLDs
such as PLAs, PALs, ROMs, FPGAs, GALs, or CPLDs (see Glossary). A single RAM
can replace or work in conjunction with the PLDs to produce nearly an unlimited number
of different AMCs.
7. Quasi-Muller circuit designs of MAC module APSs are preferred. By designing MAC
modules with C-elements as memory, use of input arbiters will usually not be necessary.
Metastability may be a nonissue with properly designed Muller circuits. However, it is not
clear if any C-element design can render it free of the metastable condition that may result
when an input to a C-element is withdrawn before the “weak (keeper)” feedback inverter
has fully responded to the last input change. See Section 3.7 and Chapter 11 for a more
complete discussion of this subject.
Figure 9.3: State diagrams for a two-input (22 state) MAC module. (a) The 2 × 2 state array machine
(SAM) showing the branching conditions, holding conditions and outputs for even parity (EP) and odd
parity (OP) states. (b) Timing control machine (TCM).
The optimized NS and output logic expressions for the TCM are obtained directly from the
state diagram in Figure 9.3b and from Figure 9.4d and 9.4e, respectively, and are given in Eqs. (9.2).
Direct reading of the TCM state diagram, to give its NS logic, is possible because So and Se cannot
be active at the same time and R1 = R0 = Reset are required to return the TCM to the unresolved
state, 00. Thus, the subscripted variables S1,R1 and S0,R0 are the inputs to the TCM C-elements
1 and 0, respectively. The prime symbol on TCM state variables, y′1 and y′0, is used to distinguish
{
them from the SAM state variables, y1 and y0.
S1 = So S0 = Se
R1 = Reset
To = y1
Te = y0
R0 = Reset { (9.2)
DI = y1 EP + y0 OP
= ToEP + TeOP
caps and time-shared system design 125
y0 y0 y0
y1 0 1 y1 0 1 y1 0 1
Figure 9.4: NS and output K-maps for the design of a 2 × 2 MAC module. (a) LPD NS K-maps as
plotted from Figure 9.3a. (b) The Y → SR K-map conversion algorithm in Section 2.1 for the C-element
design showing minimum cover. (c) Output K-maps showing XOR-type configurations for a minimum
representation. (d and e) Output K-maps for the TCM.
The optimum logic circuit for the two-input (four-state) MAC module is shown in Figure
9.5, where C-elements are used as the memory elements. When C-elements are used as the
memory, metastability becomes a nonissue except as discussed in Section 3.7. The fact that C-
elements operate outside of the fundamental mode is important to the reliability of a MAC mod-
ule and to any APS in which it is used. The 2 × 2 MAC module logic in Figure 9.5 has but
one exclusive OR (XOR) gate to generate the OP signal. This XOR gate can be optimized for
speed by using a modern CMOS version consisting of only six high-speed transistors (see Tin-
der’s books in Endnotes). Keep in mind that the internal handshake mechanism depends on the
parity parameters EP and OP, where for an n-input MAC module OP = yn - 1 ⊕ . . . ⊕ y2 ⊕
126 asynchronous sequential machine design and analysis
y1(L)
y0(L)
Te(H)
I1 (H)
y1(L)
y0(H)
To(H)
I1 (H)
y1(H) y1(H)
y0(L)
To(H) y1(L)
I1 (H)
y1(H) CL(L)
y0(H)
Te(H) To(H)
I1 (H) EP(H)
DI(H)
y1(L) Te(H)
y0(L) DI(L)
OP(H)
Te(H)
I0 (H)
y1(H)
y0(L)
To(H)
I0 (H)
y1(L) y0(H)
y0(H) y0(L)
To(H)
I0 (H)
y1(H) CL(L)
y0(H)
Te(H)
I0 (H) OP(L) Te(H) So(H)
To(H)
Te(H)
EP(L)=OP(H) Se(H)
To(H)
Figure 9.5: Optimum NS and output logic diagrams for the C-element design of a two-input (four-
state) MAC module. (a) SAM section implemented from Eqs. (9.1). (b) TCM section implemented
directly from the state diagram in Figure 9.3b and Eqs. (9.2).
y1 ⊕ y0. Thus, the larger the state capacity of the MAC module, the slower will be its state-to-state
transition response time. Remember that a string of XORed functions requires an XOR tree. As
will be demonstrated in Section 9.4, two-input MAC modules can be cascaded (according to Table
9.1) without compromising speed or reliability, a very important design consideration. MAC mod-
caps and time-shared system design 127
ules having inputs grater than 2 are unnecessary due to the cascading capability of the two-input
module.
Figure 9.6: Generalized transition conditions and outputs for the EP and OP states of a 2n state
SAM with n-way out-branching.
128 asynchronous sequential machine design and analysis
arrival of the SAM in state 10, where OP becomes active, the TCM output DI is activated causing
Reset to be issued by the SAM, which in turn causes the TCM to transit back 01 → 00 deactivating
Te. Now in state 10, the SAM awaits for the activation of a single input (I1 or I0) before output So
can be issued. When one of these two inputs becomes active, the SAM will transit to an EP state,
depending on the particular input that becomes active, and the process begins all over again—an
orderly, well-defined handshake process.
It is important to remember that each state of the SAM is logically adjacent to all states to
which it can transit. This fact eliminates any chance that a critical race or output race glitch can oc-
cur. Moreover, it is the programming of the MAC module that permits only one input to be active
at any given time, thereby eliminating static, function and dynamic hazards from forming in the NS
logic of the SAM. The generalized transition conditions and outputs for the EP and OP states for
a 2n state SAM with n-way branching is shown in Figure 9.6.
I1 I0 I1 I0 I3 I2 I1 I0
DI32(H) y3(H) y2(H) DI10(H) y1(H) y0(H) DI32(H) DI10(H) y3(H) y2(H) y1(H) y0(H)
DI32(L) DI10(L) DI32(L) DI10(L)
(a) (b)
Figure 9.7: (a) Two 2 × 2 MAC modules each with four-state capability and up to two-way branch-
ing. (b) The two 2 × 2 MAC modules in (a) combined to produce a 4 × 4 MAC module with 16-state
capability and up to four-way branching with no loss of speed or reliability.
caps and time-shared system design 129
y1y0
y2y1y0 MAC-0 Program Table
y2 00 01 11 10
NS 0 0 0 0 1
000 001 PS Instructions
1 1 0 0 0
y2 y1 y0 I2 I1 I0
I2
0 0 0 0 0 1 y1y0
y2 00 01 11 10
CNT E 100 011
0 0 1 0 1 0 0 0 1 0 0
0 1 0 1 0 0
1 0 0 1 0
0 1 1 0 0 1
I1
101 010 y1y0
1 0 0 1 0 0
y2 00 01 11 10
1 0 1 0 0 1 0 1 0 1 0
1 1 0 0 0 1
111 110 1 0 1 0 1
1 1 1 0 1 0
I0
(a) (b) (c)
Figure 9.8: Design of the MAC-0 FSM. (a) State diagram for a 3-bit Gray code counter FSM.
(b) Program table of the 3-bit Gray code counter in (a) as required for implementation by the 4 × 4
MAC module in Figure 9.7. (c) Optimum XOR logic from the table in (b) suitable for MAC-0 module
implementation.
130 asynchronous sequential machine design and analysis
FSM would go out of control much like a multistate oscillator. Recall that as a synchronous FSM,
this counter would be controlled by the action of a system clock input to three flip-flops.
The optimum XOR-type logic cover is indicated by shaded loops in Figure 9.8c. The opti-
mum results are easily read directly from _the K-maps and are given by Eqs. (9.3). In these expres-
sions, the equivalence symbol is given by ⊕ (complement of the XOR symbol). For a review of XOR
algebra and graphics, see Appendix A.2 and Tinder’s text in Endnotes.
I2 = 0 ( y2 ⊕ y1) I1 = y0 (y2 ⊕ y1 ) I0 = y2 ⊕ y1 ⊕ y0
(9.3)
CNT = y2 1 0
The optimum logic circuit for the 3-bit Gray code counter is shown in Figure 9.9 in agree-
ment with Eqs. (9.3). The outputs are enabled with NOR gates such that an EN(L) = 1(L) enables
the output, whereas an EN(L) = 0(L) disables them. Control of output activation in this manner is
essential to the time-shared multiplexing of different FSMs by using a single MAC module. Note
that the gate/input tally for the XOR/NAND/NOR circuit in Figure 9.9 is 4/8 (excluding the
enabling and output logic) as compared to 11/32 for two-level sum-of-product (SOP) logic, again
excluding the enabling and output logic. Obviously, there is a considerable savings in hardware
by using XOR-type logic. Note that the deactivate inputs, DI32 and DI10 are necessary for MAC
module control of the cycle states.
As a second example, consider the FSM in Figure 9.10 that will detect the direction of rota-
tion [counterclockwise (CCW) or clockwise (CW)] of a cylindrical shaft under variable rotational
speed. This is accomplished by photocell sensing of light beams reflected off the shaft’s end surface,
half of which has been made a reflecting and half nonreflecting. Thus, the rotational speed of the
shaft is limited to the response time of the photocells. Shown in Figure 9.10(a) is the MAC-1
y0(L)
DI32 (H) I2(H) y0(H) y0(L)
EN(L)
y1(H) y1(L)
y2(H) y0(H)
DI10 (H) I1(H) y2(H) y2(L)
y1(H)
EN(L)
y2(H)
y0(H) DI10 (H) I0(H) y1(L)
y0(L) CNT(H)
EN(L)
EN(L)
Figure 9.9: MAC-0 implementation of Eq. (9.3) with XOR/NAND/NOR logic with active low en-
able EN(L) and DI inputs and an active high output, CNT(H ), for use with the 4 × 4 MAC module in
Figure 9.7b.
caps and time-shared system design 131
FSM state diagram and inputs as required for detecting the rotational direction of the shaft. Figure
9.10b shows the program table read directly from the state diagram in Figure 9.10a suitable for use
with either a 2 × 2 MAC module or the 4 × 4 MAC module given in Figure 9.7b. Note that the in-
put requirements are those needed for the FSM to transit to logically adjacent states with a change
of only one state variable. For example, in present state 00, an NS instruction of I1 = A� is needed
to effect the transition 00 → 10 where only state variable y1 changes. Or, in PS 10, a NS instruction
I0 = � � causes a transition 10 → 11 that takes place with a y0 state variable change. Continuing in
this manner, the MAC-1 transitions occur strictly controlled by the MAC module, free of all timing
defects including possible E-hazards.
B
y1y0 MAC-1 Program Table
CCWE if A PS NS Instructions
00
AB y1 y0 I1 I0 CCW
AB
0 0 AB AB A
AB
0 1 AB AB B
A 01 CCWE if B 1 1 AB AB A
1 0 AB AB B
AB
AB (b)
B 11 CCWE if A y0 y0
y1 0 1 y1 0 1
AB 0 AB AB 0 AB AB
AB AB
1 AB AB 1 AB AB
10 I1 I0
CCWE if B B
A 0 1
A 0 A B
Figure 9.10: Design of the MAC-1 FSM required to detect the direction of rotation (CCW or CW)
of a cylindrical shaft. (a) State diagram and input requirements for the rotation detector having two
inputs and one output. (b) Program table as required to implement the MAC-1 FSM by using the 4 × 4
MAC module in Figure 9.7. (c) EV K-maps showing the optimum two-level input and output logic
suitable for MAC-1 implementation.
132 asynchronous sequential machine design and analysis
The entered variable (EV) K-maps for the NS instructions, I1 and I0, and the single output
CCW are given in Figure 9.10c. The optimum two-level logic expressions for the NS instructions
and output are indicated by shaded loops and are given by Eqs. (9.4) and (9.5), respectively. Also
given in Eqs. (9.4) are the XOR-type expressions for the two NS instruction parameters, which we
will use in preference to the two-level logic. The XOR-type expressions in Eqs. (9.4) can be looped
out directly in maxterm code from their respective K-maps. (See Tinder’s text in Endnotes for K-
map minimization of XOR-type functions.) Note that there are two internally initiated static-1
hazards in the CCW expression and that they are covered by the two p-terms shown. For a review
of static hazards in the NS and output logic expressions, refer to Section 3.3.
_ _
I1 = 1 AB + y1 A B = 1 A + y1 1 + y1 B = y1 ⊕ A y 1 B
__ (9.4)
I0 = 0 A B + y0 AB = 0 + y0 A 0 + y0 B = ( y0 A) y0 B
_
CCW = 1 0 A + 1 y0 B + y1 0 + y1 y0 + 1 AB + y0 A B (9.5)
Hazard Cover
Implementation of the logic expressions in Eqs. (9.4) and (9.5) is given in Figure 9.11, where
NOR gates are used for enable NS instruction purposes. The NS instruction inputs, I1 and I0, are
y1(L)
y1(H) y1(L)
y0(L)
y0(H) y0(L) A(H)
y1(L)
EN(L) EN(H) y0(H)
B(H)
y1(L) y1(H)
A(H) y0(L)
EN(L) I1(H) B(L)
y1(H) y1(H) CCW(L)
B(H) y0(H)
A(L) EN(H)
y0(H) y1(L)
A(H) A(H)
EN(L) I2(H) B(H)
y0(H) Hazard Cover
y0(H)
B(H) A(L)
B(H)
(a) (b)
Figure 9.11: Logic circuits using the wireless connection feature for the MAC-1 FSM consistent
with Eqs. (9.4) and (9.5), and suitable to be implemented by the 4 × 4 MAC module shown in Figure
9.7. (a) NS instruction logic circuit made up of XOR/NOR logic with active low enable EN(L). (b)
NAND output logic circuit with EN(H ), active low output CCW(L) and showing hazard cover indi-
cated by shaded gates.
caps and time-shared system design 133
implemented by using exclusively XOR/NOR logic. For a review of mixed-logic XOR and EQV gate
symbology, see Appendix A.1. Hazard cover in the output CCW is shown as shaded NAND gates.
The third example is that for the MAC-2 FSM featuring a five-state FSM with an additional
two states used as buffer states to permit logically adjacent transitions as required by MAC module
implementation. This FSM has two inputs, S and T, controlling the state-to-state transitions and
S+T
y2y1y0
MAC-2 Program Table
000
PS NS Instructions
ST
ST y2 y1 y0 I2 I1 I0 P Q
ST 001 Q 0 0 0 0 0 ST 0 0
ST 0 0 1 ST S 0 0 1
S
101 0 1 0 0 ST 0 ST S
ST
Q if ST 0 1 1 0 ST ST 0 ST
011
ST ST 1 0 0
1 0 1 0 1 0 0 1
ST 111 Q if ST 010 S+T
T
1 1 0 1 0 0 0 0
P if ST
T 110 Q if S 1 1 1 ST 0 T 0 ST
(a) (b)
0 0 ST 0 0 0 0 S ST ST 0 ST 0 ST 0
1 0 ST 1 1 1 0 0 1 0 T 0
I2 I1 I0
y1y0 y1y0
y2 00 01 11 10 y2 00 01 11 10
0 0 0 0 ST 0 0 1 ST S
1 0 0 0 1 1 ST 0
P Q
(c)
Figure 9.12: Design of the MAC-2 FSM having five primary states and two buffer states, 101 and
110, as required to prodice logically adjacent transitions. (a) State diagram. (b) Program table obtained
directly from the state diagram in (a). (c) NS instruction and output K-maps obtained from the program
table in (b) and showing optimum cover.
134 asynchronous sequential machine design and analysis
two outputs, P and Q, as shown in the state diagram of Figure 9.12a. The program table for the
MAC-2 FSM is obtained directly from the state diagram and is presented in Figure 9.12b. From
the program table, the NS instruction and output functions are plotted in EV K-maps shown in
Figure 9.12c, where optimum cover is indicated by shaded loops. The NS and output expressions
for the MAC-2 FSM are extracted from the optimum cover in Figure 9.12c and are presented by
y2(L)
y1(L)
y0(H)
S(L)
T(H)
y2(H)
y2(H) y2(L)
y1(H)
S(H) I2(H) y1(H) y1(L)
T(H)
y0(H) y0(L)
y2(H)
y0(L)
EN(L) EN(H)
y2(L)
y1(H)
y0(L)
S(L)
T(H) y2(H)
y1(L)
y2(L) y0(H)
y1(H) S(L)
P (H)
y0(H) T(H)
S(L)
T(L)
I1(H) y2(L)
y1(L) y1(H)
y0(H) y0(L)
S(H) S(H)
y2(L)
y2(H) y1(H)
y1(L) S(H)
T(L)
Q (H)
y1(L) y2(H)
y0(H) y0(H)
S(L) S(L)
T(L) T(H) EN(H)
y1(H) y1(L)
y0(H) y0(H)
S(H) I0(H)
T(L)
y2(H)
y1(H) EN(H)
y0(H)
T(L)
(a) (b)
Figure 9.13: Logic circuits using the wireless connection feature for the MAC-2 FSM consistent
with Eqs. (9.6) and suitable to be implemented with the 4 × 4 MAC module given in Figure 9.7. (a) NS
instruction logic with NAND/AND logic. (b) Output circuits with NAND/AND logic.
caps and time-shared system design 135
X+Y
y3y2y1y0
0000 MAC-3 Program Table
XY PS NS Instructions
Y
0001 XY I3 I2 I1 I0 SEQ_VALID
XY 0000 0 0 0 XY 0
X
0010 0011 XY 0001 0 0 XY Y 0
XY 0010 0 0 1 0 0
Y
0110 0111 XY 0011 0 XY 0 X 0
XY 0100 0 1 0 0 0
XY
1101 XY 0111 0 0 XY Y 0
Y XY 1000 Y 0 0 0 1
1111 XY 1001 0
X
XY 1010 0
1110 XY 1011 0
XY 1100 X XY 0 0 0
X
XY 1100 1101 X 0 XY 0 0
XY 1110 X 0 XY 0 0
Y
1000 1111 Y 0 0 XY 0
SEQ
(a) (b)
Figure 9.14: Design of the MAC-3 FSM, a 10-state sequence recognizer having two inputs control-
ling logically adjacent transitions and one output. (a) State diagram involving three direct buffer states
and two indirect buffer states. (b) Program table for the PS and NS instruction parameters, and the single
output.
136 asynchronous sequential machine design and analysis
Eqs. (9.6). Note that static hazards are not possible in the NS instruction functions and none are in
dicated in the output expressions. Implementation of Eqs. (9.6) is given in Figure 9.13, where again
the wireless connection feature is used to simplify the schematic capture.
I2 = 2 1 y0 T + y2 y1 ST + y2 0
_
I1 = 2 y1 0 T + 2 y1 y0 T + 1 y0 S + y2 1
I0 = 1 0 + y1 y0 S + y2 y1 y0 (9.6)
P = 2 y1 0 S
Q = 2 y1 0 S + 2 y1 S + y2 y0T + 1 y0
y1y0 y1y0
y3y2 00 01 11 10 y3y2 00 01 11 10
00 0 0 0 0 00 0 0 XY 0
01 0 XY 0 0 01 1 0 0 1
11 X X Y X 11 XY 0 0 0
10 Y 10 0
I3 I2
y1y0 y1y0
y3y2 00 01 11 10 y3y2 00 01 11 10
00 0 XY 0 1 00 XY Y X 0
01 0 0 XY 0 01 0 X Y 0
11 0 XY 0 XY 11 0 0 XY 0
10 0 10 0
I1 I0
Figure 9.15: NS instruction K-maps for the MAC-3 FSM in Figure 9.14a plotted from the program
table in Figure 9.14b showing optimum cover indicated by shaded loops.
caps and time-shared system design 137
As our final example, consider the state diagram and program table for the MAC-3 FSM,
a 10-state sequence recognizer suitable for implementation by the 4 × 4 MAC module shown in
Figure 9.7a. The state diagram in Figure 9.14a has two inputs controlling the state transitions and
y3(L)
y2(H)
y3(H) y3(L) y1(H)
y0(H)
y2(H) y2(L) X(L)
Y(H)
y1(H) y1(L) y2(L)
y1(L)
y0(H) y0(L) y0(H)
X(H)
y3(L) Y(L)
y2(H) EN(L) EN(H) y3(H)
y1(L) y1(L)
y0(H) y0(H)
X(L) X(L)
I1(H)
Y(L) Y(H)
y3(H) y3(H)
y2(H) y1(H)
y0(L) y0(L)
X(L) X(H)
Y(L)
y3(H) y2(L)
y1(L) y1(H)
y0(H) I3(H) y0(L)
X(H)
y3(H)
y1(H) y3(L)
y0(H) y2(L)
Y(L) y1(L)
y0(L)
y3(H) X(L)
y2(L) Y(L)
Y(L)
y3(L)
y2(H)
y2(L) y1(L)
y1(H) y0(H)
y0(H) X(H)
X(H) y3(L)
Y(H) y2(H)
y1(H)
y2(H) y0(H)
y1(L) Y(L)
y0(L) I0(H)
X(H) I2(H) y3(H)
Y(H) y1(H)
y0(H)
y3(L) X(H)
EN(H) Y(H) EN(H)
y2(H)
y0(L) y3(H)
y1(H)
y0(L)
EN(L) Y(H)
y3(L) SEQ(H) y2(L)
y2(H)
y1(H)
y0(H)
X(L)
Figure 9.16: Logic circuits using the wireless connection feature representing the four NS instruction
inputs and the output function SEQ with enable for the MAC FSM-3 in agreement with the K-map
logic cover given in Figure 9.15 and Eqs. (9.7), and suitable for implementation by using the the 4 × 4
MAC module in Figure 9.7.
138 asynchronous sequential machine design and analysis
one output issued in state 1000 at the end of a successful sequence. Any violation of the required
sequence must return the FSM to the initiation state, 0000, whereupon the FSM automatically
transits to the first state in the sequence, 0001. Note that three direct buffer states (0010, 0100,
and 0110) and two indirect buffer states (0101 and 0111) are required to produce logically adjacent
(reverse parity) transitions given the state assignment shown. By retaining the 0000 initiation state,
alternative state code assignment schemes are acceptable as long as reverse parity transitions are
ensured and the FSM is initialized into the 0000 state.
Shown in Figure 9.15 are the EV K-maps for the NS instruction parameters with the opti-
mum cover indicated by shaded loops. Note that there are no shared prime implicants typical for
MAC module designs. The hardware requirements are significant and perhaps best implemented
by using a PLD such as a PLA. We will use the optimum two-level SOP logic indicated by shaded
loops in the K-maps. This logic extracted from the K-maps is presented in Eqs. (9.7) indicating fan-
in requirements from three to six. The output SEQ (sequence valid) in state 1000 is given simply
by y3�2 making use of the three don’t care states. Note that static hazards are not possible in the NS
instruction logic because the handshake interaction between the SAM and TCM does not permit
them to exist.
I3 = 3 y2 1 y0 + y3 y2 0 + y3 1 y0 X + y3 y1 y0 + y3 2
I2 = 2 y1 y0 XY + y2 1 0 XY + 3 y2 0
I1 = 3 y2 y1 y0 Y + 2 1 y0 X + y3 1 y0 Y + y3 y1 0 X + 2 y1 0 (9.7)
I0 = 3 2 1 0 + 3 y2 1 y0 X + 3 y2 y1 y0 + y3 y1 y0 XY + 2 1 y0 Y + 2 y1 y0
SEQ = y3 2
0I1(H) 0I0(H)
0I2(H) 1I0(H)
Interfacing 1I1(H) I1(H) I0(H)
2I2(H) I2(H)
2I1(H) 2I0(H)
Logic 3I2(H) 3I0(H)
3I1(H)
EN0(L)
I3 I2 I1 I0
D0(H) 2 to 4 EN1(L)
4x4 MAC Module CL MCL(L) D1(H) Decoder EN2(L)
DI
y3 y2 y1 y0 EN3(L)
Figure 9.17: Block diagram architecture, consistent with Figure 9.2, used to illustrate the time-
shared operation of four different FSMs, MAC-0, MAC-1, MAC-2, and MAC-3, by using the 4 × 4
MAC module in Figure 9.7b with master CLEAR (MCL).
Figure 9.18 illustrates the simulation of the four FSM architecture in Figure 9.17 showing
the time-shared results for FSMs MAC-0, MAC-1, MAC-3, and MAC-2 presented in that order.
It is important to note that only for MAC FSM-0 is it necessary to use deactivate inputs, DI32 and
DI10, for MAC module control because all state-to-state transitions are cycles not controlled by
external inputs. The remaining three FSMs have state-to-state transitions all controlled by external
inputs. MAC FSM-2 has two buffer states (101 and 110) and MAC FSM-3 has three buffer states,
all of which are controlled by external inputs. Thus, one cycle state is acceptable and need not be
controlled by DIs to the FSM instruction logic. Note that in MAC FSM-3 the primary state 0111
also serves as a buffer state controlled by the external input �. Obviously, MAC FSM-1 has neither
buffer nor cycle states. It would not be wrong to use the DI feature for all FSMs, but that would
be unnecessary and would lead to additional inputs thereby increasing throughput delay. Note that
the inputs to the four FSMs are continuously present during the entire time-shared operation, but
140 asynchronous sequential machine design and analysis
Names 40.00 ns 40.00 ns 120.00 ns 160.00 ns 200.00 ns 240.00 ns 280.00 ns 320.00 ns 360.00 ns 400.00 ns 440.00 ns
CL(L) MAC-0 MAC-1 MAC-3 MAC-2 MAC-0
ENABLES
0EN(L)
1EN(L)
2EN(L)
2EN(L)
INPUTS
A(H)
B(H)
S(H)
T(H)
X(H)
Y(H)
y-VARIABLES
y3(H)
y2(H)
y1(H)
y0(H)
OUTPUTS
CNT (L)
CCW (H)
P(L)
Q(L)
SEQ (H)
DEACTIVATE
INPUTS
DI 32(H)
DI 10(H)
Figure 9.18: Time-shared simulation of four radically different asynchronous FSMs featured in
Figure 9.17 all driven by the 4 × 4 MAC module shown in Figure 9.7b as enabled by a 2-4 decoder.
the corresponding outputs are active only when the given FSM is enabled. Remember that all y
variables can be deactivated anytime during the time-shared operation of the four FSMs by using
the master CLEAR. It would be more complicated to activate only the y variables to the FSM
selectively enabled.
The DI(H ) outputs from the 4 × 4 MAC module in Figure 9.17 mark each state-to-state
transition in a given time-shared operation and are shown in Figure 9.18. As pointed our earlier,
such DI signals can be used to control system peripherals or other operations as, for example, transi-
tion count and transition time analysis.
What we have just demonstrated is the use of a MAC module (a cascaded MAC module
system in this case) to switch instantly from one asynchronous FSM to another radically different
one on a time-shared basis—all free of timing defects. This is quite remarkable because timing
defects owned exclusively by asynchronous FSMs are normally considered a major setback to their
design and operation. Combinational hazards and sequential hazards (essential hazards), which are
caps and time-shared system design 141
timing defects with the potential to cause malfunction, are not possible in a MAC module FSM
design. What this means is that a designer can design and operate any asynchronous FSM and be
rest assured that it will operate correctly as designed. That is the upside of the MAC approach. The
downside is that each state-to-state transition must be logically adjacent, a Hamming distance of
one. This, in turn, may require the use of additional state variables and the insertion of buffer and
cycle states. But the logically adjacent transition requirement eliminates critical races and output
race glitches, removing those issues from consideration.
Clearly, use of the MAC module to operate a number of controller FSMs on a time-shared
basis offers an attractive opportunity to design complex asynchronous systems all free of timing
defects. By logically combining the appropriate DI and y variable signals from the MAC module, it
is possible to activate specific data path devices when required for each of the controllers.
• • • •
143
chapter 1 0
Before continuing, the reader should review Chapter 5, which provides the necessary background
to understand one-hot asynchronous sequencers. In particular, Eqs. (5.1) and the characteristics of
the one-hot method outlined in Section 5.2 should be thoroughly understood before moving on to
the more complex subject matter in this chapter.
The one-hot programmable sequencer (A-OPS) enjoys some attractive advantages over the
microprogrammable asynchronous controller (MAC) module approach discussed in the previous
chapter. Because of the one-hot coding (one “1” for each state), a timing control machine is not
needed—no parity detection or deactivation of inputs is required. Furthermore, programming of
a one-hot sequencer is exceedingly simple because it is only necessary to provide the sequencer
with the branching condition for each one-hot state-to-state transition as read from a state table
or state diagram of the finite state machine (FSM) to be designed. Similar to the MAC module,
the one-hot approach requires a single-state array sequencer machine that can support any number
of FSMs on a time-shared basis, but only if the FSMs do not exceed the state number limitation
of the sequencer. Unlike the MAC module sequencer, a one-hot sequencer can support any state-
to-state transition in an FSM provided it is void of cycle conditions, including, in particular, endless
cycles. Recall that the deactivate inputs DI feature of the MAC module permits cycles to exist and
be controlled.
difference in the manner in which these sequencers are used. One-hot asynchronous sequencers
cannot be cascaded like MAC modules in Figure 9.7. Thus, only a single one-hot sequence is per-
mitted to operate a given number of FSMs on a time-shared basis, where each FSM is limited to
the n states of the sequencer.
An inspection of Figure 10.1 indicates that an n-state one-hot sequencer requires specifica-
tion of n2 inputs, one for each branching condition in an n × n state array. As indicated in Figure
10.2, each jth state of a completely specified n-state one-hot sequencer requires n input branching
paths, including the required holding condition. This means there exists n-way branching capability
to and from each state. Thus, for n states, n2 branching conditions must be specified in a one-hot
sequencer that contains all possible branching paths. For example, a 10-state one-hot sequencer
requires that 100 branching conditions be specified for a given FSM design, although many of these
branching conditions are set to logic 0 if their corresponding branching paths do not exist for the
implementation of a given FSM. Clearly, this is a hardware-intensive design. To avoid costly fan-in
PLD inputs
m 2k-1 m1 m0
k-Select
Inputs
k-1 1 0 0
1
PLD Select
Decoder PLD2k-1 PLD1 PLD0
2k-1
n2 n2 n2
Interfacing
n2, 2k-1 Input (Max) OR Gates
Logic
I n2 -1 I2 I1 I0
yn-1 y2 y1 y0
Figure 10.1: Generalized architecture for programming an asynchronous n-state one-hot sequencer
with n2 inputs with feedback y variables to 2k - 1 PLDs.
Asynchronous One-Hot Programmable Sequencer Systems 145
fj� 0 f0� j
fj� j
fj�1 f1� j
Figure 10.2: Generalized transition conditions for the j th state of an n-state one-hot sequencer
showing n-way branching to and from the j th state.
delays due to multiple input ORing operations, use can be made of the complementary metal-oxide
semiconductor (CMOS) NOR gate in Figure 8.2 with active low inputs and with an inverter on
its output. Such a NOR gate is capable of accommodating up to eight inputs without significant
throughput delays. For large n-state one-hot sequencers, use of modern programmable logic de-
vices (PLDs) is recommended, preferably programmable logic arrays (PLAs).
An FSM designed via the one-hot method has but a single “1” assigned to each unique state
of the FSM as mentioned earlier. This makes possible the use of alphabetic or numeric state identi-
fiers such as a, b, c, … or 0, 1, 2, …. Thus, use of state code assignments is not necessary or even
desirable. The general next state (NS) and output equations for a single one-hot FSM of m states
are given by Eqs. (5.1). For an n-state A-OPS, there must be n2 branching conditions such that the
NS equations are represented generally as
n− 1 n − 1 n−1
Yj = ∑ ∑ fij yi + yj ⋅ ∑ yk
j=0 i=0 k=0
k=j (10.1)
‘‘Into’’
Terms ‘‘Out of ’’
Terms
with no output Zl expressions required for an A-OPS. In quasi-tensor subscript notation, by using
the Einstein summation convention, Eq. (10.1) can be written more succinctly as
_
Yj = fij yi + yj Fj i, j = 0, 1, 2, . . . , n − 1 (10.2)
Here, Fj represents the Boolean sum of all y variables to which the jth state transits and Fj is the
complement of that sum. Also, it should be noted that fij ≠ fji, meaning that fj←i ≠ fi←j, that is,
146 asynchronous sequential machine design and analysis
the branching condition matrix is asymmetric (not symmetric). The “out of ” term for each NS
function is a p-term consisting of the uncomplemented state variable for that function ANDed with
the complement of the remaining state variables. Note that an initialization term �0 �1 �2 �3 … �n-1
must be combined with a specific Yj in Eq. (10.1) for use with the one-hot-plus-zero approach to
initialization. This is accomplished by using the factoring and absorptive laws (see Appendix A.2)
resulting in a reduced p-term consisting of the complement of all state variables exclusive of that
for the initialization state. Once the one-hot-plus-zero implementation is complete, the sanity cir-
cuit can be used to drive the FSM (to be designed) into the initial one-hot state via the all-zero
state.
f02
Figure 10.3: State diagram for a four-state 1-hot sequencer that will initialize into the state 0 via the
one-hot-plus-zero method.
Asynchronous One-Hot Programmable Sequencer Systems 147
⎡ ⎤ ⎡ ⎤⎡ ⎡_ _ _
⎤ ⎤
Y0 f00 f10 f20 f30 y0 y1 y2 y3
⎢Y ⎥ ⎢ f f21 f31 ⎥ ⎢ ⎥ ⎢ _ _ _ ⎥
⎢ 1 ⎥ ⎢ 01 f11 ⎥ ⎢ y1 ⎥ + ⎢ y1 y0 y2 y3 ⎥
⎢ ⎥ = ⎢ ⎥⎢ ⎥ ⎢ _ _ _ ⎥ (10.3)
⎣ Y2 ⎦ ⎣ f02 f12 f22 f32 ⎦ ⎣ y2 ⎦ ⎣ y2 y0 y1 y3 ⎦
_ _ _
Y3 f f13 f23 f33 y3 y3 y 0 y1 y2
� 03 �� � � �� �
‘‘Into’’ Terms ‘‘Out of ’’ Terms
Expansion of the matrices in Eq. (10.3) results in the equations for the lumped path delay
design of the asynchronous one-hot sequencer. However, we will use Muller C-elements (Figure
1.12 or 1.13) in the design of A-OPS machines because C-elements operate outside of the funda-
mental mode. To do this requires that we apply the simple Y → S� algorithm given by Eqs. (5.2)
and is restated below for the convenience of the reader:
Here, it is seen that the �j function includes the holding condition fjj and the ANDed complements
of all the present state variables except that for yj. The exception is �0, which is always f00 with the
application of the one-hot-plus-zero initialization method. By using this conversion algorithm,
we construct the Sj and �j equations directly from Eq. (10.3) to produce the results given by Eqs.
(10.4).
We can apply the same procedure to the design of any n-state A-OPS. As a second example,
consider the six-state asynchronous one-hot sequencer fully specified by the state diagram in Figure
10.4. Here, the 36 branching functions fij are shown together with the Sanity input required for
the one-hot-plus-zero initialization into the 0 state. As for the four-state diagram, the functions fjj
148 asynchronous sequential machine design and analysis
f00
000000 SANITY
f05
0
f01 f10
f50
f04 f02
f15
f55 5 1 f11
f51
f03
f52 f14
f54 f12
f40 f53 f13 f21
f45 f20
f41 f25
f30
f24
f44 4 2 f22
f42
f35 f31
f34 f23
f43
3 f32
f33
Figure 10.4: State diagram for a six-state one-hot sequencer showing the 36 branching function and
the one-hot-plus-zero initialization into state 0.
along the leading diagonal of the function matrix represent the holding conditions (six, in this case)
each of which is one of six “into” branching functions required for a six-state one-hot sequencer.
Applying Eq. (10.2) to the six-state A-OPS results in the matrix Eq. (10.5), where the “into”
terms consist of a 6 × 6 asymmetric branching function matrix ANDed with a 6 × 1 matrix of
present-state functions, yi. The first of the “out of ” terms results from combining the y0F j term to
the one-hot-plus-zero term to give y0 �1 �2 �3 �4 �5 + �0 �1 �2 �3 �4 �5 = �1 �2 �3 �4 �5 following application of
the factoring and absorptive laws.
Asynchronous One-Hot Programmable Sequencer Systems 149
⎡ ⎤ ⎡ ⎤ ⎡ ⎤ ⎡_ _ _ _ _ ⎤
Y0 f00 f10 f20 f30 f40 f50 y0 y 1 y2 y3 y4 y5
⎢ ⎥ ⎢ ⎥ ⎢ ⎥ ⎢ _ _ _ _ _ ⎥
⎢ Y1 ⎥ ⎢ f01 f11 f21 f31 f41 f51 ⎥ ⎢ y1 ⎥ ⎢ y1 y0 y2 y3 y4 y5 ⎥
⎢ ⎥ ⎢ ⎥ ⎢ ⎥ ⎢ _ _ _ _ _ ⎥
⎢ Y2 ⎥ ⎢ f52 ⎥ ⎢ ⎥ ⎢ ⎥
⎢ ⎥ = ⎢ f02 f12 f22 f32 f42 ⎥ · ⎢ y2 ⎥ + ⎢ y2 y_0 y_1 y_3 y_4 y_5 ⎥ (10.5)
⎢Y ⎥ ⎢f f13 f23 f33 f43 f53 ⎥ ⎢ ⎥ ⎢ ⎥
⎢ 3⎥ ⎢ 03 ⎥ ⎢ y3 ⎥ ⎢ y3 y0 y1 y2 y4 y5 ⎥
⎢ ⎥ ⎢ ⎥ ⎢ ⎥ ⎢ _ _ _ _ _ ⎥
⎣ Y4 ⎦ ⎣ f04 f14 f24 f34 f44 f54 ⎦ ⎣ y4 ⎦ ⎣ y4 y0 y1 y2 y3 y5 ⎦
_ _ _ _ _
Y5 f05 f15 f25 f35 f45 f55 y5 y5 y0 y 1 y2 y3 y4
� �� � � �� �
‘‘Into’’ Terms ‘‘Out of ’’ Terms
The Sj , �j functions in Eqs. (10.6) for a six-state A-OPS derive directly from Eq. (10.5) by
applying the Y → SR conversion algorithm Eqs. (5.2) previously given. These functions can now be
used in the design of pseudo-Muller circuits by using C-elements. Initialization into state 0 via the
000000 state results by connecting Sanity(L) to the CL(L) input inherent in the C-element CMOS
as indicated in Figures 1.12 and 1.13. Thus, a 1(L) (a low voltage) applied to the CL(L) of all C-
elements results in the initialization into the “0” state. Sanity circuits have been previously described
in Section 2.2.1.
S0
__ = f10 y1 + f20 y2 + f30 y3 + f40 y4 + f50 y5 + y1 + y2 + y3 + y4 + y5
R0 = f00
S = f01 y0 + f21 y2 + f31 y3 + f41 y4 + f51 y5
__1
R1 = f11 + y0 + y2 + y3 + y4 + y5
S2
__ = f02 y0 + f12 y1 + f32 y3 + f42 y4 + f52 y5
R2 = f22 + y0 + y1 + y3 + y4 + y5
S = f03 y0 + f13 y1 + f23 y2 + f43 y4 + f53 y5 (10.6)
__3
R3 = f33 + y0 + y1 + y2 + y4 + y5
S4
__ = f04 y0 + f14 y1 + f24 y2 + f34 y3 + f54 y5
R4 = f44 + y0 + y1 + y2 + y3 + y5
S5
__ = f05 y0 + f15 y1 + f25 y25 + f35 y3 + f45 y4
R5 = f55 + y0 + y1 + y2 + y3 + y4
Shown in Figure 10.5 is the C-element implementation of the six-state A-OPS as derived
from Eqs. (10.6). Note that the wireless connection feature is used as emphasized in this text. Also
observe that NAND/NOR logic is used including the use of both normal and complementary C-
elements given in Figures 1.12 and 1.13, respectively. The A-OPS is initialized into state 0 via the
all zero state 000000 following the activation of the a Sanity circuit input, SAN(L) = CL(L) = 1(L).
150 asynchronous sequential machine design and analysis
f10(H)
f01(H)
y1(H) y0(H) CL(L)
f20(H) f21(H)
y2(H) f00(H) f10(H)
y2(H)
f30(H) f31(H) f01(H) f11(H)
y3(H) y3(H) f02(H) f12(H)
f40(H) f41(H)
y0(H) f03(H) f13(H)
y4(H) y4(H) y1(H)
f50(H) f00(H) f04(H) f14(H)
f51(H)
y5(H) y5(H) f05(H) f15(H)
CL(L)
y1(H)
y2(H) y0(H) f11(H) CL(L)
y3(H) y2(H)
y3(H)
y4(H)
y4(H) f20(H) f30(H)
y5(H)
y5(H)
f21(H) f31(H)
f02(H) f22(H) f32(H)
f03(H)
y0(H) y0(H) f23(H) f33(H)
f12(H) f13(H) f24(H) f34(H)
y1(H) y1(H)
f32(H) f25(H) f35(H)
f23(H)
y3(H) y2(H)
f42(H) f40(H) f50(H)
f43(H)
y4(H) y2(H) y4(H) y3(H) f41(H) f51(H)
f52(H) f53(H)
y5(H) f42(H) f52(H)
CL(L) y5(H)
y0(H) f22(H) y0(H) f33(H) CL(L) f43(H) f53(H)
y1(H) y1(H)
y3(H) y2(H) f44(H) f54(H)
y4(H) y4(H)
y5(H) y5(H) f45(H) f55(H)
f04(H) f05(H)
y0(H) y0(H) Inputs
f14(H) f15(H)
y1(H) y1(H)
f24(H) f25(H)
y2(H) y2(H) y0(H) y1(H)
f34(H) f35(H) y2(H) y3(H)
y3(H) y4(H) y3(H) y5(H)
y4(H) y5(H)
f54(H) f45(H)
y5(H) y4(H)
CL(L) y0(H) CL(L)
y0(H)
y1(H)
f44(H) y1(H) f55(H)
y2(H) y2(H) Outputs
y3(H) y3(H)
y5(H) y4(H)
Figure 10.5: Simulator macro logic circuit using the wireless connection feature for the six-state
A-OPS shown in Figure 10.4 and derived from Eq. (10.6) as required for implementation with
Muller C-elements.
Before the six-state A-OPS is made ready to receive the instruction logic for the time sharing of
FSMs, the Sanity circuit must be deactivated, 1(L) → 0(L), and the holding condition for state 0,
f00, must be activated f 00 (H ) → 1(H ) and then deactivated. Once stably in state 0, the A-OPS is
ready to receive the logic instructions to implement any number of FSMs (e.g., controllers) provid-
ing each FSM does not exceed the six-state maximum requirement and is void of all cycle condi-
tions. Having met these requirements, each FSM can be operated on a time-shared basis free of all
Asynchronous One-Hot Programmable Sequencer Systems 151
timing defects. Recall that E-hazards can be activated only if specifically placed delays exceeding
a minimum magnitude are present as discussed in Section 5.4. Elimination of E-hazards is easily
accomplished by using feedback delays.
A� B B
AB = 0f 10 = 0f 23 A�B = 0f 00
AB A Å B = 0f 22
AB = 0f 03 = 0f 42 = 0f 51
0 1 A+B = 0f 33
AB = 0f 02 = 0f 13 B = 0f 11
AB AB = 0f 21 = 0f 34 = 0f 44 = 0f 50 B = 0f 45 = 0f 55
AB AB
AB AB
R� if AB (b) NS Instructions
AB
B 5 2 AÅ B
P�
Q� if AB
AB 0P = (y 3 AB + y 5) . 0EN
AB
0Q = y 5 AB . 0EN
B
4 AB 3 S� if AB 0R = y 2 AB . 0EN
P� if AB 0S = y 3 AB . 0EN
Figure 10.6: Design of a six-state FSM, named A-OPS FSM-0, to be implemented by using the
six-state A-OPS in Figures 10.4 and 10.5. (a) Fully documented state diagram. (b) NS instructions de
rived directly from the state diagram. (c) Output logic with enable 0EN.
152 asynchronous sequential machine design and analysis
The first of the three FSMs, to be operated by the six-state A-OPS, is named A-OPS FSM-0
and is defined by the state diagram in Figure 10.6a. It has six states, two input conditions, A and B,
and four outputs, 0P, 0Q, 0R, and 0S, where the zero is used to identify these outputs as belonging
to FSM-0. The NS instructions and output logic are easily derived directly from the state diagram
and are presented in parts (b) and (c) of Figure 10.6. Shown in Figure 10.7 is the macro logic circuit
for this FSM generated by the simulator used in this text, EXL-Sim, and briefly discussed on p. xiii.
Note that a wireless connection feature is used so as to avoid unnecessary detail.
The second FSM, to be designed for and operated by the six-state A-OPS is named A-OPS
FSM-1. It is represented by the fully documented state table in Figure 10.8a. Recall from Section
1.7 that a state table is nothing more than a tabular representation of a state diagram. It is particu-
larly useful in computer-aided design of FSMs.
The NS instructions and output logic are easily extracted directly from the state table and are
given in Figure 10.8(b). This FSM has five states, two inputs (S and T ), and two outputs (1P and
1Q), identifying them as belonging to FSM-1. The EXL-Sim macro logic circuit for this FSM is
given in Figure 10.9, which again makes use of the wireless connection feature.
The third FSM designed for and operated via the six-state A-OPS is represented by the
fully documented state diagram in Figure 10.10a and is given the name A-OPS FSM-2. It has six
states, two external inputs X and Y, and two outputs, 2P and 2Q, where the 2’s are added to identify
these outputs as belonging to FSM-2. The NS instructions and output logic for A-OPS opera-
tion are obtained directly from the state diagram and are given in Figure 10.10b and 10.10c. The
A(H) A(H)
B(H) 0f10(H) B(L) 0f03(H) y3(H)
EN(L) EN(L) A(L)
Figure 10.7: Simulator macro logic circuit using the wireless connection feature for the FSM named
A-OPS FSM-0 derived from Figure 10.6 and to be implemented by using the A-OPS in Figure
10.5.
Asynchronous One-Hot Programmable Sequencer Systems 153
S
ST
y 00 01 11 10 P Q
0 1 0 0 0 0 0
ST = 1f 01 = 1f11 = 1f21
ST = 1f13 = 1f33 = 1f40
1 1 3 2 4 0 1
ST = 1f14 = 1f24
ST = 1f12 = 1f32
2 1 2 2 4 0 0
S+T = 1f 00
S+T = 1f 44
3 4 3 2 4 0 ST
T = 1f22 1P = y 4ST .1EN
T = 1f34 1Q = (y 3ST + y 4 S + y 1) .1EN
4 4 0 4 4 ST S
Figure 10.8: Design of a five-state FSM, named A-OPS FSM-1, to be implemented by using the
six-state A-OPS in Figures 10.4 and 10.5. (a) Fully documented state table. (b) NS instructions, and
output logic with enable 1EN.
S(H)
T(H) 1f01(H)
EN(L)
S(H)
T(L) 1f13(H)
EN(L)
S(L)
T(H) 1f14(H)
EN(L)
Figure 10.9: Simulator macro logic circuit using the wireless connection feature for the FSM A-OPS
FSM-1 derived from Figure 10.8 and to be implemented by using the six-state A-OPS in Figure 10.5.
154 asynchronous sequential machine design and analysis
0 XY = 2f43
XY = 2f50
X
X XY = 2f25 = 2f41
XY = 2f24
1 PE
X+Y = 2f55
X X = 2f01 = 2f11 = 2f35
X
X = 2f00 = 2f12 = 2f22 = 2f33
PE if XY XY
XY 2 QE Y = 2f44
XY XY
(b) NS Instructions
4 5 PE if XY
XY
X
2P = (y 2 XY + y5XY + y1 + y3) . 2EN
Y X+Y
3
PE 2Q = (y3 XY + y2) .2EN
QE if XY
Figure 10.10: Design of a six-state FSM named A-OPS FSM-2 to be implemented by using the
six-state A-OPS in Figures 10.4 and 10.5. (a) Fully documented state diagram. (b) NS instructions.
(c) Output logic with enable 2EN.
EXL-Sim macro logic circuit for the NS instructions and output logic is given in Figure 10.11. As
with the other logic circuits, a wireless connection feature is used for simplicity.
Note that not all of the branching conditions given in the state diagrams or state table of the
three FSMs previously described are represented in their respective macro logic circuits. Only one
of the branching conditions for a given set of inputs need be represented in the FSM’s macro logic
circuit. For example, there are four branching paths associated with input conditions AB in the state
diagram of Figure 10.6. We have chosen only the first branching condition 0f21 to represent the
other three, thereby minimizing the logic necessary for that particular macro logic circuit.
Finally, following the generalized A-OPS logic circuit in Figure 10.1, we present in Figure
10.12 the simulator logic circuit for operating the three FSMs on a time-shared basis via the six-
state A-OPS. Here, FSM-0, FSM-1, and FSM-2 are all represented as macros together with the
macros for the six-state A-OPS and the 2-4 decoder. The interfacing logic is presented by using 27
three-input OR gates but only for the minimum set of branching conditions taken from the logic
Asynchronous One-Hot Programmable Sequencer Systems 155
y2(H)
X(L)
X(H)
Y(H) 2f43(H) Y(H)
2EN(L) 2EN(H)
X(H) y5(H)
Y(L) 2f50(H) X(H)
2EN(L)
Y(H)
X(L) 2EN(H)
Y(H) 2f25(H) 2P(H)
2EN(L)
2EN(H) 2EN(L) y1(H)
2f43(H) X(L)
2f50(H) Y(L) 2f24(H) 2EN(H)
2EN(L)
X(H) X(L)
2f25(H) X(H) y3(H)
Y(H) Y(L) 2f24(H) Y(L) 2f55(H) 2EN(H)
2f55(H) 2EN(L)
y0(H) X(L)
2f01(H) y3(H)
2f01(H)
y1(H) 2EN(L) X(L)
2f00(H)
y2(H) X(H) Y(H)
2f44(H)
2f00(H) 2EN(H)
y3(H) 2EN(L) 2Q(H)
y4(H) 2P(H) Y(L) y2(H)
2f44(H)
y5(H) 2Q(H) 2EN(L) 2EN(H)
Figure 10.11: Simulator macro logic circuit using the wireless connection feature for the FSM
A-OPS FSM-2 derived from Figure 10.10 and to be implemented by using the six-state A-OPS in
Figure 10.5.
circuits for these FSMs. Obviously, not all of the 36 possible branching paths in the six-state A-OPS
of Figure 10.4 are needed for operation of the three FSMs. In fact, there are nine branching paths
left unused so that each must be given a forced 0(H ) input to the six-state A-OPS macro as shown—
no input must ever be left dangling. The 2-4 decoder has inputs I0(H ) and I1(H ) used to select
one of the three enables 0EN(L), 1EN(L), or 2EN(L) for operating any one of the three respective
FSMs on a time-shared basis. A CL(L) signal from a SANITY circuit initializes to 0(H ) the six
y-variable outputs from the six-state A-OPS, and initializes to 0(L) the three outputs from the 2-4
decoder.
The mixed-logic simulation of the macro logic circuit in Figure 10.12 is shown in Figure
10.13. In this simulation, three radically different FSMs are operated on a time-shared basis by use
of the six-state A-OPS given in Figures 10.4 and 10.5. To do this, a 2-4 decoder serves to enable
one of the three FSMs to be operated independently of the other two. Note that all external inputs,
A, B, S, T, X, Y, are continuously active throughout the simulation, but only those inputs to an en-
abled FSM produce the required y variables and external outputs. Each active FSM operates free of
endless cycles, critical races, output race glitches, and static hazards. Recall that the internally initi-
ated static hazards formed in the NS functions are automatically covered by the required holding
156 asynchronous sequential machine design and analysis
FSM-0
0P 0P(H)
0Q 0Q(H)
0R 0R(H)
A(H) A
0S 0S(H)
B(H) B
0f10 0f 10(H) 2-4
y 0(H) y0
y 1(H) y1
0f03 0f 03(H) Decoder
0f02 0f 02(H)
y 2(H) y2 y0 0EN(L)
0f21 0f 21(H)
y 3(H) y3 I0(H) I0 y1 1EN(L)
0f00 0f 00(H) 6-State AOPS
y 4(H) y4 I1(H) I1 y2 2EN(L)
0f22 0f 22(H)
y 5(H) y5
y3
0f33 0f 33(H)
f00(H) f00
0f11 0f 11(H)
f01(H) f01
0f44 0f 45)H)
f02(H) f02
f03(H) f03
0(H) f04
CL(L)
0(H) f05
0EN(L)
(d) f10(H) f10
f11(H) f11
FSM-1 f12(H) f12
f13(H) f13
1P 1P(H) f14(H) f14
1Q 1Q(H)
S(H) S 0(H) f15
T(H) T
1f01 1f 01(H) 0f00(H) f20
1f00(H) f00(H) 0(H)
1f13 1f 13(H) 2f00(H)
y 0(H) y0 f21(H) f21
1f14 1f 14(H) 0(H) 0(H)
y 1(H) y1 1f01(H) f01(H) 1f12(H) f32(H) f22(H) f22
1f12 1f 12(H)
y 2(H) y2 2f01(H) 0(H) f23(H) f23 y0 y 0(H)
1f00 1f 00(H) 0f02(H) 0f33(H) y 1(H)
y 3(H) y3
0(H) f02(H) 1f13(H) f33(H) f24(H) f24 y1
y4
1f44 1f 44(H) y2 y 2(H)
y 4(H) 0(H) 2f00(H) f25(H) f25
1f22 1f 22(H) 0f03(H) 0f21(H) 0(H) f30 y3 y 3(H)
0(H) f03(H) 1f34(H) f34(H)
1f34 1f 34(H) 0(H) 0(H) y4 y 4(H)
0(H) f31
0f10(H) 0(H)
0(H) f10(H) 0(H) f35(H)
f32(H) f32 y5 y 5(H)
0(H) 2f01(H) f33(H) f33
0f11(H) 0(H)
1EN(L) 1f13(H) f34(H) f34
f11(H) f40(H)
2f01(H) 0(H) f35(H) f35
0(H) 0(H)
1f12(H) f12(H) 0(H) f41(H) f40(H) f40
FSM-2 2f00(H) 2f25(H) f41(H) f41
0f02(H) 0f03(H)
2P 1f13(H) f13(H) 0(H) f42(H) f42(H) f42
2P(H)
0(H) 0(H) f43(H) f43
X(H) X 2Q 2Q(H) 0(H) 0(H)
f44(H) f44
Y(H) Y 2f43 2f 43(H) 1f14(H) f14(H) 0(H) f43(H)
0(H) 2f43(H) f45(H) f45
y 0(H) y0 2f50 2f 50(H) 0f21(H) 0f21(H) f50(H) f50
y 1(H) y1 2f25 2f 25(H) 1f01(H) f21(H) 1f44(H) f44(H)
0(H) 2f44(H) f51(H) f51
y 2(H) y2 2f24 2f 24(H) 0f22(H) 0f45(H) 0(H) f52
y 3(H) y3 2f55 2f 55(H) 1f22(H) f22(H) 0(H) f45(H)
2f00(H) 0(H) 0(H) f53
y 4(H) y4 2f01 2f 01(H) 0f10(H) 0f21(H)
0(H) 0(H) f54
y 5(H) y5 2f00 2f 00(H) 0(H)
f23(H) 0(H) f50(H)
2f50(H) f55(H) f55
2f44 2f 44(H) 0(H) 0f03(H)
1f14(H) f24(H) 0(H) f51(H)
2f24(H) 0(H)
0(H) 0f45(H)
0(H) f25(H) 0(H) f55(H)
2EN(L) 2f25(H) 2f55(H) CL(L)
Figure 10.12: Simulator macro logic circuit demonstrating the time-shared operation of three radi-
cally different FSMs by using an asynchronous one-hot sequencer and the wireless connection fea-
ture. (a) Macros for FSM-0, FSM-1 and FSM-2 defined in Figures 10.6–10.11. (b) Interface logic
as required by the architecture in Figure 10.1. (c) Macro for the six-state A-OPS in Figure 10.5.
(d) The 2-4 decoder used to enable in turn any one of the three FSMs on a time-shared basis.
Asynchronous One-Hot Programmable Sequencer Systems 157
condition for each state. Essential hazards are possible, but remain only as potential timing defects
unless unintended delays exceeding minimum values occur in specific locations within the circuit.
Essential hazards in one-hot FSMs always occur via ANDing race gates and are highly predictable
but easily eliminated as discussed in Section 5.4.
We have opted to simulate only three FSMs via the A-OPS system. Actually, any number of
the FSMs can be operated with a suitable A-OPS but the FSMs are each limited to the maximum
number of states established by the A-OPS. The FSMs can themselves be asynchronous system
controllers or discrete FSMs. Also, FSMs can be a mixture of both synchronous and asynchronous
machines (one-hot designs permit this).
Note in Figure 10.13 that we have chosen to use a CL(L) pulse at each decoder enable to
demonstrate that this as an alternative to not using the CL(L) pulse as in Figure 9.18. Either simu-
lation operates perfectly regardless of whether such a pulse is used. However, it does eliminate any
possible minute bleed-over of the state variables and outputs during the transitions between FSMs
as can be seen in Figure 9.18 although barely detectable.
Names 40.00 ns 80.00 ns 120.00 ns 160.00 ns 200.00 ns 240.00 ns 280.00 ns 320.00 ns 360.00 ns 400.00 ns 440.00 ns
A-OPS FSM-0 A-OPS FSM-1 A-OPS FSM-2
CL(L)
I0(H)
I1(H)
INPUTS
A(H)
B(H)
S(H)
T (H)
X(H)
Y(H)
ENABLES
0EN(L)
1EN(L)
2EN(L)
y-VARIABLES
y0(H)
y1(H)
y2(H)
y3(H)
y4(H)
y5(H)
OUTPUTS
0P(H)
0Q(H)
0R(H)
0S(H)
1P(H)
1Q(H)
2P(H)
2Q(H)
Figure 10.13: Simulation of Figure 10.12 showing the sequential behavior of three radically different
FSMs defined in Figures 10.6−10.11 on a time-shared basis and operated by using the six-state A-OPS
given in Figure 10.5.
158 asynchronous sequential machine design and analysis
For the sake of completeness, three sample A-OPS CAD software files are included below
showing different output representations for the six-state A-OPS kernel used in this section. The
sample CAD software output tables are as follows: Table A-OPS 1 gives the PLA/PAL p-term
program table in Berkeley format for a Huffman circuit design; Table A-OPS 2 presents the same
information in VHDL code; Table A-OPS 3 provides the S, � VHDL code for a Muller circuit
design using C-elements.
Table A-OPS 1: PLA/PAL P-term program table in Berkeley format for the
6-state A-ops kernel
.i 43
.o 6
.ilb y5 y4 y3 y2 y1 y0 f55 f45 f35 f25 f15 f05 f54 f44 f34 f24 f14 f04
f53 f43 f33 f23 f13 f03 f52 f42 f32 f22 f12 f02 f51 f41 f31 f21 f11 f01
f50 f40 f30 f20 f10 f00 sanity
.ob Y5 Y4 Y3 Y2 Y1 Y0
.p 43
-----1-----------------------------------10 000001
----1-----------------------------------1-0 000001
---1-----------------------------------1--0 000001
Asynchronous One-Hot Programmable Sequencer Systems 159
Table A-OPS 2: VHDL code for the six-state a-OPS kernel as required for Huffman
circuit designs
-- Computer generated VHDL file for a 6 states Async. One-Hot Kernel
-- Kernel with Y output design
-- A-OPS Computer Aided Design Tool
--
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity kernel is
port(
f5, f4, f3, f2, f1, f0 : in std_logic_vector(5 downto 0);
sanity: in std_logic;
Y_O : out std_logic_vector(5 downto 0)
);
end entity;
Table A-OPS 3: VHDL code for the six-state A-OPS kernel as required
for quasi-Muller circuit designs using C-elements
-- Computer generated VHDL file for a 6 states Async. One-Hot Kernel
-- Kernel with SR output for C-element design
-- A-OPS Computer Aided Design Tool
--
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity kernel is
port(
f5, f4, f3, f2, f1, f0 : in std_logic_vector(5 downto 0);
sanity: in std_logic;
y : in std_logic_vector(5 downto 0);
S_O : out std_logic_vector(5 downto 0);
nR_O : out std_logic_vector(5 downto 0)
);
end entity;
• • • •
165
chapter 1 1
Arbiter Modules
The main function of an arbiter is to protect a system from competing inputs. Thus, when two
or more inputs are competing for access to a given system, it is the function of an arbiter to ar-
bitrate and grant first access to only one of the competing inputs. This is especially important
in Huffman circuits that operate in the fundamental mode. It is for this reason that we opt to
design quasi-Muller circuits by using C-elements in the design of most asynchronous sequential
circuits including arbiters. C-elements operate outside the fundamental mode, thereby minimizing
the probability of metastability developing in a given circuit as discussed in Sections 3.7. Use of a
metastable detection stage (MDS) in an arbiter is a necessary function to ensure that the signals issued
from a metastable condition resolve into either a clean set or reset. This is discussed in Section 8.4.
In general, arbiter modules are two-input asynchronous machines but can be combined to accom-
modate multiple inputs of three or more. We will select a few representative but different arbiters to
illustrate the arbitration operation.
and to issue a clean set or clean reset to only one output grant signal at a time. The design converts
overlapping requests, R1, R2, to a nonoverlapping grant signal G1 or G2 on the basis of the arbitra-
tion and mutually exclusivity function of the arbiter. The results are clean mutually exclusive and
minimally separated grant output pulses suitable for use in pulse mode design applications.
The simulation of the bus arbiter shown in Figure 11.1 is given in Figure 11.2. Here, the
primary function of the bus arbiter module is clearly indicated by the output responses to a given
random set of input pulses some of which are overlapping. For the propagation delays set for the
various components of the circuit, the grant pulses (G1, G2) are minimally separated by the delay
through an inverter. Also, any individual, discrete R pulse (see simulation >300 ns) strong enough
to cross the switching threshold, will generate a grant pulse that is never less than the path delay of
an inverter. Notice that the function R0(L) goes active anytime both grant pulses are simultaneously
inactive. Thus, R0(L) pulses are indicative of the number of grant pulses that have been issued, a
useful design parameter for some applications. Finally, observe that when CL(L) is active no grant
pulse will be issued even as the request input signals continue.
R1+R 0 R2+R 0
R = Request
0 0
G = Grant
R1R0 R2R0
R1R0 R0 = G 1G2 R2R0
G1 = y 1y2
y1� if R1R0 y2� if R2R0
1 G2 = y 1y2
1
R1+R 0 R2+R 0
(a)
(b) (c)
Figure 11.1: Design of the bus arbiter module. (a) State diagrams and output logic for the two C-
elements. (b) Logic circuit using the wireless connection feature for C-elements with active low outputs
and the MD/ME stage discussed in Section 8.4. (c) Circuit symbol.
Arbiter Modules 167
Names 40.00 ns 80.00 ns 120.00 ns 160.00 ns 200.00 ns 240.00 ns 280.00 ns 320.00 ns 360.00 ns 400.00 ns 440.00 ns
CL(L)
R1(H)
R2(H)
G1(H)
G2(H)
R0(L)
Figure 11.2: EXL-Sim simulation of the bus arbiter logic circuit in Figure 11.1b showing the basic
operation of the bus arbiter together with the effect of a CLEAR (CL).
n!
Nn = = No. of arbiters (11.1)
q!(n − q)!
RX RY RX RY RX RY
1,2 CL 1,3 CL 2,3 CL R1(H) R2(H) R3(H)
GX GY GX GY GX GY
3-Input
CL(L) Bus Arbiter
CL(L)
C1 C2 C3
G1(H) G2(H) G3(H)
(a) (b)
Figure 11.3: (a) Three-input bus arbiter with CLEAR by using C-element RMODs. (b) Circuit
symbol.
A variety of multiple input bus arbiters are possible by following Eq. (11.1). Listed in Table
11.1 are six possibilities ranging from three to eight inputs showing the number of arbiters, RMODs,
and RMOD inputs required for each. For example a four-input arbiter, numbered 3, 2, 1, 0, would
require six arbiters to be connected in the following pairs—32, 31, 30, 21, 20, and 10—requiring
four RMODs each with three inputs. To accommodate the application of three or more RMODs
requires use of C-element trees as indicated in Figure 11.5a, 11.5b, and 11.5c. At some point, say
more than four inputs, it might be advantageous to use the generalized hybrid form in Figure 11.5d
or the complementary metal-oxide semiconductor alternative to (d) in Figure 11.5e.
A short exercise: Discuss whether the generalized C-element in Figure 11.5e can be used to
implement any one of the p-terms in Eqs. (9.7). Support your answer by an example using mixed-
logic notation in Figure 11.5e.
Names 40.00 ns 80.00 ns 120.00 ns 160.00 ns 200.00 ns 240.00 ns 280.00 ns 320.00 ns 360.00 ns 400.00 ns
CL(L)
R1(L)
R2(L)
R3(L)
G1(L)
G2(L)
G3(L)
Figure 11.4: Simulation of the logic circuit for the three-input bus arbiter in Figure 11.3 showing the
first-in/first-out priority grant-select behavior of the arbiter and the effect of CLEAR.
Arbiter Modules 169
TABLE 11.1: Requirements for multiple input arbiters with q = 2 by using Eq. (11.1).
3 3 3 2
4 6 4 3
5 10 5 4
6 15 6 5
7 21 7 6
8 28 8 7
A1
A1
A2 +VDD
A2 GX GX
A3
A3
A0
CL CL
A4
(a) (b)
A1
A1
A2 An–1
A3 GX
GX
A4
CL
A5
(c)
An–1(H)
A1(H)
A0(H)
GX(H)
CL(L) CL
(d) (e)
Figure 11.5: RMODs for use with multiple-input arbiters. (a) Asymmetric three-input C-element
tree. (b) Symmetric four-input C-element tree. (c) Asymmetric five-input C-element tree. (d) General-
ized hybrid NOR/INV RMOD . (e) Generalized CMOS alternative to the hybrid form in (d).
170 asynchronous sequential machine design and analysis
r1r2r3
r = Request
g = Grant
000
y1y0
y2 00 01 11 10
r1
r1 0 r1r2r3 0 φ 0
r1r2 1 r3 φ φ φ
001 g1� if y0
r1r2r3 Y2
r2
y1y0
y2 00 01 11 10
r1 r1r2 φ r2
0 0
r3 010 g2� if y1 1 0 φ φ φ
Y1
y1y0
r2 y2 00 01 11 10
0 r1 r1 φ 0
100
g3� if y2 1 0 φ φ φ
Y0
r3
(a) (b)
(c)
Figure 11.6: Design of the three-input stand-alone priority arbiter . (a) Fully documented state dia-
gram for minimum input and output logic. (b) NS K-maps. (c) C-element Logic circuits using the wire-
less connection feature for simplicity and following Eqs. (11.2) for the Y→ S,R conversion algorithm
given by Eqs. (5.2).
Arbiter Modules 171
and is initialized into the 000 state by using the CL(L) input to the C-elements—no need for the
one-hot-plus-zero method.
__ __
Y2 = 1 0 r3 r2r 1 + y2 r3 → S2 = 1 0 r3 r 2 r1 2 = r3
_ _
Y 1 = 2 0 r 2 r1 + y1 r 2 → S1 = 2 0 r2 r1 1 = r2
Y0 = 2 1 r1 + 0 r1 → S0 = 2 1 r1 0 = r1 (11.2)
g1 = y0 g2 = y1 g3 = y2
The simulation of the stand-alone priority arbiter in Figure 11.6 is shown in Figure 11.7 with and
without overlapping input request waveforms. It is easy to see that the operation of this arbiter fol-
lows the requirements established by the state diagram in Figure 11.6a. Hence, note that the output
grant signals, gi = yi, never overlap, making this arbiter suitable for use with pulse mode circuit
designs.
Names 40.00 ns 80.00 ns 120.00 ns 160.00 ns 200.00 ns 240.00 ns 280.00 ns 320.00 ns 360.00 ns 400.00 ns
CL(L)
R1(H)
R2(H)
R3(H)
y0(H)
y1(H)
y2(H)
Figure 11.7: Simulation of the three-input stant-alone priority arbiter circuit in Figure 11.6c show-
ing its basic operation as designed with C-elements.
172 asynchronous sequential machine design and analysis
metastable as discussed in Section 3.7. Also, refer to Section 8.4 for a discussion of the MDS. There,
we show how MDS detects metastability and protects its outputs from passing on that metastability
to the inputs of any FSM or combinational logic stage to which the arbiter’s output are connected.
For this system, the mean time between failures (MTBF) can be raised to extremely high values,
but not to infinity.
The state diagrams in Figure 11.8a are those representing the normal C-element shown in
Figure 1.12. However, the C-elements in the logic circuit of Figure 11.8c are complementary but
used as normal C-elements with activation levels for QX (L) and QY (L) matching those of the C-
elements. For a better understanding of what was done here and for the various alternative C-ele-
ment configurations available for use, refer to Figure 2.2.
The simulation of the handshake arbiter module is presented in Figure 11.9. Here, the de-
pendence of the Grant outputs are seen to depend on the random set of Done signals received from
the protected system following a random set of Request signals from the source system. Generally, a
given Request will be granted on a first-in/first-out basis, but only if its corresponding Done signal
RX+Q X RY+Q Y
RY(H) RX(H)
0 R = Request 0 DY(H) DX(H)
G = Grant
RXQX GX = R XQX = RXXY RYQY
RXQX RYQY Handshake
GY = R YQY = RYXY CL(L) Arbiter
1 GX� if RXQX X = R XDX 1 GY� if RYQY
Y = RYDY
GY(H) GX(H)
� �
DY(H)
y2(L)
� QY(L)
RY(H) XY(L) GY(H)
Y(H)
(c)
Figure 11.8: Design of the handshake arbiter module. (a) State diagrams and output logic for the two
C-elements. (b) Circuit symbol. (c) Logic circuit with request and done (acknowledgement) inputs and
grant outputs and highlighting the MD/ME stage that accommodates a master CLEAR.
Arbiter Modules 173
Names 40.00 ns 80.00 ns 120.00 ns 160.00 ns 200.00 ns 240.00 ns 280.00 ns 320.00 ns 360.00 ns 400.00 ns
CL(L)
RX(H)
RY(H)
DX(H)
DY(H)
GX(H)
GY(H)
Figure 11.9: Simulation of the handshake arbiter circuit in Figure 11.8 showing the dependence of
the Grant outputs on random Done (acknowledgment) inputs received from the protected system fol-
lowing a given Request from the source system.
is low 0(H ) or goes low after the Request has been issued from the source. However, once a request
has been granted, the corresponding Done signal can go active 1(H ) without affecting the Grant
signal that was previously granted. If the two Request signals go active at the same time each with
low Done signals, then arbitration must select one and grant the request. If a Done signal is then
issued for the selected Request, the other Request will be granted as shown in Figure 11.9.
D+CK D+CK
y y
0 DCK 0 DCK
0
0
1 φ (D + CK) 1 φ (D + CK)
DCK S = DCK S = DCK DCK
DCK DCK
y y
1 Q� 0 φ (D + CK) 0 φ (D + CK) Q�
1
1 DCK 1 DCK
(a) (b)
D(H) D(H)
D Q D Q
CK Q CK Q
CL
Figure 11.10: C-element design of the Trans-HI and Trans-LO modules. (a and b) State diagram,
SR K-maps and SR logic for the Trans-HI and Trans-LO modules. (c and d) Logic circuit and circuit
symbol for the Trans-HI and Trans-LO modules.
CK(H)
CK(L)
Q(H)
Figure 11.11: Simulation of the Trans-HI and Trans-LO modules in Figure 11.10 showing 0 → 1
transitions and transparency of Q(H ) when CK(H ) or CK(L) are active.
Arbiter Modules 175
if the D input to these modules is presented to the Trans-HI or Trans-LO module at the time CK
is active, it will be directly transferred to the output. Otherwise, the D input must be clocked to the
output on a 0 → 1 transition of CK(H ) or CK(L).
The block diagram logic circuit for the rotating token arbiter module is given in Figure 11.12(a)
with its circuit symbol provided in Figure 11.12(b). The operation of the rotating token arbiter fol-
lows that of the handshake described in Section 11.3 but with the inclusion of the Trans-HI and
Trans-LO modules and XOR gate. Basically, an active Grant signal GX(H ) is issued following a
request RX(H ) provided that Dx(H ) is inactive (0(H )), and that Tin and Tout are of opposite activa-
tion levels. This, in turn, causes the CK(H ) to the Trans-HI module to go active , if only briefly,
thereby issuing a GX(H ) output. The reader should follow the simulation of Figure 11.12 presented
in Figure 11.13.
In Figure 11.14, the rotating token arbiter module is used in a series configuration of the
first four stages in an n-stage (hence, n-input) rotating token arbiter, where the Done signal inputs
originate from any desirable part of the protected system or systems. The rotating token is initi-
ated by a START ⊕ Tn +1 signal from the XOR gate. A three-stage simulation of the rotating token
arbiter is given in Figure 11.15, where the Done signals have been purposely delayed by different
amounts to produce a more realistic simulation. Note that the rotating token Ti signals are paused
intermittently due to the manner in which the Done signals are received by the arbiter. As a result,
some of the Request signals fail to produce a Grant output. In fact, any Grant output Gi(H ) can be
selectively made inactive by holding a Done signal Di(H ) = 1(H ) = 0(L) for some arbitrary time but
Trans-HI Mod
D
Q GX(H)
Q
CK
RX(H) RX
DX(H) GX
DX
Handshake RX GX
Ti n(H) RY CL(L)
Arbiter
DY
GY Tout(H) DX
CL Trans-LO Mod Tin Tout
D CL
CL(L) Q
Q
CK CL(L)
CK(H)
CL(L)
(a) (b)
Figure 11.12: Design of the rotating token arbiter module by using the handshake arbiter and Trans-
HI and Trans-LO modules. (a) Logic circuit. (b) Circuit symbol.
176 asynchronous sequential machine design and analysis
CL(L)
RX(H)
DX(H)
GX(H)
TIN(H)
TOUT(H)
GX'(H)
CK(H)
Figure 11.13: Simulation of the rotating token arbiter module in Figure 11.12 showing the Request,
Done and Grant relationships with the Done (acknowledgement) signal.
only prior to the rising edge of the Ri(H ) Request input. For comparison purposes, another simu-
lation of this three-stage arbiter in provided in Figure 11.16 where, in this case, the Grant signal
for each stage is fed back into the Done input of that stage without delay and with no significant
pauses in the rotating token signals. Thus, Di(H ) = Gi(H ), where every Request signal produces a
Grant signal of similar duration but delayed to an extent depending on the relative position of the
rotating token.
11.6 APPLICATIONS
Having read the contents of this chapter, the reader should be left with the impression that a multi-
tude of arbiter applications are available to the logic designer, actually too many to discuss in detail
CL(L)
T1(H) Tn+1(H)
START(H)
Figure 11.14: The first four stages of an n-stage rotating token arbiter initiated with a START ⊕
Tn+1 signal from the XOR gate and with the DONE signals taken from any desirable part of the pro-
tected system.
Arbiter Modules 177
Names 40.00 ns 80.00 ns 120.00 ns 160.00 ns 200.00 ns 240.00 ns 280.00 ns 320.00 ns 360.00 ns 400.00 ns
CL(L)
START(H)
R1(H)
R2(H)
R3(H)
G1(H)
G2(H)
G3(H)
T1(H)
T2(H)
T3(H)
T4(H)
D1(H)
D2(H)
D3(H)
Figure 11.15: Simulation of the three stages of the rotating token arbiter in Figure 11.14 showing
the dependence of the Grant signals on the Requests, Done acknowledgements and the rotating token
signals.
given the limited space provided in the text. In this section, we will touch on some applications
of the rotating token arbiter and then present in some detail an important application of the bus
arbiters.
One interesting application of the rotating token arbiter concept is to activate and coordinate
the outputs from different FSMs. In this way, outputs of one FSM could be issued conditional on
Names 40.00 ns 80.00 ns 120.00 ns 160.00 ns 200.00 ns 240.00 ns 280.00 ns 320.00 ns 360.00 ns 400.00 ns
CL(L)
START(H)
R1(H)
R2(H)
R3(H)
G1(H),D 1(H)
G2(H),D2(H)
G3(H),D3(H)
T1(H)
T2(H)
T3(H)
T4(H)
Figure 11.16: For comparison with Figure 11.15, a simulation of Figure 11.14 is made with the same
Request and Done signals but now with the Grant signals of each stage connected to the Done input of
that stage.
178 asynchronous sequential machine design and analysis
the Done signals from another FSM. Clearly, each Request input to a given FSM must correspond
to the Grant signal from that FSM, but regulated by a Done signal from the same or from some
other FSM. Multiple Grant outputs from each FSM could be issued dependently or independently
of the Done signals issued by the rotating token arbiters of other FSMs. A type of pipelining opera-
tion can be obtained if the Grant outputs are fed into the Request inputs of the succeeding stages
with or without outputs to the external world. An array of rotating token arbiters with the appropri-
ate Request, Grant, and Done signal interconnects could conceivably be used in complex pipelining
operations. The master CLEAR signal for each rotating token arbiter can be used to pause the en-
tire arbiter operation at any time. Alternatively, any individual Done signal can be used to selectively
deactivate its respective Grant output for some predetermined period. Furthermore, the START
signal for each arbiter in the array can be used to arrest the rotating token for that arbiter leaving
only the Request and Done signals active. Overall, the possibilities here are nearly unlimited. Again,
keep in mind that each rotating token arbiter module is designed with a built-in metastable detec-
tion system. If a metastable condition should occur within one of the arbiter stages, its operation
would pause until the metastable condition is resolved to a clean set or reset.
The pulse mode approach offers a simple and reliable means of designing asynchronous FSMs
free of the many timing defects uniquely owned by clock-independent systems. The characteristics
RX(H) RY(H)
Bus
CL(L)
Arbiter
X(H) Y(H)
y2(H)
X(H)
OPNVLT(L) y1(H) y2(H)
X(H) Y(H)
y2(H)
T2(H) T1(H) T0(H)
Y(H)
y0(H)
y1(H) X(H)
y0(H)
Y(H)
Figure 11.17: (a) The pulse-mode 2-bit digital combinational lock in Figures 6.6 and 6.7 now config-
ured with the bus arbiter of Figure 11.1 used to convert overlapping input waveforms to nonoverlapping
discrete pulse signals as required by all pulse mode operations.
Arbiter Modules 179
40.00 ns 80.00 ns 120.00 ns 160.00 ns 200.00 ns 240.00 ns 280.00 ns 320.00 ns
Names
CL(L)
RX(H)
RY(H)
X(H)
Y(H)
T2(H)
T1(H)
T0(H)
y2(H)
y1(H)
y0(H)
OPNVLT(L)
Figure 11.18: Simulation of the pulse-mode 2-bit combinational lock in Figures 6.6 and 6.7 by using
the bus arbiter in Figure 11.1 to deal with overlapping input waveforms.
of the pulse mode approach are detailed in Section 6.1.1. From this, it is clear that the one impor-
tant drawback to designing in the pulse mode is the severe limitation of having discrete nonoverlap-
ping data input signals. Use of the bus arbiter is ideally suited to overcoming this limitation. Shown
in Figure 11.17 is the logic circuit for the design of the pulse-mode 2-bit digital combinational lock
of Figures 6.6 and 6.7, but now with its two inputs taken from the bus arbiter featured in Figure
11.1 and simulated in Figure 11.2.
Simulation of the pulse mode digital combinational lock in Figure 11.17 is shown in Figure
11.18. Note the transitions from overlapping pulses to discrete nonoverlapping pulses. Although
some of the edges of these transitions appear to be very close, they are actually separated by an in-
verter path delay. Further separation is easily produced by logic with larger path delays or by insert-
ing delays within the bus arbiter. A simple means of introducing delays is to place pairs of inverters
in the appropriate places. The obvious place for such delays in the bus arbiter is on the Grant output
lines.
• • • •
181
appendix a
Brief Reviews
AND OR
Function Function
XOR gate performing the XOR operation XOR gate performing the EQV operation
XOR
or or
Gate
(c)
EQV gate performing the XOR operation EQV gate performing the EQV operation
EQV
or or
Gate
(d)
Figure a.1: Summary of conjugate mixed logic gate symbols. (a) Logic level conversion and buf-
fer symbols. (b) AND and OR gate symbology. (c) and (d) XOR and EQV gate symbology and logic
operations.
182 asynchronous sequential machine design and analysis
(X ⋅ Y ) ⋅ Z = X ⋅ (Y ⋅ Z ) = X ⋅ Y ⋅ Z
(X + Y ) + Z = X + (Y + Z ) = X + Y + Z
(A.1)
(X Y ) Z = X (Y Z ) = X Y Z
(X ⊕ Y ) ⊕ Z = X ⊕ (Y ⊕ Z ) = X ⊕ Y ⊕ Z
Commutative laws
X ⋅ Y ⋅ Z = X ⋅ Z ⋅ Y = Z ⋅ X ⋅ Y = ···
X + Y + Z = X + Z + Y = Z + X + Y = ···
(A.2)
X Y Z = X Z Y = Z X Y = ⋅⋅⋅
X ⊕ Y ⊕ Z = X ⊕Z ⊕ Y = Z ⊕X ⊕ Y = ⋅⋅⋅
Distributive laws
⎧ ⎫ ⎧ ⎫
⎪
⎪ Factoringlaw ⎪
⎪ ⎪ Factoring law
⎪ ⎪
⎪
⎪
⎪ ⎪
⎪ ⎪
⎪ ⎪
⎪
⎪
⎨ (X ⋅ Y ) + (X ⋅ Z ) = X ⋅ (Y + Z ) ⎪
⎬ ⎪
⎨ (X ⋅ Y ) ⊕ (X ⋅ Z ) = X ⋅ (Y ⊕ Z ) ⎪
⎬
(A.3)
⎪
⎪ ‘‘Distributivelaw’’ ⎪
⎪ ⎪
⎪ ‘‘Distributivelaw’’ ⎪
⎪
⎪
⎪ ⎪
⎪ ⎪
⎪ ⎪
⎪
⎪
⎩ ⎪ ⎪ ⎪
(X + Y ) ⋅ (X + Z ) = X + (Y ⋅ Z) ⎭ ⎩ (X + Y ) (X + Z ) = X + (Y Z )⎭
Absorptive laws
X ⋅ ( + Y ) = X ⋅ Y X ⋅ ( ⊕ Y ) = X ⋅ Y
X + ( ⋅ Y ) = X + Y X + ( Y ) = X + Y (A.4)
Consensus laws
XY + Z + ( YZ) = ( XY + Z)
(X + Y )( + Z)( Y + Z) = ( X + Y )( + Z)
(A.5)
XY ⊕ Z + (YZ) = (XY ⊕ Z )
(X + Y ) ( + Z)(Y + Z) = (X + Y ) ( + Z)
brief reviews 183
Useful Identities
X+1=1 X⊕0=X
_
X+X=X X ⊕1 = X
_
X⋅�=1 X ⊕0 = �
_
X ⊕ Y ≡ X� + �Y X ⊕Y ≡ � ⋅ � + X ⋅ Y
For functions α and β: If α ⋅ β = 0 then α ⊕ β = α + β.
For functions α and β: If α + β = 1 then α⊕ β = α ⋅ β.
Figure A.2: (a) Conventional third-order K-map for function Y. (b) First-order compression in a
second-order EV K-map with entered variable A showing minimum cover for Y. (c) Second-order com-
pression in a first-order EV K-map with A and C as EVs and showing use of the adjacent XOR pattern
in (b) to give the alternative minimum cover in (c) together with diagonal XOR pattern in the first order
conventional submaps for A and C in the B domains.
with φ, hence φα, means that function α is nonessential and can be used in K-map minimization as
either 0 × a = 0 or 1 × a = a as needed. See Glossary.
Rules to remember
Use incompletely specified functions in K-map minimization so as to achieve optimum logic cover
by following three rules.
1. Treat the don’t care (φ) as an EV, which it is because it can be taken as a logic 0, a logic 1,
or an input. Remember: Use it if you can; otherwise, ignore it.
2. In simplifying incompletely specified functions, simplify by applying the absorptive laws:
X + φ = X + φ and X ⋅ (φ + ) = φ X
(A.7)
where now X + φ can be taken as X or 1 depending on its best usage. The term φX can be
taken as either an X or a 0. Note: Functions of the type X + φ have an essential sum-of-
products component, X or 1. What about functions of the type φ X ?
3. Terms such as φ (X + Y ) often occur. This means that (X + Y ) is nonessential. To use such
terms effectively, simplify using the factoring law as
φ (X + Y ) = φ X + φ Y (A.8)
then choose how best to use, or not to use, this result in a K-map minimization operation.
brief reviews 185
D D D
0 0 1 0
0 6 4 ABD
1 1 1 0 BD
1 7 5
BC
A 00 01 11 10 Noti ce in the sub-maps A
i s tr ea te d li ke an E V,
0 D +D D then next used as a logic 0 BD + BD
0 1 3 2 1, l og ic 0 or as a n EV i n
th e K -m a p to extra ct
1 +D 1 0 0 op tim um subfuncti ons in 1 B
D 4 5 7 6 domains A = 0 and A = 1.
0 F Se e Fig . 2 .1 as an other F
8 AB
typical example.
1 1
9 (a) (b) F = ABD + BD + AB
Figure A.3: Minimization of the function F in Eq. (A.9). (a) First-order compression in A, B and
C with entered variable D, and showing four first-order sub-maps with minterm code numbers corre-
sponding to those in Eq. (A.9). (b) Third-order compression in A with EVs B and D showing minimum
cover indicated by the shaded loops (independent of input C ).
Example
Given the following incompletely specified function represented in Minterm code (see
Glossary):
To obtain an optimum cover for function F, first compress it into a third-order K-map in A, B, and
C with EV D, then into a first-order K-map in A with EVs B and D as in Figure A.3. For a first-
order compression, count by 2’s in the minterm code of Eq. (A.9) beginning with (0,1) and enter
the results into first-order submaps. Then enter each submap result into the third-order K-map as
in Figure A.3a.
187
appendix b
End-of-Chapter Problems
Chapter 1
1.1 Invert the state code assignments in the three-state finite state machine (FSM) given in
Figure 1.6a and do the following:
(a) Construct the state table for this FSM with the altered state code assignments.
(b) Construct the second-order entered variable (EV) K-maps for next state (NS) vari-
ables Y1 and Y0, and for output Z.
(c) Loop out a minimum cover from these K-maps. Partial answer : Y0 = A� + y1� +
y0A.
(d) Construct the logic circuit from the results of (c) exclusive of fictitious memory
elements.
Chapter 2
2.1 (a) Repeat Problem 1.1(b) with the altered state code assignments and use the K-map
conversion algorithm for S1, R1 and S0, R0 as given in Section 2.1.
(b) Loop out a minimum cover from these K-maps. Partial answer : S1 = A, R0 = �B.
(c) Construct the logic circuit assuming the use of normal C-elements with CL(L) and
simulate the result by initializing into state 00.
(d) Construct the logic circuit assuming the use of Set dominant basic cells as the mem-
ory and simulate the result by initializing into state 11.
(e) Do the simulation results of (c) and (d) compare? Explain.
(f ) Compare the results of part (b) with those of Eqs. (2.1). What do you conclude?
2.2 Redesign both basic cells in Figures 1.8 and 1.9 by using C-elements. Simulate and com-
pare the results with those in Figure 1.10. Partial answer : RC-element = �R for set-domi-
nated basic cell.
Chapter 3
3.1 The state diagram in Figure 11.10a is that for a Trans-HI module otherwise known as an
RET transparent D-latch.
188 asynchronous sequential machine design and analysis
(a) Design this FSM by using the lumped path delay (LPD) model and sum-of-products
(SOP) logic. Show that it contains an externally initiated static-1 hazard, indicate
how it is formed and give its required hazard cover.
(b) Simulate this LPD circuit with and without the hazard cover.
3.2 Shown in Figure B.1 is the state diagram of an FSM to be analyzed for static hazards.
(a) Design this FSM by using the LPD model by obtaining the NS SOP expres-
sions for Y1 and Y0. Show that this FSM contains an internally initiated static
hazard. Show how this hazard is formed and find its hazard cover. Partial answer :
Y1 = �0 �B + y1 B + y1 �0.
(b) Simulate this FSM with and without the hazard cover.
(c) By using the Y → SR K-map conversion algorithm described in Section 2.1, obtain
the Set–Reset (SR) logic required for implementation of a nested C-element or nested
cell design. Determine whether this SR design contains a static hazard.
3.3 The FSM in Figure 3.10 contains an output race glitch (ORG) but no static hazard.
(a) Explain how this ORG can form.
(b) Correct the state diagram so as to make the formation of an ORG impossible. (Hint:
The transition from 11 to 00 must pass through two states.)
(c) Redesign this FSM for the LPD model and use the Y → SR conversion algorithm to
obtain the SR logic suitable for a C-element design. Compare these results with those
of Eqs. (3.3).
(d) Check for static hazards in the new results of (c) and if they exist, eliminate them.
(e) Simulate the results of part (c) to prove that it follows the corrected state diagram of
(b).
a
AB 00 AB
A+B
b d
A AB
10 01
A
c B
11
AB
Figure B.2: State diagram of an FSM that possesses a critical race that must be eliminated.
3.4 Shown in Figure B.2 is a four-state FSM that contains a critical race. If the critical race is
not eliminated, it can cause the FSM to malfunction.
(a) Explain how the critical race can form and under what conditions.
(b) Correct the state diagram in Figure B.2 to show that the critical race is not possible.
(c) With the corrected state diagram of part (b), design this FSM by using the LPD
model followed by the Y → SR conversion algorithm in Section 2.1 to obtain the SR
logic suitable for using C-elements as the memory.
(d) Simulate the results of (c) and verify that it follows the corrected state diagram.
3.5 Shown in Figure B.3 is an FSM that has both a potential essential hazard (E-hazard) and
a potential d-trio. (Note: This is an advanced exercise requiring a complete understanding
of Section 3.6.)
(a) By using the LPD model, find the NS functions, Y1 and Y0, and note that there are
no static hazards present.
(b) Read Section 3.6 carefully, then run a complete E-hazard and d-trio analysis on this
FSM. To do this, follow Section 3.6.1 and the example in Section 3.6.2. Find the
A b 01 A
ZE
B a 00 AB c 11 AB
B d 10
A+B
AB
input initiation requirements, the initiator input, and the first and second invariants
for each. Determine the direct and indirect paths for E-hazard and d-trio formation,
their race gates (ANDing or ORing), and the minimum delays, ∆tE and ∆tD, required
to activate each, respectively.
(c) Repeat parts (a) and (b) for an SR C-element design of this FSM by using the Y →
SR conversion algorithm in Section 2.1.
(d) Test the LPD and SR results of (a)–(c) by simulation with and without ∆tE and ∆tD.
Chapter 4
4.1 The FSM in Figure 3.10 is to be designed by using the single time transition (STT) array
algebraic approach. To do this, use the alphabetic state identifiers, follow Sections 4.1 and
4.2, and do the following:
(a) Construct the state table from the state diagram for this FSM.
(b) Find the π- and τ-partitions, and the state matrix S and the destination matrix D.
Partial answer : π1 = a,bc = τ1.
(c) From the results of (b) find the function matrix FNS and the state functions Y1 and Y0.
Partial answer : Y0 = y0 � + y1 � + �B. (Hint: There is an externally initiated static hazard in
Y1.) Compare these results with those of Eqs. (3.3). What do you conclude?
(d) Following a similar procedure as in (b) and (c), find the output logic for Z and show
that no ORG exists. Note that this result is not the same as in Eq. (3.6). In what way
do these results differ and has the sense of the sequential nature of this FSM been
altered by the STT approach? Explain.
(e) Will an E-hazard analysis of the STT results differ from those given in Section 3.6.2?
Explain.
4.2 Shown in Figure B.4 is a five-state, two-input and three-output FSM that is to be designed
via the STT array algebraic method. The state diagram and state table for this FSM are
given in parts (a) and (b). Note that the state table is unfolded in Gray code as has been the
practice up to this point.
Given in Figure B.5 are the π- and τ-partitions, one possible state assignment matrix
S, which are derived from Figure B.4, and the state assignment map, which is presented
as a fourth-order EV K-map. Now, by following the example in Section 4.2, complete the
design of this FSM by doing the following:
(a) Obtain the destination matrix from the state table in Figure B.4.
(b) Determine from Figure B.5 and Section 4.2 how many valid S matrices are possible.
(c) From the results of (a), find the function matrix FNS making use of the state assign-
ment map in Figure B.5c to determine that e = y4, bc = �1y0, d = y1y0, abcde = 1, among
end-of-chapter problems 191
A+B
Sanity
a
000L A
AB AB
AB I0 I1 I3 I2
AB AB XE if B 00 01 11 10 W X Z
ZE
e b
A AB AB A a d a c a 0 0 0
? ?
b d a b b 0 B 0
c d c c b A 0 0
d d e c d 0 0 AB
AB AB
AB e e e c a 0 0 1
d c
ZE if AB WE if A
? ? B
AB
B B
(a) (b)
Figure B.4: A five-state, two-input, three-output FSM to be design by using the STT array algebraic
method. (a) State diagram. (b) State table derived from (a) laid out in Gray code.
others. Now, find the NS functions for Y4, Y3, Y2, Y1, Y0. Use the laws of Boolean
algebra to simplify the expressions wherever possible. Check for static hazards and
eliminate any that exist. Partial answer : Y1 = � � + y1 � + y1 y0 �.
y2y1 y2
y4y3 00 01 11 10
y0 y0 y0 y0
Note : All empty cells in
00 0 a 0 0 0
ο 1 = abcd,e � τ 1 = abcd,e = ο 1 the state assignment
1 1 1 1 b
map are don't cares.
y0 y0 y0 y0
ο 2 = ab,de � τ 2 = ab,cde (Contains ο 2, ο 3)
τ1 τ 2 τ 3 τ 5 τ6 01 0 0 0 0
ο 3 = ab,c � τ 3 = acde,b = ο 5 1 c 1 d 1 1
a 0 0 0 0 0 y3
ο 4 = c,de τ 4 = abde,c (Contains ο 3, ο 4) y0 y0 y0 y0
b 0 0 1 0 1 11 0 0 e 0 0
ο 5 = acde,b � τ 5 = abc,de (Contains ο 2, ο 4, ο 8) 1 1 1 1
S= c 0 1 0 0 1 y4
y0 y0 y0 y0
ο 6 = ae,bc � τ 6 = ae,bcd (Contains ο 6, ο 7)
0 0 0 0
d 0 1 0 1 1 10
ο 7 = ae,d τ 7 = abce,d (Contains ο 7, ο 8) 1 1 1 1
e 1 1 0 1 0
ο 8 = bc,d τ 8 = aed,bc (Contains ο 6, ο 8)
y1
(a) (b) (c)
Figure B.5: (a) π -partitions, and a minimum set of τ -partitions. (b) State assignment matrix ob-
tained from the τ -partitions. (c) Fourth-order EV state assignment map obtained from the state assign-
ment matrix, S.
192 asynchronous sequential machine design and analysis
(d) Determine the outputs W, X, and Z, and again simplify wherever possible.
(e) Study the state diagram in Figure B.4 and determine how many E-hazard paths sat-
isfy the minimum requirements given in Section 3.6.1. Give the path for each includ-
ing their initiating input conditions and race gates (ANDing or ORing). Hint: There
are more than four E-hazard paths.
4.3 Design the FSM in Figure B.4 by using the CAD program ADAM. To do this, review
Section 4.4 and carefully read the Readme.doc that accompanies the software. Remember
that the state table must be unfolded in binary not in Gray code and it must not include the
output functions. Three separate tables are required for the three outputs. Use a .txt editor
for both the input file and the batch file. (Note: This is an advanced exercise requiring a
complete understanding of the ADAM software.)
(a) Run ADAM and find the π- and τ-partitions, the state assignment matrix, the desti-
nation matrix. Also find the cubes for the NS functions Y4, Y3, Y2, Y1, Y0, and for the
SR equations as required for a C-element design. Lastly, find the p-term table in the
Berkeley format for a PLA design of this FSM.
(b) Check for static hazards and eliminate any that exist in the LPD results.
(c) Discuss the inherent differences between the “pencil-and-paper” FSM design in
Problem 4.2 and that of the ADAM-CAD design of this problem (4.3). In particular,
discuss the relative use of shared PIs by these two approaches.
Chapter 5
5.1 In Figure B.6a is a four-state asynchronous FSM, which has two inputs, X and Y, and two
outputs, P and Q, that is to be designed via the one-hot-plus-zero method. After reading
Sections 5.1 and 5.2, follow the design example in Section 5.3 and do the following:
(a) Write directly from the state diagram the NS and output expressions assuming that
the FSM has been initialized into the 0000 state by the one-hot-plus-zero method.
Simplify the expression for Ya by applying the factoring and absorptive laws. Partial
answers: Yb = bX � + b� Y + a� Y + d� Y + b� � and P = b� + c� Y.
(b) From the results of (a), construct the logic circuit assuming the LPD model. Use the
wireless connection feature wherever convenient. Note that static hazards are not pos-
sible in properly designed one-hot FSMs.
(c) Simulate this FSM and confirm that each one-hot state-to-state transition must pass
through a state having two 1’s—one “1” for the initial state and the other “1” for the
destination state.
(d) Read Section 5.4_ and analyze
_ any E-hazards this FSM may have. (Hint: There are two,
assuming that XY → XY in state b is not permitted, since it can create a function hazard.)
end-of-chapter problems 193
X
0000 Sanity
A8B B
a
XY Sanity 000000 AB
a b
XY XY
AB
AB AB
XY AB AB
PE if XY
RE if AB
XgY b c Y f AB c
PE if X B A+B
PE
QE if AB
XY AB AB
XY XY XY
B
e AB d SE if AB
d PE if AB
QE if XY
AB A+B
Y
(a) (b)
Figure B.6: Two asynchronous FSMs that are to be designed by using the one-hot-plus-zero method.
(a) A four-state FSM with two inputs and two outputs. (b) A six-state FSM with two inputs and four
outputs.
5.2 Repeat parts (a) and (b) of Problem 5.1 for the six-state asynchronous FSM in Figure B.6b,
but now use the one-hot Y → SR conversion algorithm in Section 5.2 to design with C-
_
elements. Partial answers: Sa = b� � + f AB + � � � � f ;Rd = � + � + � = ABe.
(a) Simulate the C-element design of this FSM and confirm that the state diagram in
Figure B.6b is followed.
(b) Determine how many potential E-hazards in this FSM satisfy the minimum require-
ments for E-hazard formation and give the initiating conditions for each. For ex-
ample, an input change of AB → A� in state a causes the transition a → c → b → d.
(Hint: There are more than nine E-hazards.)
Chapter 6
6.1 Design the FSM in Figure B.7a as a pulse mode machine by using falling edge-triggered
(FET) toggle modules as the memory. To do this, first read Sections 6.1, 6.2, and 6.3.
(a) By using the “T” excitation table in Figure 6.5, plot the two second-order K-maps
with EVs X and Y, then extract minimum cover for the two NS functions T1 and T0,
and for the output Z.
194 asynchronous sequential machine design and analysis
Sanity Sanity
00 a
000
X X
X
b
001 PE
01
Y
Y X c PE if X X+Y
Y 111 QE if Y
Y X
d e
11 101 011 PE if X
Y
X
Y X f
PE if X
110 X+Y
QE if Y
10 ZE if X
(a) (b)
figure B.7: Two FSMs to be design in the pulse mode by using toggle modules. (a) A four-state
sequence recognizer with two inputs and one output. (b) A six-state FSM with two inputs and two
outputs.
(b) Construct the logic circuit by using FET toggle modules as the memory following
Figures. 6.3 and 6.4. The use of toggle module macros is highly recommended.
(c) Simulate the circuit and verify that it conforms to the state diagram in Figure B.7a.
6.2 Repeat parts (a), (b), and (c) for the design of the pulse-mode FSM in Figure B.7b. To do
this in part (a), plot three third-order NS K-maps and two output K-maps with EVs X and
Y. Now complete parts (b) and (c) as in Problem 6.1.
Chapter 7
7.1 A logic circuit is represented by three NS functions and two output functions given below
that have been read directly from the logic circuit. Analyze this FSM by doing the follow-
ing with help from Sections 7.1 and 7.2.
Y2 = y2 + A
Y1 = y1 + B + y1 y0 AB
Y0 = y2 + B + y0 AB + A
X = y2 + y1 y0 AB
Z = y1 + y1 y0 AB
end-of-chapter problems 195
(a) Plot the third-order EV K-maps for the NS and output functions, then construct the
PS/NS table from which the state diagram can be constructed. Identify all don’t care
states that exist and show their branching relationship with the primary state routine.
Follow Figure 7.6 in this regard.
(b) What kind of FSM is this, based on what has been covered so far in this text? Indicate
how this FSM should be initialized.
(c) By using the state diagram, check for the presence of endless cycles, critical races,
ORGs, and static hazards. If any of these timing defects are present, show how they
can be eliminated. Thus, if static hazards are present, provide the correct hazard cover
to eliminate them. (Hint: There are six externally initiated static-1 hazards in this
FSM.)
(d) Run an E-hazard analysis and identify any potential E-hazards or d-trios that may
exist.
7.2 The NS and output function for an asynchronous FSM shown below are read directly from
a pulse mode circuit. From this information, construct the state diagram for this FSM and
analyze it.
T2 = 2 1 y0 Y + y2 X T1 = 2 y1 X + y0 Y T0 = 2 y1 X + 2 y1 Y + y2 0 Y + y2 1 Y + 0 X
P = y1 X + 2 1 y0 Q = y2 y1 Y
(a) Map these NS and output functions into third-order EV K-maps and perform the
T → Y K-map conversion given in Section 7.1, part 2b. Note that this conversion
follows the XOR relation for T → Y giving Y = y ⊕ T = �T + y�.
(b) From the results of (a), construct the PS/NS table and the state diagram for this FSM.
Verify that it satisfies the requirements for a pulse mode FSM and note any problems
it may have. Indicate how the FSM should be initialized.
(c) Can endless cycles, critical races, ORGs, static hazards or E-hazards occur in this
pulse mode FSM? Explain.
7.3 The NS and output functions below are those for an FSM design by the one-hot-plus-zero
method by using C-elements as the memory.
Sa = eT + a = S + T +
Sb = a + c b = +
P = eS
Sc = bST + dST c = T +
Q = d T + eS + b
Sd = b T d = T +
Se = bS + cS + d e = S + +
196 asynchronous sequential machine design and analysis
Chapter 8
8.1 The four-state FSM in Figure B.8a is a simple sequence recognizer having two inputs
and a single output. Design this FSM by using the externally asynchronous/internally
clocked system (EAIC) method. To accomplish this, do the following:
(a) Following Section 8.2, design and make a macro of the DFLOP shown in Figures
8.3, 8.5, and 8.6.
(b) Simulate the DFFOP design in (a) and verify that it conforms to the state diagrams
in Figure 8.3.
(c) From the state diagram in Figure B.8a, plot the DA and DB EV K-maps by using the
excitation table in Figure 1.2b, the mapping algorithm in Section 1.6, and its applica-
tion in Sections 1.7 and 8.3.
(d) Extract minimum cover from the EV K-maps in part (c). Partial answer: DA = A� Y +
BXY + AB.
(e) Use the DFLOP shown in Figure 8.6 and design the logic circuit for this FSM fol-
lowing the example in Section 8.3. For simplicity, use the wireless connection feature
emphasized in this text.
(f ) Simulate the resulting EAIC circuit and demonstrate that the simulation conforms
to the state diagram.
8.2 Repeat parts (a), (b), (c), (d), (e), and (f ) of Problem 8.1 for the FSM in Figure B.8b. Partial
answer : DC = � � � + CT.
Chapter 9
9.1 ( a) Read Sections 9.1 and 9.2 and then, following Section 9.3, design and make a macro
of the 2 × 2 microprogrammable asynchronous controller (MAC) module by using C-
elements.
end-of-chapter problems 197
X+Y
Sanity AB S+T
Sanity
00 a
XY
X ST
ST
XY 01 b
QE
XY
ST ST ST ST
ST
XY 11 c
X+Y ST ST
X+Y
T
d e
ST QE if ST S+T
10 OutE if XY
PE if ST
T QE if S
XY
(a) (b)
Figure B.8: Design of two FSMs by using the EAIC system. (a) A simple four-state sequence recog-
nizar having two inputs and one output. (b) A more complex five-state FSM having two inputs and two
outputs.
(b) Test the macro of (a) by simulation to verify that the macro conforms to the state
diagrams in Figure 9.3.
(c) Cascade the 2 × 2 MAC module with another to produce a 4 × 4 MAC module as
in Figure 9.7 and test it by simulation. Making a macro of the 4 × 4 MAC module is
optional.
9.2 Shown in Figure B.9 are three FSMs to be designed by the 4 × 4 MAC module and oper-
ated on a time-shared bases. After completing Problem 9.1, do the following:
(a) By following the examples in Section 9.5, construct the MAC program table for each
FSM, plot the NS instruction inputs in appropriate EV K-maps, and loop out an op-
timum cover for each. Partial answer : I2 = y2 �0 �T + �2 y1 y0S + y2 �1� for MAC-0.
198 asynchronous sequential machine design and analysis
S+T S
000 S 100 C
00
ST 00
T CD CD
ST
T 001 ZE 110 CD CD 01
ZE if S LE if D HE if D
T ST C 10 01 C
CD CD 11
011 S 111 XE
CD CD
S 11 10
HE if D
LE if D CNTE
010 YE C
Figure B.9: Three asynchronous FSMs to be design by using the 4 × 4 MAC module in Figure 9.7
and operated on a time-shared basis after having been initialized into the all-zero state. (a) MAC-0,
a seven-state FSM of two inputs and three outputs. (b) MAC-1, a selector module with two inputs
and two outputs. (c) MAC-2, a 2-bit gray code counter with one output.
(b) Following Section 9.6 and Figures 9.17 and 9.18, simulate the time-shared operation
of the three FSMs by using the 4 × 4 MAC module. Take particular caution in set-
ting up the interfacing logic and making the appropriate use of the DI inputs to the
MAC-2 FSM.
Chapter 10
10.1 (a) Following Sections 10.1 and 10.2, design and make a macro of the six-state asyn-
chronous one-hot programmable sequencer (A-OPS) shown in Figure 10.4.
(b) Test the macro by simulation and verify that it conforms to the state diagram in
Figure 10.4.
10.2 Shown in Figure B.10 are three FSMs to be designed via the six-state A-OPS in Figure
10.4 and operated by the six-state A-OPS on a time-shared basis. To do this, do the fol-
lowing:
(a) By following Section 10.3, obtain the NS instruction and output logic for each FSM
directly from their respective state diagrams. Refer to Eqs. (10.1) and (10.2) before
starting on this exercise.
end-of-chapter problems 199
X
S a
CK
X
a X
c SETE ST
b PE
ST ST
CK X
DCK ST X
WE if ST
PE if XY
a Sg T b WE if S c T c QE XY
CK XY
XY XY
DCK
CK ST ST ST ST e PE if XY f
XY
b RESETE X
Y X+Y
d d PE
ZE if ST
QE if XY
CK
T X
(a) A-OPS-0 (b) A-OPS-1 (c) A-OPS-2
Figure B.10: Three asynchronous FSMs to be designed by using the six-state A-OPS in Figure 10.4
and to be operated on a time-shared basis. (a) A three-state FSM with two inputs and two outputs.
(b) A four-state FSM with two inputs and two outputs. (c) A six-state FSM with two inputs and two
outputs.
(b) From the results of (a), construct the logic circuit for each FSM. Note: It is advisable
to make macros for each of these FSMs. Compare the results of Figure B10b with
that of Problem 5.1.
(c) Simulate the time-shared operation of these three FSMs following the format of Fig-
ures 10.12 and 10.13. Note that it is not necessary to pulse the CL(L) input for each
enable EN(L) from the decoder.
(d) Use the A-OPS software to generate all E-hazard paths, their initiators and first- and
second-invariants, and the ANDing race gates so that corrective action can easily be
taken if necessary.
Chapter 11
11.1 (a) Following Section 11.1, design and make a macro of the bus arbiter shown in Figure
11.1.
(b) Test the macro by simulation to verify that it conforms to the state diagrams and
output logic in Figure 11.1a.
200 asynchronous sequential machine design and analysis
(c) By following Section 11.1.1, design and simulate a four-input bus arbiter by using
C-elements as the RMODs. Verify that the grant outputs do not overlap. To do this,
blow up a waveform portion.
11.2 (a) Use the FET toggle module designed in Section 6.2 and redesign the pulse mode
FSM in Figure 7.11 by using the two-input bus arbiter in Problem 11.1 to deal with
overlapping inputs RX and RY as in Figure 11.17.
(b) Simulate the result of part (a) by using similar RX and RY waveforms as in Figure
11.18.
11.3 ( a) Follow Section 11.3 and make a macro of the handshake arbiter in Figure 11.8.
Simulate to verify that it conforms to the state diagrams, output logic and circuit in
Figure 11.8.
(b) By following Section 11.4, design and make macros of the Trans-Hi and Trans-LO
modules by using C-elements. Simulate to verify that they conform to the state dia-
grams in Figure 11.10.
(c) Following Section 11.4, design and make a macro of the rotating token arbiter mod-
ule. Simulate this arbiter module and compare with Figure 11.13.
(d) Following Figures 11.14, 11.15, and 11.16 and by using the results of parts (b) and
(c), design a four-input rotating token arbiter with grant signals connected back into
the respective Done signals. Simulate to verify its proper operation.
Additional Problems and Exercises: Invert state assignments or reassign state identifiers
in state diagrams where appropriate and rework the problems in Chapters 1 through 11.
Advanced Projects:
PROJECT I
Repeat Problems 5.1 and 5.2 by using the A-OPS software and VHDL.
PROJECT II
Repeat Problems 10.1 and 10.2 by using the A-OPS software and VHDL.
201
Endnotes
R. F. Tinder, Engineering Digital Design, 2nd ed. Revised, Academic Press, San Diego, CA, 2000.
W. S. VanScheik and R. F. Tinder, “High speed externally asynchronous/internally clocked sys-
tems,” IEEE Trans. Comput. 46(7), 824–829 (1997).
R. F. Tinder, R. I. Klaus, and J. A. Snodderley, “High speed microgrammable asynchronous control-
ler modules,” IEEE Trans. Comput. 43(10), 1226–1232 (1994).
C. J. Myers, Asynchronous Circuit Design, John Wiley & Sons, New York, 2001.
Unger and the contributions of Huffman, and Muller are good examples. Also, the publication by
Maki and Tracey provide an early look at the single transition time approach to asynchronous FSM
design.
AND function The function that derives from the definition of AND.
AND gate A physical device that performs the electrical equivalent of the AND function.
AND laws A set of Boolean identities based on the AND function.
Antiphase A term used in this book to mean complemented triggering of a device relative to a
reference system as, for example, an FET or RET D-latch.
A-OPS Asynchronous one-hot programmable sequencer.
Arbiter or arbiter module A device that is designed to control access to a protected system by
arbitration of contending signals.
Array algebra The algebra of Boolean arrays and matrices associated with the design of STT
machines.
Array logic Any of a variety of logic devices, such as ROMs, PLAs, or PALs, that are composed
of an AND array and an OR array (see Programmable logic device or PLD).
ASIC Application specific IC.
Assert Activate.
Assertion level Activation level.
Associative law A law of Boolean algebra that states that the operational sequence as indicated
by the location of parentheses in a p-term or s-term does not matter.
Associative pattern An XOR pattern in a K-map that allows a term or variable in an XOR or
EQV function to be looped out (associated) with the same term or variable in an adjacent cell pro-
vided that the XOR or EQV connective is preserved in the process.
Asynchronous Clock independent or self- timed—having no fixed time relationship.
Asynchronous input An input that can change at any time, particularly during the sampling
interval of the enabling input.
Asynchronous override An input such as preset or clear that, when activated, interrupts the
normal operation of a memory element.
Asynchronous parallel load The parallel loading of a register or counter by means of the asyn-
chronous PR and CL overrides of the flip-flops.
Basic cell A basic memory cell, composed of either cross-coupled NAND gates or cross-coupled
NOR gates, used in the design of other asynchronous FSMs including flip-flops.
Binary A number system of radix two; having two values or states.
Binary code A combination of bits that represent alphanumeric and arithmetic information.
Binary coded decimal (BCD) A four-bit, 10-word decimal code that is weighted 8, 4, 2, 1 and is
used to represent decimal digits as binary numbers.
Binary coded hexadecimal (BCH) The hexadecimal number system used to represent bit pat-
terns in binary.
Binary coded octal (BCO) The octal number system used to represent bit patterns in binary.
glossary of terms, expressions, and abbreviations 205
Binary word A linear array of juxtaposed bits that represents a number or that conveys an item
of information.
Bit A binary digit.
Bit slice Partitioned into identical parts such that each part operates on 1 bit in a multibit word—
part of a cascaded system of identical parts.
Boolean algebra The mathematics of logic attributed to the mathematician George Boole
(1815–1864).
Boolean product AND or intersection operation.
Boolean sum OR or union operation.
BOOZER BOOlean ZEro-one Reduction—a multioutput logic minimizer that accepts entered
variables or canonical data.
Boundary The separation of logic domains in a K-map.
Bounded pulse A pulse with both lower and upper limits to its width.
Branching condition (BC) The input requirements that control a state-to-state transition in an
FSM.
Branching path A state-to-state transition path in a state diagram.
Buffer A line driver.
Buffer state A state (in a state diagram) whose only purpose is to remove a race condition.
Burst-mode FSM An FSM whose branching paths in a state diagram are labeled with prescribed
input and output signal transitions as opposed to their logic values as in the classical notation.
Bus arbiter A two-input/two output arbiter that grants on request an output on a first-in/
first-out basis but will grant access to a second request only after the first request is withdrawn.
Byte A group of 8 bits.
Call module A module designed to control access to a protected system by issuing a request for
access to the system and then granting access after receiving acknowledgment of that request.
Canonical Made up of terms that are either all minterms or all maxterms.
Canonical truth table A 1’s and 0’s truth table consisting exclusively of minterms or maxterms.
CAPS Cascadable asynchronous programmable sequencers.
Cardinality The number of prime implements (p-term or s-term cover) representing a function.
Cascade To combine identical devices in series such that any one device drives another; to bit-
slice.
C-element A two-input rendezvous module (RMOD) that operates outside of the fundamental
mode such that its inputs are permitted to change simultaneously.
Cell The intersection of all possible domains of a K-map.
Circuit A combination of elements (e.g., logic devices) that are connected together to perform a
specific operation.
206 asynchronous sequential machine design and analysis
CL or CLR Clear.
CLEAR An asynchronous input that, when activated, forces the internal state of the device to
logic 0.
Clock (CK) A regular source of pulses that control the timing operations of a synchronous se-
quential machine.
Clock skew A phenomenon that is generally associated with high-frequency clock distribution
problems in synchronous sequential systems.
CMOS Complementary configured MOSFET in which both NMOS and PMOS are used.
CNT Mnemonic for count.
Code converter A device designed to convert one binary code to another.
Collapsed truth table A truth table containing irrelevant input symbols.
Combinational hazard A hazard that is produced within a combinational logic circuit.
Combinational logic A configuration of logic devices in which the outputs occur in direct, im-
mediate response to the inputs without feedback.
Commutative law The Boolean law that states that the order in which variables are represented
in a p-term or s-term does not matter.
Compatibility A condition where the input to a logic device and the input requirement of the
device are of the same activation level, that is, are in logic agreement.
Complementary C-element A Muller C-element in which one of its inputs required and active
low input.
Complementary metal oxide semiconductor (CMOS) A form of MOS that uses both p- and
n-channel transistors (in pairs) to form logic gates.
Complementation A condition that results from logic incompatibility; the mixed-logic equiva-
lent of the NOT operation.
Composite output map A K-map that contains entries representing multiple outputs.
Computer A digital device that can be programmed to perform a variety of tasks (e.g., computa-
tions) at high speed.
Concatenation Act of linking together or being linked together in a series.
Conditional branching State-to-state transitions that depend on the input status of the FSM.
Conditional output An output that depends on one or more external inputs.
Conjugate gate forms A pair of logic circuit symbols that derive from the same physical gate and
that satisfy the DeMorgan relations.
Connective A Boolean operator symbol (e.g., +, ., ⊕, etc.).
Consensus law A law in Boolean algebra that allows simplification by removal of a redundant
term.
Consensus term The redundant term that appears in a function obeying the consensus law.
glossary of terms, expressions, and abbreviations 207
Controlled inverter An XOR gate that is used in either the inverter or transfer mode.
Controller That part of a digital system that controls the data path devices.
Conventional K-map A K-map whose cell entries are exclusively l’s and 0’s.
Counteracting delay A delay placed on an external feedback path to eliminate an E-hazard or
d-trio.
Counter A combinational logic device whose function it is to count in binary some count
sequence.
Coupled term One of two terms containing only one coupled variable.
Coupled variable A variable that appears complemented in one term of an expression (SOP or
POS) and that also appears uncomplemented in another term of the same expression.
Cover A set of terms that covers all minterms or maxterms of a function.
CPLD Complex PLD.
Critical race A race condition in an asynchronous FSM that can result in a transition to an
erroneous state.
Cross branching Multiple transition paths from one or more states in the state diagram (or state
table) of a sequential machine whereby unit distance coding of states is not possible.
Cube A p-term containing a set of 2n minterms in reduced or minimized form. Also an s-term
containing a set of 2n maxterms in reduced or minimized form.
Cycle Two or more successive and uninterrupted state-to-state transitions in an asynchronous
sequential machine, usually not controlled by input conditions.
Cycle state A state among others in state-to-state transitions not controlled by external inputs.
Data bus A parallel set of conductors that are capable of transmitting or receiving data between
two parts of a system.
Data path The part of a digital system that is controlled by a controller.
Data path unit The group of logic devices that comprise the data path.
Data selector A multiplexer.
Data-triggered A term that refers to flip-flops triggered by external inputs (no clock) as in the
pulse mode.
DCL Digital combination lock.
Deactivate To make inactive.
Debounce To remove the noise that is produced by a mechanical switch.
Debouncing circuit A circuit that is used to debounce a mechanical switch.
Decade A quantity of 10.
Decoder A combinational logic device that will activate a particular minterm code output line
determined by the binary code input. A demultiplexer.
Delay The time elapsing between related events in progress.
208 asynchronous sequential machine design and analysis
Delay circuit A circuit whose purpose it is to delay a signal for a specified period.
DeMorgan relations Mixed logic expressions of DeMorgan’s laws.
DeMorgan’s laws A property that states that the complement of the Boolean product of terms is
equal to the Boolean sum of their complements; or that states that the complement of the Boolean
sum of terms is the Boolean product of their complements.
Demultiplexer A decoder.
D flip-flop A 1-bit memory device whose output value is set to the D input value on the trigger-
ing edge of the clock signal.
DFLOP module A memory element used in an EAIC system that has characteristics similar to
that of a D flip-flop but that delivers a “data ready” signal.
Diagonal pattern An XOR pattern formed by identical EV subfunctions in any two diagonally
located cells of a K-map whose coordinates differ by 2 bits.
Digit A single symbol in a number system.
Digital Related to discrete quantities.
Digital combination lock A sequence recognizer that can be used to unlock or lock something.
Digital engineering design The design and analysis of digital devices.
Digital signal A logic waveform composed of discrete logic levels (e.g., a binary digital signal).
Diode A two-terminal passive device consisting of a p–n junction that permits significant current
to flow only in one direction.
Disjoint As used in “mutually disjoint” to mean a set of p-terms whose ANDed values taken two
at a time are always logic zero. Thus, mutually disjoint terms never take logic 1 at the same time.
Distributive law The dual of the factoring law where both are categorized as a distributive law.
DMUX Demultiplexer (see Decoder).
Domain A range of logic influence or control.
Domain boundary The vertical or horizontal line or edge of a K-map.
Don’t care A nonessential minterm or maxterm, denoted by the symbol φ, which can take either
a logic 1 or logic 0 value. Also a delimiter that, when attached to a variable or term, renders that
variable or term nonessential to the parent function.
Don’t care state A state having only output transition paths and that is not part of the primary
(essential) state sequence in the state diagram representing an asynchronous FSM.
Driver A one-input device whose output can drive substantially more inputs than a standard
gate. A buffer.
D-trio A type of essential hazard that causes a fundamental mode machine to transit to the cor-
rect state via an unauthorized path.
Duality A property of Boolean algebra that results when the AND and OR operators (or XOR
and EQV operators) are interchanged simultaneously with the interchange of l’s and 0’s.
glossary of terms, expressions, and abbreviations 209
Dual relations Two Boolean expressions that can be derived one from the other by duality.
Duty cycle In a periodic waveform, the percentage of time the waveform is active.
Dyad A grouping of two logically adjacent minterms or maxterms.
Dynamic hazard Multiple glitches in the output such that the output logic levels are different
before and after an input change and which are usually produced in multilevel circuits involving
three or more asymmetric paths (delay-wise) of the input to the output.
EAIC system Externally asynchronous/internally clocked system.
Edge-triggered flip-flop A FLIP-FLOP that is triggered on either the rising edge or falling
edge of the clock waveform and that exhibits the data lockout feature.
E-hazard Essential hazard.
EN Enable.
Enable An input that is used to enable (or disable) a logic device, or that permits the device to
operate normally.
Endless cycle An oscillation that occurs between states in an asynchronous FSM.
Entered variable (EV) A variable entered into a K-map.
EPI Essential prime implicant.
EPLD Erasable PLD.
EPROM Erasable programmable read-only memory.
Equivalence The output of a two-input logic gate that is active if, and only if, its inputs are logi-
cally equivalent (i.e., both active or both inactive).
EQV Equivalence.
EQV function
_ The function that derives from the definition of equivalence and given the symbol
or ⊕ as used in this text.
EQV gate A physical device that performs the electrical equivalent of the EQV function.
EQV laws A set of Boolean identities based on the EQV function.
Erasable programmable read-only memory (EPROM) A ROM that can be programmed many
times.
ESPRESSO logic minimizer A software minimization tool that supports advanced heuristic
algorithms of multioutput Boolean functions but does not accept entered variables.
Essential hazard (E-hazard) A disruptive sequential hazard that can occur as a result of an
unintended, explicitly located delay in an asynchronous FSM that has at least three states.
Essential prime implicant (EPI) A PI that must be used to achieve minimum cover.
EV Entered variable.
EV K-map A K-map that contains EVs.
EV truth table A truth table containing EVs.
Even parity An even number of l’s (or 0’s) in a binary word depending on how even parity is defined.
210 asynchronous sequential machine design and analysis
Hold condition Branching from a given state back into itself or the input requirements necessary
to effect such branching action.
Hold time The interval of time immediately following the transition point during which the
data inputs must remain logically stable to ensure that the intended transition of the FSM will be
successfully completed.
Huffman circuit An asynchronous FSM that operates in the fundamental mode.
HV High voltage.
Hybrid function Any function containing both SOP and POS terms.
IC Integrated circuit.
Implicant A term in a reduced or minimized expression.
Inactive Not active and implying logic 0.
Inactive state The logic 0 state of a logic device.
Inactive transition point The point in a logic waveform where a digital device passes from the
active state to the inactive state.
Incompatibility A condition where the input to a logic device and the input requirement of that
device are of opposite activation levels.
Incompletely specified function A function that contains nonessential minterms or maxterms
(see Don’t care).
Indirect path The path taken by the initiator input to the race gate (RG) via the second y-vari-
able invariant in the development of an E-hazard or d-trio.
Inertial delay circuit A delay circuit based mainly on R–C components.
Initialize To drive a logic circuit into a beginning or reference state.
Initiator input The external input whose single change initiates an E-hazard or d-trio.
Input A signal or line into a logic device that controls the operation of that device.
Intersection AND operation.
Inversion The inverting of a signal from HV to LV or vice versa.
Inverter A physical device that performs voltage inversion in the physical domain or that per-
forms logic level conversion in the logic domain.
l/O Input/output.
IPG Indirect path gate.
Irredundant Not redundant, as applied to an absolute minimum Boolean expression.
Irrelevant input An input whose presence in a function is nonessential.
Island A K-map entry that must be looped out of a single cell.
Iterative Repeated many times to achieve a specific goal.
Juxtapose To place side by side.
Karnaugh map (K-map) Graphical representation of a logic function named after M. Karnaugh
(1953).
glossary of terms, expressions, and abbreviations 213
Mixed logic The combined use of the positive and negative logic systems.
Mixed-rail output Dual, logically equal outputs of a device (e.g., a basic cell) where one output is
issued active high whereas the other is issued active low, but which are not issued simultaneously.
Mnemonic A short single group of symbols (usually letters) used to convey a meaning.
Mnemonic state diagram A fully documented state diagram.
Model The means by which the major components and their interconnections are represented for
a digital machine or system.
Module A device that performs a specific function and that can be added to or removed from a
system to alter the system’s capability. A common example is an arbiter module.
Monad A minterm (or maxterm) that is not logically adjacent to any other minterm (or max-
term) in a K-map.
Moore machine A sequential machine that conforms to the Moore model.
Moore model A degenerate form of the Mealy (general) model in which the output state de-
pends only on the present state and which is independent of external inputs.
Moore output An unconditional output.
MOS Metal-oxide semiconductor.
MOSFET Metal-oxide semiconductor field effect transistor.
Most significant bit (MSB) The extreme left bit of a binary word that has the highest positional
weight.
MSB Most significant bit.
MSD Most significant digit.
MSI Medium-scale integration.
MTBF Mean time between failures.
Muller C-element A rendezvous module (RMOD) that operates outside of the fundamental
mode and that changes activation levels only after all inputs change to the same activation level.
Muller circuit A speed-independent circuit that operates outside of the fundamental mode.
Multilevel logic minimization Minimization involving more than two levels of path delay.
Multiple-output minimization Optimization of more than one output expression from the
same logic device.
Multiplex To select or gate (on a time-shared basis) data from two or more sources onto a single
line or transmission path.
Multiplexer A device that multiplexes data.
Mutually exclusive requirement A requirement in state diagram construction that forbids over-
lapping branching conditions (BCs)—i.e., it forbids the use of BCs shared between two or more
branching paths.
MUX Multiplexer.
NAND-centered basic cell Cross-coupled NAND gates forming a basic cell.
216 asynchronous sequential machine design and analysis
NAND gate A physical device that performs the electrical equivalent of the NOT AND
function.
NAND/INV logic Combinational logic consisting exclusively of NAND gates and inverters.
Negative logic A logic system in which high voltage (HV) corresponds to logic 0 and low voltage
(LV) corresponds to logic 1. The opposite of positive logic.
Negative pulse A 1-0-1 pulse.
Nested cell A basic cell used as the memory in an asynchronous FSM design.
Nested element model A model in which memory elements are embedded into an FSM.
Nested machine Any asynchronous machine that serves as the memory in the design of a larger
sequential machine. Any FSM that is embedded within another.
Next state (ns) A state that follows the present state (PS) in a sequence of states.
Next state forming logic The logic hardware in a sequential machine whose purpose it is to gen-
erate the next state function input to the memory.
Next state function The logic function that defines the next state of an FSM given the present
state.
Next state map A composite K-map where the entries for each cell are the next state subfunction
for the present state represented by the coordinates of that cell.
Next state variable The variable representing the next state function.
NMOS An n-channel MOSFET.
Noise immunity The ability of a logic circuit to reject unwanted signals.
Noise margin The maximum voltage fluctuation that can be tolerated in a digital signal without
crossing the switching threshold of the switching device.
NOR-centered basic cell Cross-coupled NOR gates forming a basic cell.
NOR gate A physical device that performs the electrical equivalent of the NOT OR function.
NOR/INV logic Combinational logic consisting exclusively of NOR gates and inverters.
NOT function An operation that is the logic equivalent of complementation.
NOT laws A set of Boolean identities based on the NOT function.
NS Next state.
Octad A grouping of eight logically adjacent minterms or maxterms.
Odd parity An odd number of l’s or 0’s depending on how odd parity is defined.
Offset pattern An XOR pattern in a K-map in which identical subfunctions are located in two
nondiagonal cells that differ in cell coordinates by 2 bits.
O-HAPS. One-hot asynchronous programmable sequencer.
One-hot code A nonweighted code in which there exists only one “1” in each word of the code.
One-hot design method The use of the one-hot code for synchronous and asynchronous FSM
design.
glossary of terms, expressions, and abbreviations 217
Propagation delay In a logic device (e.g., a gate), the time interval of an output response to an
input signal.
PS Present state.
PS/NS Present-state/next-state.
P-term A Boolean product term—one consisting only of ANDed literals.
P-term table A table that consists of p-terms, inputs and outputs and that is used to program
PLA type devices.
Pull-down resistor A resistor that causes a signal on a line to remain at low voltage.
Pull-up resistor A resistor that causes a signal on a line to remain at high voltage.
Pulse An abrupt change from one level to another followed by an opposite abrupt change.
Pulse mode An operational condition for an asynchronous FSM where the inputs are required to
be discrete nonoverlapping pulse signals.
Pulse width The active duration of a positive pulse or the inactive duration of a negative pulse.
Quad A grouping of four logically adjacent minterms or maxterms.
R Request or data ready signal. Also reset or resistance.
Race condition A condition in an asynchronous sequential circuit where the transition from one
state to another involves two or more alternative paths.
Race gate The gate to which two or more input signals are in race contention.
Race path Any path that can be taken in a race condition.
Race state Any state through which an FSM may transit during a race condition.
RAM Random access memory.
Random access memory (RAM) A read/write memory system in which all memory locations
can be accessed directly independent of other memory locations.
R-C Resistance/capacitance or resistor/capacitor.
Read-only memory (ROM) A PLD that can be mask programmed only in the OR plane.
Redundant cover Nonessential and nonoptional cover in a function representation.
Redundant prime implicant A PI that yields redundant cover.
Rendezvous module (RMOD) An asynchronous state machine whose output becomes active when
all external inputs become active and becomes inactive when all external inputs become inactive.
Reset A logic 0 condition or an input to a logic device that sets it to a logic 0 condition.
Residue The part of term that remains when the coupled variable is removed (see Consensus term).
Resistance, R. The voltage drop across a conducting element divided by current through the ele-
ment (in ohms).
RET Rising edge triggered.
Reverse bias A voltage applied to a p–n junction diode in a direction as to minimize conduction
across the junction.
220 asynchronous sequential machine design and analysis
Reverse saturation current The current through a p–n junction diode under reverse bias.
RG (See Race gate)
Rise time The length of time it takes a voltage (or current) signal to change from 10% to 90% of
its high value.
Rising edge triggered (RET) Activation of a logic device on the rising edge of the triggering
variable.
RMOD Rendezvous module.
ROM Read-only memory.
Rotating token arbiter A multistage arbiter in which each stage sampled by a rotating token
signal results in the issuance of a grant from a given stage provided a request input to that stage is
active at the time the token enters that stage.
RPI Redundant prime implicant.
Runt pulse Any pulse that falls short of reaching the switching threshold of a device into which
it is introduced.
S SET.
SAM (See State array machine)
Sampling interval Sum of the setup and hold times.
Sampling variable The last variable to change in initiating a state-to-state transition in an FSM.
Sanity circuit A circuit that is used to initialize an FSM into a particular state; usually a resis-
tor/capacitor (R/C) type circuit.
Schmitt trigger An electronic gate with hysteresis and high noise immunity that is used to “square
up” pulses.
Selector module A device whose function it is to steer one of two input signals to either one of
two outputs depending on whether a specific input is active or inactive.
Sequence detector (recognizer) A sequential machine that is designed to recognize a particular
sequence of input signals.
Sequential hazard An essential hazard.
Sequential machine Any digital machine with feedback paths whose operation is a function of
both its history and present input data.
SET A logic 1 condition or an input to a logic device that sets it to a logic 1 condition.
Set-up time The interval of time prior to the transition point during which all data inputs must
remain stable at their proper logic level to ensure that the intended transition will be initiated.
S-hazard A static hazard.
Shared prime implicant (SPI) Two identical PIs appearing in two or more NS and/or output
functions from the same FSM.
Single transition time (STT) A state-to-state transition in an asynchronous FSM that occurs in
the shortest possible time, that is without passing through a race state.
glossary of terms, expressions, and abbreviations 221
SOP Sum-of-products.
SOP hazard Static-1 hazard.
Source The origin of a digital signal.
SPDT switch Single-pole/double-throw switch.
Square wave A rectangular waveform.
SRAM Static RAM.
Stability criteria The requirements that determine if an asynchronous FSM, operated in the
fundamental mode, is stable in a given state.
Stable state Any logic state of an asynchronous FSM that satisfies the stability criteria.
Stack format A three-dimensional array of conventional fourth-order K-maps used for function
minimization of more than four variables.
State A unique set of binary values that characterize the logic status of a machine at some point
in time.
State adjacency set Any 2n set of logically adjacent states of an FSM.
State array machine (SAM) A 2n array of states such that each state in the array has transition
paths only to states that are logically adjacent.
State code assignment Unique set of code words that are assigned to an FSM to characterize its
logic status.
State diagram The diagram or chart of an FSM that shows the state sequence, branching condi-
tions, and output information necessary to describe its sequential behavior.
State machine A finite state machine (FSM). A sequential machine.
State identifier Any symbol (e.g., numerical or alphabetical) that is used to represent or identify
a state in a state diagram.
State table Tabular representation of a state diagram.
State transition table (see Excitation table).
State variable Any variable whose logic value contributes to the logic status of a machine at any
point in time. Any bit in the state code assignment of a state diagram.
Static hazard An unwanted glitch in an otherwise steady-state signal that is produced by an in-
put change propagating along asymmetric path delays through inverters or gates.
Static-1 hazard A glitch that occurs in an otherwise steady-state 1 output signal from SOP
logic due to a change in an input for which there are two asymmetric paths (delay-wise) to the
output.
Static-0 hazard A glitch that occurs in an otherwise steady-state 0 output signal from POS logic
due to a change in an input for which there are two asymmetric paths (delay-wise) to the output.
Static RAM A nonvolatile form of RAM—does not need periodic refreshing to hold its infor-
mation.
Steering logic Logic based primarily on transmission gate switches.
222 asynchronous sequential machine design and analysis
Tri-state driver An active logic device that operates in either a disconnect mode or an inverting
(or noninverting) mode.
Truth table A table that provides an output value for each possible input condition to a combi-
national logic device.
Two-level logic Logic consisting of only one ANDing and one ORing stage.
Unconditional branching State-to-state transitions that take place independent of the input sta-
tus of the FSM.
Unconditional output An output of an FSM that does not depend on an input signal. A Moore
output.
Union OR operation.
Unit distance code A code in which each state in the code is surrounded by logically adjacent
states.
Unstable state Any logic state in an asynchronous FSM that does not satisfy the stability criteria.
VEM Variable entered map.
Very-large-scale integrated circuits IC chips that contain thousands to millions of gates.
VHDL VHSIC hardware description language.
VHSIC Very-high-speed integrated circuit.
VLSI Very-large-scale integrated circuit.
Voltage, V The potential difference between two points, in units of volts [V]. Also, the work
required to move a positive test charge against an electric field.
Voltage waveform A voltage waveform in which rise and fall times exist.
Wireless connection feature In schematic capture, the simplifying feature that permits input and
output labels to be presented separately from corresponding labels used throughout a circuit—thus,
no wire connections are needed to convey connectivity.
WSI circuits Wafer-scale integrated circuits.
XNOR Exclusive NOR (see Equivalence and eqv).
XOR Exclusive OR.
XOR function The function that derives from the definition of Exclusive OR.
XOR gate A physical device that performs the electrical equivalent of the XOR function.
XOR laws A set of Boolean identities that are based on the XOR function.
XOR pattern Any of four possible K-map patterns that result in XOR type functions.
225
Author Biography
Professor Richard Tinder’s teaching interests have been highly varied over his tenure at Wash-
ington State University (WSU). They have included crystallography, thermodynamics of solids
(both equilibrium and irreversible thermodynamics), solid state electronics, tensor properties of
crystals, dislocation theory, solid state direct energy conversion (mainly solar cell theory, ther-
moelectric effects, and fuel cells), general materials science, electromagnetics, and analog and
digital circuit theory. For more than 20 years, he taught logic design at the entry, intermediate,
and advanced levels and has published a major text in the area titled Engineering Digital Design,
2nd Ed. Revised. He has conducted research and published in the areas of tensor properties of
solids, surface physics, shock dynamics of solids, milli–micro plastic flow in metallic single crys-
tals, high-speed asynchronous (clock-independent) state machine design, and Boolean algebra
(specifically XOR algebra and graphics). Recently, he has published two books: Relativistic
Flight Mechanics and Space Travel and Tensor Properties of Solids—Phenomenological Development
of the Tensor Properties of Crystals.
Professor Tinder received his bachelor’s, master’s, and doctoral degrees from the Univer-
sity of California, Berkeley. In the early 1970s, he spent one year as a visiting faculty member at
the University of California, Davis, in what was then the Department of Mechanical Engineer-
ing and Materials Science. There, he continued teaching materials science including solid state
thermodynamics and advanced reaction kinetics. Following his return to WSU, he taught logic
design and conducted research in that area until retirement in 2004. Currently, he is Professor
Emeritus of the School of Electrical Engineering and Computer Science at WSU.
227
Index
Absorptive laws 71, 96, 146, 148, 182 A-OPS software xiv
Acknowledgement (done) signal 171, 175, 200 Capabilities 158–163
Activate 203 Website xiii
Activation level 203 Arbiters 165–179, 204
Activation level indicator 16 Applications 176–179
Active state 16, 203 Bus arbiter module 165–166, 205
Active high (H) 16, 203 Handshake arbiters 171–173
Active low (L) 16, 203 MD/ME stage and the MTBF 171–172
Indicator bubble 23 Multiple input bus arbiters 167–169
Active state 203 Priority stand-alone arbiters 170–171, 218
Active transition point 203 Rotating token arbiters 173–178
ADAM software xiv, 203 Array algebraic approach 53–60, 204
Capabilities 62–66 see Single transition time (STT) FSM
Website xiii design 53
Adjacent cell 203 Array logic 204
Adjacent XOR pattern 203 Assert (see Activate) 203, 204
Alternative race path 203 Assertion level (see Activation level) 203
Analysis of FSMs 87–101, 203 Associative laws 182, 204
General procedure 87–88 Asynchronous FSMs 3
LPD model FSMs 88–92 Features and need for 3–4
One-hot FSMs 96–99 Asynchronous input 204
Pulse mode FSMs 99–101 Asynchronous one-hot programmable
STT FSMs 92 sequencers (A-OPS) 143
AND function 181, 204 General architecture 143–146
AND gate 181, 204 Design of one-hot sequencers 146–151
AND/OR laws 183 Time-shared multiple FSM operation
Antiphase 204 151–157
A-OPS xiv, 143, 204 Software capabilities of A-OPS 158–163
228 asynchronous sequential machine design and analysis