GATE Computer ScienceHardGATE CSE
A 5-stage pipeline has ideal CPI 1. 20% of instructions are branches, 60% of which are taken; branches are predicted not-taken and a taken branch costs 3 stall cycles. 15% of instructions are loads and 40% of loads are immediately followed by a dependent instruction, costing 1 stall cycle. The average CPI is
- A. 1.75
- B. 1.51
- C. 1.42
- D. 1.33
Correct answer: C. 1.42
CPI = 1 + 0.2·0.6·3 + 0.15·0.4·1 = 1 + 0.36 + 0.06 = 1.42.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A 32-bit instruction format holds two register specifiers (the machine has 48 registers) and a 12-bit immediate; all remaining bits form…
- A SECDED (single-error-correct, double-error-detect) extended Hamming code protects 256 data bits. What is the total number of bits stored…
- A virtually indexed, physically tagged 256 KB cache is 8-way set associative with 64-byte lines. The page size is 4 KB. Into how many page…
- A program spends 40% of its time in floating-point operations, 30% in memory operations and 30% elsewhere. FP operations are made 5 times…
- A direct-mapped cache has 8 lines and block-number mapping line = block mod 8. The following block numbers are accessed in order: 0, 1, 0…
- A 2-way set-associative cache with 4 sets uses LRU replacement and set = block mod 4. Blocks accessed in order: 1, 5, 9, 2, 6, 1, 5, 3, 7…