Physics · Ch 14 — Electronic Devices
Combination of Logic Gates
Combination of Logic Gates
The idea behind universality. Because a NAND gate (Section 9.29) and a NOR gate (Section 9.30) are each, individually, capable of reproducing every one of the other basic gate functions, a real digital circuit of any complexity can be constructed using ONLY NAND gates throughout, or ONLY NOR gates throughout -- never needing a mixture of different gate types at all. This is of genuine practical value: a chip manufacturer needs to design, characterise and mass-produce only a single kind of basic gate, simplifying fabrication considerably, and simply wires many identical copies of it together in different patterns to build every other logic function a circuit might need.
Building a NOT gate from a NAND (or NOR) gate. The simplest combination: tying BOTH inputs of a two-input NAND gate together to the SAME single signal makes the gate see on both inputs at once, so -- exactly the NOT-gate behaviour of Section 9.28. The identical trick works for a NOR gate: tying both inputs together gives as well. In both cases, the gate simply degenerates into a plain inverter when its two inputs are forced to agree.
Building an OR gate from NAND gates alone. Since can be obtained from a single NAND (above), first invert BOTH inputs and separately, using one NAND-as-inverter on each, to obtain and ; then feed these two inverted signals into a THIRD NAND gate. The result is
by De Morgan's rule -- exactly the OR-gate function of Section 9.26, built here from three NAND gates in total (two as inverters, plus the final combining NAND). …
| Gate wanted | Built from NAND gates alone | Built from NOR gates alone |
|---|---|---|
| NOT | 1 NAND, inputs tied together | 1 NOR, inputs tied together |
| OR | 3 NAND (2 as inverters + 1 NAND on the results) | 1 NOR + 1 NOR-inverter (NOR output re-inverted) |