NAND and NOR include inversion, and De Morgan lets you convert between them. This page shows the equivalence and how to build all logic from one gate type.
De Morgan says not (A and B) equals not A or not B, and not (A or B) equals not A and not B. So a two input NAND Y equals not (A and B) equals not A or not B, realizable with NOR plus inversion; a NOR equals not A and not B, realizable with NAND plus inversion. Thus only NAND or only NOR builds any logic, handy for parts normalization.
With all NAND, tie the inputs to make an inverter, chain inverters for AND, and invert inputs for OR, giving AND OR NOT. The same works all NOR. These are universal gates. For repair, a spare NAND can stand in for a missing type, but watch the added delay in long chains and worse race hazards.
| From | NAND | NOR |
|---|---|---|
| NOT | NAND tied | NOR tied |
| AND | NAND then NOT | two NOR |
| OR | NOT then NAND | NOR then NOT |
| De Morgan | not AB = notA+notB | not(A+B)=notA notB |
| Universal | all NAND | all NOR |
| Care | delay stack | speed diff |
NAND and NOR convert by De Morgan, and all NAND or all NOR builds any logic (universal gates). Expand and simplify before redrawing, watch stacked delay and unused inputs, and avoid mixing TTL speeds that break timing.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Logic equivalence per GB/T 4728 symbols; design 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.