Question: A processor running at 1 . 8 GHz executes a program with the following instruction mix: - 5 0 % Integer ( A
A processor running at GHz executes a program with the following instruction mix:
Integer A L UC P I
Floating point CPI
Load tore CPI
Control flow CP
The program needs to execute million instructions.
Calculate the following and make sure if entering decimals that they are rounded to two decimal places:
The average CPI
percentages x CPI
Total execution time in milliseconds
ms instructions times CPI x clock period
If floating point CPI is improved to what percentage improvement in execution time would we achieve?
Important Note About Units in CPU Calculations
Before solving CPU performance problems, it's crucial to understand how to handle units properly:
When given a processor frequency in GHz convert it to a clock period in nanoseconds ns :
Clock Period Frequency
Example: For mathrmGHzrightarrow mathrmGHzmathrm~ns
This conversion is important because execution time calculations multiply clock period times CPI times instruction count
Using GHz would give incorrect results due to the scale of the numbers involved
When reporting final answers follow these guidelines:
Use nanoseconds ns for calculations to maintain precision
For innal answers:
Use microseconds mu mathrms if the result is between ns and ns
Use milliseconds ms if the result is ns or more
Keep nanoseconds if the result is less than ns
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
