110k views
0 votes
1. Consider two different implementations, P1 and P2, of the same instruction set. There are three types of instructions, labeled A-type, B-type, and C-type. P1 has a clock rate of 2GHz, and P2 has a clock rate of 2.2GHz. The average number of cycles for each type of instruction, as well as their frequencies, are given below. Calculate the average CPI for each machine, M1 and M2.

Instr. Type M1 Cycles per Instr. Class M2 Cycles per Instr. Class Frequency
A 1 2 60%
B 4 3 30%
C 4 4 10%
Using the table from Question 1, determine the relative performance if the following changes are made. Assume the clock frequency and IC remain constant.
A. You modify M1 (M1-Mod) by improving B-type instructions to a CPI of 3.
B. You modify M2 (M2-Mod) by improving C-type instructions to a CPI of 2 4.

1 Answer

3 votes
A= 2/60 acc over 10 20
User Anton Cheng
by
5.9k points