Final Exam — Pattern & Cheat Sheet
CSE 214 · Full marks 30 · 1 hr 30 min · answer all 3 questions · everything is CO3. The paper is astonishingly consistent — the same three questions appear every semester with new numbers.
1. The three-question skeleton
| Q | Module | Topic | What they ask |
|---|---|---|---|
| Q1 | 4 | Arithmetic | (a) devise multiply or divide algorithm + time/space complexity · (b) overflow detection or FP overflow/underflow · (c) IEEE 754 diagram or compute a value |
| Q2 | 5 & 6 | Pipelining | (a) define pipelining / a hazard + example + fix · (b) 5-stage timing: total time · speedup · latency · throughput (or: name stages / draw datapath) |
| Q3 | 7 | Memory & Cache | (a) locality / hierarchy diagram · (b) direct-mapped diagram / total bits · (c) index size from block counts / degrees of associativity |
Each question ≈ 10 marks (10 + 10 + 10 = 30). Master one worked example of each part and you can answer the whole paper. Every part below links to the section that teaches it.
2. Q1 — Arithmetic cheat sheet
IEEE 754 — single: , bias 127; double: , bias 1023.
Steps: decimal → binary → normalize → stored exp = e + bias → pack.
Overflow (add/sub) — result has the wrong sign: (+)+(+)→(−), (−)+(−)→(+), (+)−(−)→(−), (−)−(+)→(+).
Multiply: n steps, each test-LSB→add→shift; product is bits. Time , space . Divide: n+1 steps of subtract/restore/shift; time , space .
Multiply: n steps, each test-LSB→add→shift; product is bits. Time , space . Divide: n+1 steps of subtract/restore/shift; time , space .
Deep dives: IEEE 754 · overflow · multiply · divide.
3. Q2 — Pipelining cheat sheet
Stages: IF · ID · EX · MEM · WB. Pipeline registers: IF/ID, ID/EX, EX/MEM, MEM/WB.
Hazards: structural (duplicate resource) · data (forward, else stall) · control (predict/stall).
Deep dives: timing · hazards · datapath.
4. Q3 — Memory & cache cheat sheet
Address = | tag | index | block offset | byte offset |. byte offset = 2, block offset = , index = , tag = the rest.
Line = block mod lines. A -block cache has associativity configs. Locality: temporal (again soon) + spatial (neighbours soon).
Deep dives: total bits · direct-mapped · locality · associativity.
5. Strategy
- Bank the definitions first. Q1(b), Q2(a), Q3(a) are pure recall — write the overflow table, hazard definition, and locality types from memory for guaranteed marks.
- Show every step in the calculations (Q2b, Q3b) — partial credit is real.
- Draw the diagrams — IEEE format, pipeline staircase, memory pyramid, and the cache address split are quick marks if you've practised them.
- Work all three solved papers here: Summer 2025 · Autumn 2025 · Spring 2024.