GATE Computer ScienceHardGATE CS (PYQ pattern)

An 8 × 8 matrix is stored in 8 memory banks. A bank is busy for 6 cycles after an access starts (an access started in cycle t completes at the end of t + 5), and the processor starts at most one access per cycle, in order, from cycle 1, waiting when the bank is busy. With plain row-major storage element (r, c) is in bank c; with skewed storage it is in bank (r + c) mod 8. How many cycles does reading all of column 3 take with plain and with skewed storage?

  1. A. 48 and 13
  2. B. 48 and 48
  3. C. 64 and 13
  4. D. 13 and 48

Correct answer: A. 48 and 13

Plain: all 8 elements of a column sit in bank 3, so accesses start in cycles 1, 7, 13, …, 43 and the last completes at 48. Skewed: column 3 uses banks 3, 4, …, 2 — all different — so one access starts every cycle and the last completes at 8 + 5 = 13. Rows remain conflict-free too (13 cycles).

More Computer Organization and Architecture questions

Exams that ask this topic