in CO and Architecture
1,370 views
3 votes
3 votes
7.14  A pipeline processor uses the delayed branch technique. You are asked to recommend one of the two possibilities for the design of this processor. In the first possibility, the processor has a four stage pipeline and one delay slot, and in second possibility, it has six stage pipeline with two delay slot. compare the performance of these two alternatives, taking only the branch penalty into account. Assume that 20 percent instruction are branch instruction and that an optimizing compiler has an 80 percent success rate in filling the single delay slot. For the second alternative, the compiler is able to fill the second slot 25 percent of the time.
in CO and Architecture
by
1.4k views

4 Comments

we assume that number of instruction are infinite so can we say system with less delay slot will always give better performance irrespective of stages in pipeline ?  @joshi_nitish

0
0
with all the other constraints remaining constant(optimizing compiler efficiency, percentage of branch instrctns etc etc), the system with less delay slot will give less CPI and hence more performance irrespective of no. of stages.
3
3

For four stage pipeline,  Seff = 1 + 0.2 (0.8*1 + 0.2 * 2) = 1.24

For six stage pipeline,  Seff = 1 + (0.2) (0.8 * 2 + 0.8 * 0.25 * 1) = 1.36

 

Four stage pipeline is faster than Six stage pipeline.

–1
–1

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
3