• retagged by
4,956 views
0 0 votes
Consider execution of 100 instructions on a 5 stage pipeline. let P be the probability of an instruction being branch. The value of P such that speed up is atleast 4 is_____(assume each stage takes 1 cycle to perform its task and branch is predicted on forth stage of the pipeline)

1 Answer

0 0 votes
Taking some assumptions  , let the 5 stages be IF, D, EX, M ,WB. Since in the case of pipeline it is given that branch will not be known till M, so there will be  3 stall cycles. Branch penalty=3(for branch instructions).

                                                IF  |  ID | E | M | WB

                                                        X |  X | X |  IF |......    so, 3 stall cycles will be there  in case of branch instruction.

Avg CPI(pipelined)= 1(in the ideal case)  +  Branch penalty *# of branch instructions=1+3*P (let P will be the number of branches

instructions)=1+3p.

       In the case of non-pipelined CPI=5(since there will be no overlapping).

Given speedup>=4  

=> 5/1+3p>=4

=>p<=0.084
Position:
Show:

Related questions

4 4 votes
0 0 answers
697
697 views
jayadev asked Feb 3, 2022
697 views
Consider a 5—stage pipeline processor used to execute 200 number of instructions and among those 100 instructions cause 3 stall cycles each. What is the total cycles requ...
79 79 votes
11 answers 11 answers
33.8k
33.8k views
go_editor asked Sep 28, 2014
33,762 views
Consider a $6$-stage instruction pipeline, where all stages are perfectly balanced. Assume that there is no cycle-time overhead of pipelining. When an application is exec...
197 197 votes
9 answers 9 answers
78.4k
78.4k views
Kathleen asked Sep 22, 2014
78,371 views
A $5$ stage pipelined CPU has the following sequence of stages:IF – instruction fetch from instruction memoryRD – Instruction decode and register readEX – Execute: ALU op...
74 74 votes
4 answers 4 answers
35.7k
35.7k views
Kathleen asked Sep 12, 2014
35,690 views
Which of the following are NOT true in a pipelined processor?Bypassing can handle all RAW hazardsRegister renaming can eliminate all register carried WAR hazardsControl h...