retagged by
322 views
3 votes
3 votes

Consider a five-stage pipeline with ideal CPI. Assume that $25\%$ of the instructions executed are branch instructions out of which $70\%$ are taken branches. The pipeline architecture is such that there is no penalty for a non-taken branch whereas every taken branch incurs on average a penalty of $1$ cycle. What will be the effective pipeline speedup?

  1. $4.44$
  2. $4.59$
  3. $4.25$
  4. $4.66$
retagged by

1 Answer

Best answer
2 votes
2 votes
Speedup $=\dfrac{\text{Depth}}{\text{Ideal CPI}+\text{Overhead}} = \dfrac{5}{1+0.125} = 4.44$
    
$=\dfrac{\text{Depth}}{\text{Ideal CPI}+\text{Taken Branch instruction %}\times \text{Branch penalty}} = \dfrac{5}{1+0.175 \times 1} =\dfrac{5}{1.175}= 4.255.$
selected by
Answer: