Spring 2024 Final β€” Solved

Full marks 30. Division, the multiply hardware diagram, FP in MIPS, pipelining, and the memory hierarchy.

Q1 β€” Arithmetic CLO3

1abig(a) Devise the division algorithm to divide an integer by an integer using n-bit numbers. Estimate time and space complexity. [3]
1bbig(b) Diagram the hardware of the first multiplication algorithm (n-bit). [3]
1csmall(c) Explain the floating-point representation in MIPS in detail. [4]

Q2 β€” Pipelining CLO3

2abig(a) Explain pipelining and hazard. Explain the structural hazard with an example, then devise the solutions. [5]
2bbig(b) Divide the stages in MIPS pipelined execution. Diagram the pipelined datapath with the stages identified. [5]

Q3 β€” Memory & Cache CLO3

3abig(a) Explain the memory hierarchy along with a diagram. [3]
3bsmall(b) Diagram a direct-mapped cache with 64K 1-word blocks, 32-bit address. [3]
3cbig(c) Total number of memory units (bits) for a direct-mapped cache with 2 MB of data and 8-word block size, 32-bit address. [4]