Question: Given an instruction set whose instructions can be divided into 4 classes according to their clock cycles per instruction ( CPI ) . Denote these

Given an instruction set whose instructions can be divided into 4 classes according to their clock
cycles per instruction (CPI). Denote these 4 classes as class A, B, C, and D. Consider two differen
implementations of the same instruction set architecture.
Implementation P1 has a clock rate of 2.5 GHz and CPIs of 1,2,3, and 3.
Implementation P2 has a clock rate of 3 GHz and CPIs of 2,2,2, and 2.
Answer the following questions.
(a) Given a program with a dynamic instruction count of 1.0E6 instructions that are divided
into classes as follows: 10% class A,20% class B,50% class C, and 20% class D, which
implementation is faster?
(b) What is the global CPI for each implementation?
(c) Find the clock cycles required in both implementations.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!