Uploaded by tamizh5500

CA Tut1

advertisement
Course No: CS F342
Week: #02
Id No:
TUTORIAL 2
Course Title: Computer
Architecture
Name:
1.
A program consists of 4 instruction classes like Arithmetic, Load, Store and
Branch with each class having 500, 150, 100, 250 instructions respectively. This
program is executed on a CPU running at 2GHz clock rate. The Arithmetic, Load,
Store and Branch instruction taking 1, 4, 4, 2 execution cycles respectively.
Compute the following:
a) The average CPI for the program.
b) Total execution time for the program.
c) What fraction (%) of total execution time is taken by each instruction class
2.
Assume that a program takes 1 billion instructions to execute on a processor
running at 2 GHz and 50% of the instructions execute in 3 clock cycles, 30%
execute in 4 clock cycles, and 20% execute in 5 clock cycles. What is the
execution time for the program?
3.
Consider 3 different processors P1, P2, P3 executing the same instruction set. P1,
P2, P3 has clock rate and CPI of (3 GHz, CPI = 1.5), (2.5 GHz, CPI = 1.0) and
(4 GHz, CPI= 2.2) respectively.
a) Which processor has the highest performance expressed in Instructions per
second?
b) If the processor executes a program in 10 seconds, find the no of cycles and
no of instructions executed.
c) For each of the processors, what should be the clock rate, if the execution time
reduced by 30%, but leads to an increase in CPI by 20%.
Download