REVISION AND PRACTICE
Week 2 — Quick Revision
On this page 3 headings
Start here Week 2 on one page: from a problem in words to a Boolean formula.
- First write a functional specification (what output for each input) and a timing specification (how fast).
- Combinational logic has no memory; sequential logic remembers (from Week 7).
- A truth table has 2ⁿ rows. It gets huge fast, so we use Boolean algebra.
- Gates: NOT (flip), AND (all 1), OR (any 1), NAND, NOR, XOR (different / odd number of 1s), XNOR (same).
- Precedence: NOT → AND → OR.
- Laws come in dual pairs (swap + ↔︎ ·, 0 ↔︎ 1). Shortcuts: , , .
- De Morgan: and . with flipped inputs; with flipped inputs.
- SOP: for each row with , write a minterm (1 → letter, 0 → barred letter) and OR them. Short form .
| Question | Method |
|---|---|
| Probability | (rows with ) ÷ 2ⁿ |
| When is f always 1? | list the minterms in binary, find the pattern, test every option |
| How many minterms for “exactly k of n”? | C(n, k) |
| Fill in the missing gates | write Y with GT1 and GT2, test options with a truth table |
| Trace a circuit | write every gate’s output in order |
