When a signal reaches a gate through different path lengths it arrives at different times, making a glitch called a race hazard. This page covers cause, recognition and removal.
Every gate has propagation delay of a few to tens of ns, so in combinational logic the same signal on different path lengths arrives at a gate input at different times, briefly creating an unwanted intermediate state; that is a race. If that state is amplified into an output glitch, it is a hazard. For example A reaching an AND through a long AND and a short NOT arrives first on one side, producing a narrow pulse.
Algebraically a hazard appears when complementary terms change together; on a Karnaugh map it shows as two touching but unmerged loops, and the touch point is the risk. The common static hazard is an input change where output should stay put yet emits a narrow glitch. On site a scope shows the narrow spike, often near clock or enable edges, occasionally false triggering a later flip flop.
| Concept | Cause | Cure |
|---|---|---|
| Gate delay | propagation | inherent |
| Race | path skew | arrive diff |
| Hazard | glitch out | scope it |
| Static | should stay | narrow pulse |
| Recognize | K map touch | see loops |
| Remove | redundant Schmitt | mask |
Gate delay makes same signal arrive at different times (race), amplified to a glitch is hazard, predictable by touching loops on a Karnaugh map. Remove with redundant terms, Schmitt shaping or a strobe that masks the glitch window; synchronize async signals to avoid metastability.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Timing and hazard per GB/T 4728; control to GB/T 5226.1 and IEC 60204-1. 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.