1. Combining gates
Try firstA and B go into an AND gate; its output goes into a NOT gate. What is the output for A = 1, B = 1, and what is this circuit called?
Check your answer
1 AND 1 = 1, NOT 1 = 0. It is NAND (not both).
Wire one gate's output into another gate's input and you get a circuit.
- Work it out gate by gate: each gate uses only what arrives on its own wires.
- Do that for every row of switches to fill the truth table.
- Going the other way, you can build a circuit for any truth table from AND, OR and NOT, or from NAND gates alone.
XOR (exactly one on) is OR, AND and NOT combined.



