199k views
2 votes
Two processors A and B have the following parameters: clockRate(a) = 1GHz, clockRate(b) = 2.5GHz CPI(B) = 3.0 The two processors execute the same task with the same number of instructions. Processor B executes this task with 20% higher latency than Processor.

A. What is the CPI of Processor A?

User Lesderid
by
7.7k points

1 Answer

5 votes

Final answer:

The CPI of Processor A is 3

Step-by-step explanation:

The CPI (Clock Cycles Per Instruction) of Processor A can be calculated using the formula:



CPI(A) = Latency(B) x Clock Rate(B) / Clock Rate(A)



Given that Processor B has a 20% higher latency than Processor A, the latency of Processor B is calculated as follows:



Latency(B) = Latency(A) + (20% x Latency(A)) = 1 + (20% x 1) = 1.2



Substituting the given values, the CPI of Processor A can be calculated as:



CPI(A) = 1.2 x 2.5GHz / 1GHz = 3

User Neigaard
by
7.5k points