Sometimes a combinational output spits a narrow pulse it should never produce when an input changes; that is a hazard. This page shows how to spot it on the Karnaugh map, why it happens, and how redundancy or filtering removes it.
A hazard starts with race: signals reach the output through different gate depths and trace lengths, so they arrive at different times. When one input changes and the output should stay put, a fast path and a slow path can briefly drive a wrong level, a glitch. It appears only at the transition edge and is invisible in steady state, yet it can falsely trigger a later flip-flop or interrupt.
On the Karnaugh map, if two adjacent 1-loops are separated by only one variable change and no third loop covers the join, a glitch appears when that variable toggles. The test: two K-loops touching at a single point means a possible hazard. Fill the touching point with a redundant loop, a redundant term, and the glitch is covered.
The cleanest fix is a redundant term: add a loop at the touching point so the output stays 1 across the transition and the glitch vanishes. Next is a small capacitor or Schmitt gate at the output to filter the narrow pulse, at the cost of slower edges. Third, clock-latch the next stage so it samples only on the active clock edge. Prefer the redundant term and leave timing alone.
| Symptom | How to judge | Fix |
|---|---|---|
| Output glitch | At input edge only | Confirm hazard |
| K-map touch | Two loops meet at point | Add redundancy |
| False trigger | Wrong interrupt | Add latch |
| Edge slows | Capacitor filter | Accept slower |
| Redundant term | One more AND term | Slight area up |
| Steady ok | Invisible static | Scope the edge |
Control, interrupt and trigger outputs must never glitch. After editing logic, scope the output at the input transition edge to confirm no narrow pulse before handover.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Reliable digital design per GB/T 4728 and IEC 60748. Always check the device datasheet and the product design file for ratings and derating.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.