REVISION AND PRACTICE
Week 4 Quick Revision
On this page 4 headings
Start here All of Week 4 on one page: what each block does, its key formula, the facts that keep coming back as true/false questions, and 10 practice questions.
| Block | Inputs → outputs | Key formula / fact |
|---|---|---|
| Equality comparator | two n-bit numbers → 1 bit | XNOR per bit, then AND all |
| Decoder | Exactly one output is 1. Each output is a minterm | |
| Encoder | 4-to- | |
| Priority encoder | Highest active input wins. | |
| Multiplexer | N data + log₂N select → 1 |
- 2:1 MUX delay = (all 1 ns → 3; NOT 1, AND/OR 2 → 5).
- Decoder delay = (a 3-input AND made of 2-input ANDs counts twice).
- 2:1 MUX counts: AND 1, OR 1, NOT 1, XOR 2, XNOR 2, NAND 2, NOR 2.
- Select lines for an log₂N.
| Mistake | Correct way |
|---|---|
| Adding delays of gates that work side by side | Only add gates in a chain |
| Treating NOT as free in MUX-count questions | 1 MUX (unless the question gives ) |
| Plain encoder with two inputs on | Gives a wrong code; that’s why we need priority encoders |
| Missing a bent wire in a decoder circuit | Trace every wire to see which Dₖ goes into the OR |
| Trusting an option that “looks right” | Put in numbers and test (one past key was wrong!) |
