You have two processors, one with a three stag e pipeline and one with an eight.
ID: 3884456 • Letter: Y
Question
You have two processors, one with a three stag
e pipeline and one with an eight. The one with
the long pipeline has a clock speed tw
ice as fast as the one with th
e short. In both cases, the last
stage of the pipeline is “execute.”
If the program consists of nothing but a loop adding a number to a running sum (an accumulate
function), which will complete the job faster
? Explain your answer. Assume the loop is non-
infinite and the destination is big eno
ugh to hold the final sum without error.
Explanation / Answer
One with 8 stage pipelines will complete job faster. As it has twice clock speed and 8 stage pipelines, it will complete job faster.
Speedup due to pipelinestages as compared to 3 staged = 2.67 times
And speed up due to clock speed = 2 times.
Hence, It is 5.34 times faster than 3 staged pipeline.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.