Re:The NAND gate. One gate to rule them all
by KineticLensman on Tuesday October 05, 2021 @07:17AM
(#28757885)
> I would add that the NOR gate is also functionally complete.
Yes, one good example being the Apollo Guidance Computer [0], which was constructed wholly using NOR gates.
[0] https://en.wikipedia.org/wiki/Apollo_Guidance_Computer#Desig...
Re:The NAND gate. One gate to rule them all
by Woberto on Tuesday October 05, 2021 @01:29PM
(#28762605)
And thus why the excellent course "NAND to Tetris"[1] is named as such.
Doesn't the NOR gate take more transistors to build though? IIRC, the NAND gate can be built with only two transistors while you need more for NOR.
Re:The NAND gate. One gate to rule them all
by kafufle on Tuesday October 05, 2021 @07:19AM
(#28757900)
If you are building a CMOS 2-input gate then both NAND and NOR use 4 transistors. (2 NMOS and 2 PMOS each)
The reason NAND is preferred is that NMOS transistors have roughly half the resistance of a PMOS transistor of the same size. This means that to get a gate with pull-up and pull-down networks of equal strength (which is usually desirable), the NOR gate needs very large PMOS transistors and tiny NMOS while the NAND gate has all of its' transistors equally sized and relatively small.
The result is that NAND gates are smaller in size and slightly quicker than an equivalent NOR gate.
Re:The NAND gate. One gate to rule them all
by mnw21cam on Tuesday October 05, 2021 @06:57AM
(#28757751)
In standard NMOS or PMOS circuitry, both a NAND gate and a NOR gate require two transistors each (and a resistor, which is usually actually a transistor as well). CMOS requires four transistors for both a NAND gate or a NOR gate. It's only in TTL logic, where you can have a single transistor with multiple emitters that a NAND gate uses fewer transistors.
I would add that the NOR gate is also functionally complete.