Given a logic diagram, where do you start? This page walks the four-step analysis method through a three-person voter, ending with hazards and how to kill them.
The routine: build the truth table (every one of 2^n rows, derived gate by gate), write the sum-of-minterms expression from the ones, minimise with Boolean algebra or a Karnaugh map, then draw the circuit and spot-check rows. Reverse analysis of an existing schematic works the same way - label intermediate node expressions and substitute backwards.
Worked example - a three-input majority voter. Truth table: output 1 for 011, 101, 110, 111. Sum of minterms: Y = ĀBC + AB̄C + ABC̄ + ABC. Karnaugh grouping collapses this to Y = AB + BC + AC - any two yes votes pass - saving one gate and an inverter. Hazard check: expressions where a single input appears both complemented and uncomplemented (as in AB + ĀC) can glitch on transitions; adding the consensus term (Y = AB + ĀC + BC) keeps the logic identical and the glitch gone, a 100pF shunt buys low-speed peace of mind, and clocking the output through a D flip-flop removes hazards entirely. Keep hand-drawn K-maps to four variables; hand larger jobs to synthesis tools.
| Step | Input | Output | Tool |
|---|---|---|---|
| 1. Truth table | All input rows | Output per row | Gate-by-gate derivation |
| 2. Expression | The 1-rows | Sum of minterms | AND-OR form |
| 3. Minimise | Raw expression | Minimal form | K-map or algebra |
| 4. Circuit and check | Minimal form | Schematic | Spot-check rows |
| Hazard review | Minimal form | Glitch paths | Complementary variables |
| Hazard fix | Risky terms | Consensus or clocking | Extra circle or D-FF |
Advice: table first, map second, schematic last - and hunt hazards after every simplification. One redundant gate beats a glitch walking into a counter; hand anything bigger than four variables to HDL synthesis.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Digital IC specification per GB/T 17574 (IEC 60748 series); logic symbols per GB/T 4728. 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.