GATE Computer ScienceHardGATE CS (PYQ pattern)

A memory has 8 low-order interleaved banks (bank = address mod 8). A bank is busy for 6 cycles after starting an access; the processor can issue one access per cycle to a free bank and stalls in order if the target bank is busy. How many cycles are needed to complete 64 accesses to addresses 0, 2, 4, … (stride 2)?

  1. A. 384
  2. B. 99
  3. C. 69
  4. D. 107

Correct answer: B. 99

Simulate: the bank of access i is (i·2) mod 8, so 4 of the 8 banks are used. That is fewer banks than the busy time, so the banks limit throughput. Result 99 cycles.

More Computer Organization and Architecture questions

Exams that ask this topic