Sub topic 11
Static Hazards and How to Remove Them
Prerequisites and working model
Assume you know Boolean algebra, truth tables, Karnaugh maps, and two-level sum-of-products (SOP) and product-of-sums (POS) circuits. You should also know that real gates have propagation delay: the time between an input change and the corresponding output change.
A static hazard is a brief, unwanted output change when the output should remain constant. It occurs because different signal paths through a circuit have different delays. The Boolean expression predicts the steady-state value, but it does not describe every intermediate value during a transition.
A static hazard can be:
- Static-1 hazard: the output should remain 1 but briefly becomes 0.
- Static-0 hazard: the output should remain 0 but briefly becomes 1.
These hazards often occur when a signal and its complement travel through separate paths. The paths then reconverge at a gate.
Static-1 hazards in SOP circuits
Consider the SOP function:
\[ F = AB + A'C \]
Suppose \(B=1\) and \(C=1\), while \(A\) changes from 0 to 1.
- Before the change, \(A'C=1\), so \(F=1\).
- After the change, \(AB=1\), so \(F=1\).
The output should remain 1. However, the path producing \(A'\) may turn off before the path producing \(A\) turns on. Both product terms can temporarily be 0, causing a short 1-to-0 pulse.
The usual fix is to add the consensus term \(BC\):
\[ F_{\text{safe}} = AB + A'C + BC \]
When \(B=C=1\), the term \(BC\) remains 1 throughout the transition. It bridges the gap between the other two terms.
A Karnaugh-map rule gives the same result: for every pair of adjacent 1-cells that may be crossed by one input change, the pair should be covered by at least one common implicant. That common group supplies the consensus term.
Static-0 hazards in POS circuits
Static-0 hazards commonly occur in POS circuits. Consider:
\[ F=(A+B)(A'+C) \]
With \(B=0\) and \(C=0\), the output should remain 0 while \(A\) changes. Different delays can make both sum terms temporarily equal to 1, producing a short 0-to-1 pulse.
Add the dual consensus term:
\[ F_{\text{safe}}=(A+B)(A'+C)(B+C) \]
Here, \(B+C=0\) holds during the transition, preventing the unwanted high pulse.
For a POS circuit, use the dual Karnaugh-map rule: every pair of adjacent 0-cells that may be crossed by one input change should be covered by a common maxterm.
Design checks and common errors
When checking a circuit:
- Identify which single input can change.
- Hold the other inputs at values that keep the output constant.
- Trace the separate paths for the signal and its complement.
- Check whether adjacent K-map cells have a shared group.
- Add the required consensus group without changing the steady-state function.
A static hazard differs from a dynamic hazard, where the output changes more than once while moving to its final value. Dynamic hazards usually arise from multiple levels of logic. Eliminating static hazards in a two-level implementation does not automatically eliminate dynamic hazards in a multilevel implementation.
Exercise
Add a consensus term to make F = AB + A'C hazard-free for a possible transition of A. Why does the added term work?
Show answer
Add BC, giving F = AB + A'C + BC. If B and C are both 1, BC remains 1 while A changes, so the output cannot briefly fall because of unequal path delays.