Electronic – OR gate from one AND, three NOT

digital-logic

I'm just starting with digital-logic but I now face a little problem: I learned that AND, OR, NOT were basic gates and that one basic gate could not be made from a combination of two others. How comes that this combination:

enter image description here

produces an OR truth table from only AND and NOT gates?

Best Answer

Whoever told you that was simply wrong. In fact, many logic families use just one kind of gate, especially in the early days. RTL logic families were basically all NOR gates, and DTL and TTL families are basically NAND gates. In either case, you can think of NOT as a single-input gate.

You can build any logic function at all from just NOR gates or just NAND gates. Entire computers have been built this way, including the earlier Cray supercomputers.

And don't forget that !(A + B) == !A & !B and that !(A & B) == !A + !B. Take the first equation and negate both sides, and you end up with your example: A + B == !(!A & !B).