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.
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.
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.
| Target | Wiring | Note |
|---|---|---|
| NOT | tie inputs | invert |
| AND | NAND then NOT | two stages |
| OR | NOT A NOT B then NAND | De Morgan |
| NOR | OR then NOT | multi |
| Universal | all NAND | save stock |
| Care | delay stack | timing |
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.
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.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.