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?
- A. (136, 40)
- B. (136, 35)
- C. (136, 24)
- 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.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A 1 GHz machine has instruction classes A, B, C with CPI 1, 2 and 3. For the same program, compiler X produces 5×10⁹ class-A, 1×10⁹…
- A non-pipelined datapath takes 100 + 120 + 90 + 150 + 110 ps per instruction. It is cut into those 5 stages with a 10 ps latch after each…
- A device streams 2 MB/s (1 MB = 10⁶ B) into memory on a 1.5 GHz CPU. With interrupt-driven I/O every 4-byte word costs 600 CPU cycles…
- A loop reads 128 words at addresses 0, 64, 128, …, 8128 and repeats this whole sweep three times. The cache is 4 KB, 2-way set-associative…
- A 64 MB byte-addressable memory with a 64-bit data bus (8 bytes per bus word) is built from 4M × 4 DRAM chips. How many chips are needed…
- Every memory reference first looks up a TLB (2 ns, hit ratio 96%). On a TLB miss the hardware walks a 3-level page table, each level…