2,351 views
0 0 votes
In a pipeline the maximum ideal speed-up is 5. Let the percentage of unconditional branches in a set of typical program be 5% and that of conditional branches be 10%. If 70% of the conditional branches are taken, calculate % loss of speed-up due to branch instructions.

It is very difficult to understand this question and solve it. Please help.

1 Answer

0 0 votes

In Ideal Case, Speed Up Factor = no. of Stages

Here Speed Up Factor = 5 , So no. of Stages = 5

So, Branch penalty = 4

Avg. no. of stalls = (frequency of unconditional branch instruction + frequency of conditional branch instruction ) * branch penalty

Avg. no. of stalls = ( 0.05 + 0.1*0.7 ) * 4

Avg. No. of Stalls = 0.48

Avg. CPI = 1+0.48 = 1.48

new Speed Up Factor = no. of stages / avg. CPI …...in ideal case

new Speed Up Factor = 5/1.48 = 3.378

% LOSS = ((Old Speed Up – New Speed UP) / Old Speed Up)* 100

% LOSS = (( 5 – 3.378 ) / 5) * 100

%LOSS = (1.622 / 5 )* 100 = 32.44%

ANSWER = 32.44% loss

Position:
Show:

Related questions

0 0 votes
2 2 answers
2.1k
2.1k views
Harshit Bajpai asked Jan 14, 2019
2,096 views
A hypothetical 5 stage pipeline processor is designed in which branch is predicted at 3rd stage and each stage takes 1 cycle to compute its tasks. If f is the probability...
0 0 votes
1 1 answer
940
940 views
Gaurangi Katiyar asked Dec 11, 2018
940 views
Consider a 5 stage pipeline that allows overlapping of all instructions except branch instructions. The target of branch instructions is not available until the branch in...
1 1 vote
0 0 answers
2.2k
2.2k views
Cpt.Nemo143 asked Nov 17, 2018
2,186 views
Given a non-pipelined architecture running at 1GHz, that takes 5 cycles to finish an instruction. You want to make it pipelined with 5 stages. The increase in hardware fo...
79 79 votes
11 answers 11 answers
33.8k
33.8k views
go_editor asked Sep 28, 2014
33,823 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...