GATE Computer ScienceHardGATE CS (PYQ pattern)
Design X runs at 2.0 GHz and, with no branch prediction, charges 2 cycles for each taken branch. Design Y runs at 1.8 GHz and charges 0 for a correctly predicted branch and 4 for a mispredicted one; its predictor is right for 80% of all branches. 15% of instructions are branches and 70% of branches are taken. Both machines also lose 0.15 cycles per instruction to other stalls on top of an ideal CPI of 1. Which is faster, and by what factor (slower time ÷ faster time)?
- A. Y, by a factor of 1.038
- B. X, by a factor of 1.071
- C. Y, by a factor of 1.071
- D. X, by a factor of 1.038
Correct answer: D. X, by a factor of 1.038
X: CPI = 1.15 + 0.15·0.7·2 = 1.36 at 2.0 GHz = 0.680 ns/instr. Y: CPI = 1.15 + 0.15·0.2·4 = 1.27 at 1.8 GHz = 0.7056 ns/instr. The lower CPI of Y is more than cancelled by its slower clock, so X wins by 1.038.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- An 8-bit value is stored with an even-parity Hamming code in 12 positions 1..12 (check bits at positions 1, 2, 4, 8). The word read back…
- A microprogrammed control unit has 2048 microinstructions of 100 bits each, but only 300 of them are distinct. Using a two-level…
- A DRAM has 8192 rows, each to be refreshed once every 64 ms, and refreshing one row blocks the chip for 50 ns. Under burst refresh all…
- Which of the following statements about caches are correct? I. A dirty bit lets a write-back cache avoid writing unmodified blocks back to…
- A cache has hit time 2 ns, hit ratio 0.9 and the memory access time is 60 ns. Compare the access time in the hierarchical organisation…
- A loop executes for (i = 0; i < n; i++) sum += a[i]; with a large array a. Which memory access pattern shows strong spatial locality but…