Anthony Lion wrote:RHJunior wrote:If I recall correctly, all the other gates can be built from AND, OR, and NOT gates.
A small correction:
ALL other gates can be made just from NAND gates.
True, but no one actually does it that way as a general design method.

The propagation delays add up too much, compared to a "dedicated" logic gate -- look at the actual transistor circuitry inside a 74xx-series IC sometime.

(You might have to find an old 70's or 80's-era databook to see them, though; I don't know if they actually put the transistor-circuit schematics in databooks anymore.)
Normally, this is only done when you find yourself in a situation where you have a couple of leftover NANDs in an IC, you only need
one gate of some other type to finish the design, and you don't want to waste board space with another chip just to get that one gate. (And when the circuit isn't time-critical and you don't care about the propagation delays.

)
The only other time you see this kind of thing done is in programmable logic arrays... and there you usually have a compiler to convert your circuit design into NANDs for you.
Memory can be constructed of latches, and a simple one can be made out of four NAND gates.
Actually, an even simpler latch can be made out of only two NANDs -- you just have to be careful not to let both the Reset and Set inputs go to logic-0 simultaneously.
