AND Gates#
Definition: AND Gate
An \(n\)-input AND gate is a logic gate which computes a conjunction \(\mathop{\mathrm{AND}}: \{0,1\}^n \to \{0, 1\}\).
Notation
The following symbols are used for AND gates:
Here is the truth table for this gate when \(n = 2\):
| \(A\) | \(B\) | \(\mathop{\operatorname{AND}}(A, B)\) |
|---|---|---|
| \(0\) | \(0\) | \(0\) |
| \(0\) | \(1\) | \(0\) |
| \(1\) | \(0\) | \(0\) |
| \(1\) | \(1\) | \(1\) |
CMOS Implementation#
Algorithm: AND Gate via CMOS
An AND gate with \(n\) inputs is implemented via CMOS as follows:
- Create a top layer of \(n\) PMOS transistors in parallel.
- Connect the source of each PMOS to the supply \(V_{\text{DD}}\).
- Connect the gate of the \(i\)-th PMOS to the \(i\)-th input.
- Create a bottom layer of \(n\) NMOS transistors in series.
- Connect the source of the bottom NMOS to ground.
- Connect the gate of the \(i\)-th NMOS to the \(i\)-th input.