Home /
Expert Answers /
Computer Science /
q1-consider-two-different-implementations-of-the-same-instruction-set-architecture-there-are-fou-pa704
(Solved):
Q1. Consider two different implementations of the same instruction set architecture. There are fou ...
Q1. Consider two different implementations of the same instruction set architecture. There are four classes of instructions, A, B, C, and D. The clock rate and CPI of each implementation are given in the following tahle (a) [10 points] Given a program with \( 10^{6} \) instructions divided into classes as follows: \( 10 \% \) class \( \mathrm{A}, 20 \% \) class \( \mathrm{B}, 50 \% \) class \( \mathrm{C} \), and \( 20 \% \) class \( \mathrm{D} \), which implementation is faster? (b) [5 points] What is the global CPI for each implementation? (c) [5 points] Find the clock cycles required in both cases. The following table shows the number of instructions for a program.
Solution: Given, =>Two different implementations of same instruction set architecture. Processor Class A Class B Class C Class D P1 3 2 1 4 P2 2 2 2 2 =>Total instruction count = 1*10^5 =>Clock rate of P1 = 3 GHz, clock rate of P2 = 2.5 GHz =>Class d