295 views
0 votes
0 votes

Consider 6 stage pipeline (S1 , S2, S3, S4, S5, S6) which allows all the instructions except branch instructions. Processor stops fetching the following instruction after the branch until the target address is available. Target address is available in the S4 stage. Program contain 40% of branch instructions. All the stages are balanced with a 2.3 GHz clock. MIPS rate of the processor is ________ (in 2 decimal places).

1 Answer

3 votes
3 votes
Branch penalty = 3

40% are branch instruction , avg #f stalls created due to branch instruction = 0.4*3 =1.2

avg execution time for a instruction = (1+#f stalls )* CT

= (1+1.2)*1/2.3GHz = 0.956  nsec

on avg, 1 instruction takes ---------------0.956nsec, in 1 sec = 1045.45 MIPS

No related questions found