How Asynchronous Designs Fail
Combinational hazards produce temporary output glitches that disappear after signal propagation delays settle.
Sequential hazards cause more severe failures. A sequential hazard forces a state machine into an incorrect binary state. The circuit remains in this incorrect state permanently.
This article explains the three primary sequential hazards: critical races, essential hazards, and reset deassertion violations.
Race Conditions
A race condition occurs when the circuit state depends on the relative propagation speeds of two or more signals that transition simultaneously.
In an asynchronous state machine, state variables update through combinational feedback paths. When a state transition requires two state bits to change, each bit traverses a separate physical path with a distinct propagation delay.
The circuit temporarily enters an intermediate state where one bit has updated and the other bit has not.
Consider a 2-bit state machine transitioning from binary 00 to 11. Both bits must transition. One bit transitions faster than the other (Figure 1).
Non-Critical Race
If both intermediate states (01 and 10) automatically transition to 11 under the active input conditions, the race is non-critical. Whichever bit transitions first, the machine reaches the intended destination state 11.
Critical Race
If state 01 or state 10 is a stable state under the active inputs, the race is critical. The state machine enters the state reached by the faster bit and remains there permanently.
Manufacturing tolerances, operating temperature, and supply voltage determine which bit transitions faster. A circuit can operate correctly at nominal laboratory conditions, but fail at extreme operating temperatures.
Asynchronous designers use Gray code state encodings where state transitions change only one bit at a time, eliminating races. In synchronous architectures, clock edges update all state bits simultaneously, preventing this failure mode.
Essential Hazards
Races arise from state assignment encodings and can be resolved through encoding choices. In contrast, essential hazards are structural properties of asynchronous feedback networks.
An essential hazard occurs when an input signal changes faster than the feedback state can traverse the internal feedback loop.
If an input undergoes rapid consecutive transitions (such as $0 \to 1 \to 0$), the next-state logic can evaluate the new input before the internal state reflects the previous transition. The circuit processes transitions out of sequence and enters an invalid state.
To prevent essential hazards in asynchronous circuits, designers must insert delay elements into feedback paths. However, matching delay elements across all PVT corners and aging conditions is difficult.
Synchronous architectures eliminate essential hazards. Flip-flop setup requirements ensure that inputs remain stable, and the clock period allows all internal signals to settle before the next edge.
Asynchronous Reset Deassertion Hazards
Even fully synchronous digital designs use asynchronous signals on register reset pins. Reset deassertion is a frequent source of initialization failures in commercial semiconductor chips.
Reset signals originate from external supervisory circuits, power-on monitors, or mechanical switches. These signals deassert asynchronously relative to the local clock.
If reset deassertion occurs within the setup or hold timing window (recovery or removal time) of a flip-flop, the flip-flop can enter metastability. The output voltage can linger at an intermediate level.
In a multi-bit register, some flip-flops can exit reset on the current clock cycle while others exit on the following cycle. The system begins execution from an undefined, corrupted state.
To prevent reset deassertion failures, designs use a two-stage reset synchronizer (Figure 2).
When the raw reset asserts, both flip-flops clear immediately, driving the synchronized reset low.
When the raw reset releases, the first flip-flop captures a constant logic 1 on the next clock edge. The second flip-flop captures the signal on the subsequent clock edge. The synchronized reset signal deasserts cleanly on an active clock edge.
Environmental Sensitivity of Asynchronous Failures
Asynchronous timing failures depend heavily on physical operating conditions. Process variations, junction temperature, and supply voltage fluctuations alter path delays.
A race condition can exhibit positive timing margin at nominal laboratory temperatures, but fail at temperature extremes.
Furthermore, static timing analysis tools cannot easily verify unconstrained asynchronous feedback loops. Consequently, timing margins do not appear in standard timing reports.
Synchronous design prevents these failures by bounding every path delay against the clock period across all PVT corners.
Practice Exercises
Problem 1
A state machine defines these binary state encodings: IDLE = 00, WAIT = 01, ACTIVE = 10, and DONE = 11.
- Does the transition from
IDLEtoACTIVEcontain a race condition? - Does the transition from
IDLEtoDONEcontain a race condition?
Solution
- Transitioning from
IDLE(00) toACTIVE(10) changes only bit 1. Bit 0 remains 0. Because only one bit changes, no race condition exists. - Transitioning from
IDLE(00) toDONE(11) changes both bits. This transition contains a race condition. The circuit passes through either01or10. The race is critical if either intermediate state is stable under the current input condition.
Problem 2
An asynchronous reset signal releases near an active clock edge. Explain why a two-stage reset synchronizer requires two flip-flops instead of one.
Solution
If the asynchronous reset deasserts within the recovery timing window of the first flip-flop, that flip-flop can become metastable.
The second flip-flop provides a full clock period of resolution time ($T_{\text{clk}} - t_{\text{su}}$) for the metastable voltage on the first flip-flop to settle to a valid logic level. The output of the second flip-flop releases the system synchronously without glitching.
Problem 3
Can designers eliminate essential hazards by inserting delay buffers into asynchronous feedback paths?
Solution
Delay buffers cannot eliminate essential hazards reliably across all operating environments.
Propagation delays of delay buffers scale differently than logic gates across process, voltage, and temperature variations. Furthermore, on-chip thermal gradients and device aging cause delay variations.
Synchronous architectures eliminate essential hazards by enforcing a fixed clock period that isolates state transitions.
The next article examines metastability, calculates Mean Time Between Failures (MTBF), and presents synchronizer designs for clock domain crossings.