retagged by
2,396 views

3 Answers

Best answer
6 votes
6 votes

Here 3 stall cycles is involved which is shown below :

selected by
11 votes
11 votes
  • MAX_stage_delay = $11+1$ ns = $12$ ns
  • Clock cycles time in the pipeline will be 12 ns

5 stage pipeline

pipeline diagram

  • Total Time needed = $13*12 = 156$ ns
6 votes
6 votes

we have I1->I2-> I3->I7-> I8->I9 total instrustions to execute.
n= no of instruction=6
no of stages =k=5
delay=max cycle time=tp=11+1=12 ns
branch panalty =4-1=3 cycle
total time to execute = time w/o stall +branch panalty overhead 
                               =(k+n-1)*tp+ 3*tp
                                = (5+6-1)*tp+3*tp
                                 =13 * tp =13*12=156 ns

Related questions

0 votes
0 votes
1 answer
2