Device - Logic Gate (Nand, And, Or, Xor, ...)
1 - About
A Logic Gate is a device that has two inputs and one output. The only input it accepts is “on” or “off”, and the output is the same, “on” or “off”. You might see the relation to binary.
A logic gates output is dependent on its input.
2 - Type
2.1 - NAND
When both of the NAND gates inputs are on, the output is off. Otherwise, the output is on.
2.2 - And, Or, Xor
See Simple CPU