MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Analysing combinational logic: a four-step method with a worked example
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (698 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

Analysing combinational logic: a four-step method with a worked example

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.

1. How it works

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.

2. Practice and pitfalls

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.

3. Analysis steps quick table

StepInputOutputTool
1. Truth tableAll input rowsOutput per rowGate-by-gate derivation
2. ExpressionThe 1-rowsSum of mintermsAND-OR form
3. MinimiseRaw expressionMinimal formK-map or algebra
4. Circuit and checkMinimal formSchematicSpot-check rows
Hazard reviewMinimal formGlitch pathsComplementary variables
Hazard fixRisky termsConsensus or clockingExtra circle or D-FF

4. Notes

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.

5. References

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.

6. Cautions

⚠️ Three common pitfalls:
① Minimising without a hazard review:a transition glitch adds phantom counts
② A missing truth-table row:one input combination misbehaves in the field for years
③ K-map circles ignoring the edges:missed wrap-around terms, redundant gates remain

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL