GATE Computer ScienceHardGATE CS (PYQ pattern)

A cache miss fetches an 8-word block. Sending the address takes 1 cycle, a memory access takes 15 cycles and putting one word on the 1-word bus takes 1 cycle. Design P: one 1-word-wide memory; each word is a separate transaction (address, access, transfer). Design Q: 4 low-order interleaved 1-word banks sharing the 1-word bus; the address is sent once, all banks start together, each bank latches its word in a buffer when its access completes and immediately starts its second access, and buffered words go out one per cycle. What are the miss penalties (P, Q) in cycles?

  1. A. (136, 40)
  2. B. (136, 35)
  3. C. (136, 24)
  4. D. (129, 35)

Correct answer: B. (136, 35)

P: 8 × (1 + 15 + 1) = 136. Q: address in cycle 1, first accesses in cycles 2–16, words 0–3 go out in cycles 17–20; the second accesses run in cycles 17–31 (overlapping those transfers) and words 4–7 go out in cycles 32–35, so 35. Re-sending the address and waiting for the bus first gives 2 × 20 = 40; assuming 8 banks gives 24.

More Computer Organization and Architecture questions

Exams that ask this topic