Remember Me Forgot your Password?

Forum: Electrical & Computer Engineering :: Computer Organization :: CPU Performance  New Topic
Problem #8 Reply
Author Message
nak31 Problem #8 Sat 3 Oct 2009 5:09:00 PM
Student
Joined Tues 31 Mar 2009
Posts 511

Problem 8:

 Through the use of a set of benchmark programs a designer discovers that a two-instruction sequence (shift followed by add) is used many times in these programs. In fact, the two instruction sequence accounts for 20% of the total instructions executed. The designer decides to redesign the processor to include a single shiftadd instruction that can be used in place of all the old two instruction sequences of shift followed by add. However, the new processor has a lower maximum clock frequency: freqold/freqnew = 1.1.

1. Which processor (old or new) has higher performance and by how much?

Make reasonable assumptions where necessary.


Student Rating4/5
nak31 Sat 3 Oct 2009 5:09:00 PM
Student
Joined Tues 31 Mar 2009
Posts 511

Solution:

Execution time = seconds/cycles * CPI * number of instructions

Old time = 1/ (old freq) * CPI * previous number of instructions

New time = 1/ (new freq) * CPI * new number of instructions

New freq = old freq/1.1

20% of instructions were reduced by half so that is 10%, so the new program has 90% of the original instructions.

New time = 1.1/ (old freq) * CPI * new number of instructions * 0.9

Old/new = 1/1.1/0.9 = 1/0.99 = 1.0101 so the old time is slower and the new system is faster.


Student Rating4/5
1
© Copyright SolveMyProblem.Net 2010