GATE / CS ARCHIVE

GATE CSE 2010 / QUESTION 48

L2-to-L1 block-transfer time

Computer Organization & Architecture · Cache Memory · Full GATE CSE 2010 paper

GATE 2010, Q48 2 marks · MCQ
Report issue

Cache Memory

Question 48, GATE 2010: An L1 cache connects to L2, which connects to main memory. Both connecting data buses are four words wide. L1 blocks contain four words; L2 blocks contain sixteen words. Access times are 2 ns for L1, 20 ns for L2 and 200 ns for main memory. On an L1 miss and L2 hit, one block is transferred from L2 to L1. What is the transfer time?
Options: (A) 2 ns; (B) 20 ns; (C) 22 ns; (D) 88 ns.
Question 48, GATE 2010: An L1 cache connects to L2, which connects to main memory. Both connecting data buses are four words wide. L1 blocks contain four words; L2 blocks contain sixteen words. Access times are 2 ns for L1, 20 ns for L2 and 200 ns for main memory. On an L1 miss and L2 hit, one block is transferred from L2 to L1. What is the transfer time?
Options: (A) 2 ns; (B) 20 ns; (C) 22 ns; (D) 88 ns.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

The L1 block is 4 words and the L2–L1 bus transfers 4 words, so one bus-width transfer suffices. Under the serial source-read plus destination-write model implicit in the offered transfer-time choices, reading L2 takes 20 ns and writing L1 takes 2 ns, giving 22 ns, C. This is the block movement time, not an extra sum including a previous failed lookup. Bus width alone does not specify pipelining, write overlap or timing semantics; the result relies on this conventional serialized model.

Do not use the entire 16-word L2 block as the transfer size here: the destination L1 line needs only four words, exactly one bus width. Under the stated serialized interpretation, 20 ns pays for the source access and 2 ns for the destination write. The 88 ns distractor is four times 22 ns and incorrectly moves four L1-sized pieces.

Original paper, page 12