GATE / CS ARCHIVE

SIMILAR QUESTIONS / COMPUTER ORGANIZATION & ARCHITECTURE

Count cache-block transfers over finite-width buses

3 questions solved the same way, newest first. Back to Computer Organization & Architecture

How these are solved

Count transfer chunks from block and bus/word widths and add only serial latency phases explicitly specified. The 2010 shared diagram distinguishes one-level refill from sequential memory-to-L2-to-L1 refill and source/destination access costs.

2 marks · NAT
Report issue

Bandwidth with block-transfer overhead

Cache Memory

Question 45, GATE 2019: A cache block contains 8 words of 4 bytes each. With a 60 MHz memory clock, serial miss service uses 1 cycle to accept the address, 3 cycles to fetch the block, then transmits 1 word per cycle. Find maximum bandwidth as a coefficient of 10^6 bytes/s.
Tap to enlarge
Answer & solution

Official answer: 160

1. Compute useful bytes per completed block: 8 words×4 bytes/word=32 bytes. Clock frequency is 60×106 cycles per second.
2. The description gives successive stages, so their times add. Address acceptance takes 1 cycle, block fetching takes 3, and sending eight words at one per cycle takes 8. Total service time is 1+3+8=12 cycles per block.
3. The completed-block rate is (60×106)/12=5×106 blocks/s. Multiplying by 32 bytes/block gives 160×106 bytes/s.
4. Thus the requested numeric coefficient is 160. Equivalently, one block takes 12/(60×106)=200 ns, and 32 bytes/200 ns gives the same bandwidth.
5. Counting only the eight transfer cycles would incorrectly ignore the four-cycle overhead. Conversely, interpreting the three fetch cycles as three per word would contradict the stated fetch of all eight words. This calculation assumes the sequential per-block controller service described; overlapping different block transactions would require a separate pipelining model not specified here.

Original paper, page 14 · Answer key

2 marks · MCQ
Report issue

L2-to-L1 block-transfer time

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

2 marks · MCQ
Report issue

Main-memory refill through two cache levels

Cache Memory

Question 49, 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 misses in both caches, a block is first transferred from main memory to L2, then a block from L2 to L1. What is the total transfer time?
Options: (A) 222 ns; (B) 888 ns; (C) 902 ns; (D) 968 ns.
Question 49, 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 misses in both caches, a block is first transferred from main memory to L2, then a block from L2 to L1. What is the total transfer time?
Options: (A) 222 ns; (B) 888 ns; (C) 902 ns; (D) 968 ns.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

The L2 block has 16 words and the memory–L2 bus is 4 words wide, so filling it requires four transfers. Under the same non-overlapped read/write model as CS48, each costs 200 ns to read memory plus 20 ns to write L2: 4(200+20)=880 ns. The question says first fill L2, then transfer one 4-word block from L2 into L1, costing 20+2=22 ns. Total 902 ns, option C. No burst/pipelining/critical-word-first mechanism is specified; other timing models would require extra assumptions and are not used.

Keep the destination line size separate at each level: filling L2 moves sixteen words, hence four memory-bus transfers; filling L1 moves four words, hence one L2-bus transfer. The total is therefore 4×220+1×22, not four times the entire two-level path. The question explicitly orders the two fills, so their durations add in the model used.

Original paper, page 12