MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Building other gates from NAND only
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (600 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)(每月更新中)

Building other gates from NAND only

NAND is a universal gate; on its own it builds NOT, AND, OR and any logic. This page shows the concrete wiring for each basic gate from NAND.

1. How it works

A NOT ties the two NAND inputs together as one, giving inversion. An AND is a NAND followed by a NAND used as an inverter. An OR, by De Morgan, A plus B equals not (not A and not B), so invert A and B each with a NAND then NAND the two results. Thus NOT, AND and OR are all there and any combinational logic follows, which is the value of a universal gate.

2. Practice and pitfalls

To implement some logic with NAND, first write the target as a sum of products, use tied NAND for each NOT, NAND for each AND, and turn the top OR into NAND via De Morgan. Count and optimize gates. On site if only NAND chips like 7400 are around, use them for every gate and save stock. Each inverter stage adds delay, so long chains need timing care.

3. NAND builds gates

TargetWiringNote
NOTtie inputsinvert
ANDNAND then NOTtwo stages
ORNOT A NOT B then NANDDe Morgan
NOROR then NOTmulti
Universalall NANDsave stock
Caredelay stacktiming

4. Notes

Tie NAND inputs for NOT, NAND plus NOT for AND, and invert both then NAND for OR. Pure NAND builds any logic and saves stock, but each inverter adds delay, tie unused inputs high and watch fan out and contact.

5. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Universal gate design 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.

6. Cautions

⚠️ Three common pitfalls:
① Using NAND as AND forgets inversion and flips logic.
② Tying the inverter wrong leaves one pin and it stays two input.
③ Uncounted multi stage delay causes race in sequential circuits.

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