An AND gate outputs 1 only when all of its inputs are 1. If even one input is 0, the output is 0. For two inputs it is written (or A·B) and read "A and B".
A good mental picture is two switches wired one after the other in front of a lamp. Current reaches the lamp only if both switches are closed. Call closed 1 and lit 1, and you have AND's truth table: a single 1, in row 11.
Writing AND like multiplication is no accident. For 0s and 1s the two agree: 1 · 1 = 1, and anything times 0 is 0.
The symbol has a flat back, where the inputs enter, and a round front, like a capital D.
A handy way to think about AND is as a gate in the everyday sense. If one input is a control signal, then:
- a control of 1 lets the other input through unchanged: = A.
- a control of 0 blocks it and forces 0: = 0.
That is how enable signals work in decoders and multiplexers. AND gates also form the first level of every sum of products circuit, and with more inputs they become multi-input gates.