Autumn 2025 Final β€” Solved

Full marks 30. Division, floating point, the pipeline-stage question, and the cache-bits calculation.

Q1 β€” Arithmetic CO3

1abig(a) Devise the division algorithm to divide an n-bit integer by another n-bit integer. Estimate time and space complexity. [4]
1bsmall(b) Explain overflow and underflow in floating-point arithmetic. [3]
1cbig(c) Calculate the representation of βˆ’6.375 in IEEE 754 single precision. [3]

Q2 β€” Pipelining CO3

2abig(a) Define pipelining and pipeline rate. Name the MIPS-32 pipeline stages and describe each. [4]
2bbig(b) 5-stage pipeline, each stage 2 ns except MEM = 3 ns, 2000 instructions: (i) total pipelined time (ii) speedup (iii) single-instruction latency both ways (iv) throughput both ways. [6]

Q3 β€” Memory & Cache CO3

3asmall(a) Explain the principle of locality for memory access. [3]
3bbig(b) Total bits for a direct-mapped cache with 64 KB of data and 8-word (32-byte) blocks, 32-bit address? [4]
3csmall(c) A direct-mapped cache has m blocks and memory has n blocks. Find the index size. [3]