Question

Consider two different implementations, M1 and M2, of the same instruction set. There are three classes of instructions (A, B, and C) in the instruction set. M1 has a clock rate of 80 MHz and M2 has a clock rate of 100 MHz. The average number of cycles for each instruction class and their frequencies (for a typical program) are as follows:

(a) Calculate the average CPI for each machine, M1, and M2.
(b) Calculate the average MIPS ratings for each machine, M1 and M2.
(c) Which machine has a smaller MIPS rating? Which individual instruction class CPI do you need to change, and by how much, to have this machine have the same or better performance as the machine with the higher MIPS rating (you can only change the CPI for one of the instruction classes on the slower machine)?
Instruction Class DC Machine M1 Cycles/Instruction Class Machine M2 Cycles/Instruction Class Frequency 60% 30% 10%

0 0
Add a comment Improve this question Transcribed image text
✔ Recommended Answer
Answer #1

cpi means clocks per instruction

average cpi can be obtained by multiplying the cpi with frequency with their respective machines

  1. Avg CPI for M1 is defined as below:

average clocks per Instruction for M1 = (60/100)* 1 + (30/100)*2 + (10/100)*4

= 1.6

Avg CPI for M2 is defined as below:

average clocks per Instruction for M2 = (60/100)*2 + (30/100)*3 + (10/100)*4

= 2.5

b). The average MIPS rate is calculated as: Clock Rate/ averageCPI x

The average MIPS ratings for M1 = 80 / 1.6 x 10^6

                                                       = 50 x 10^6

The average MIPS ratings for M2 = 100 / 2.5 x 10^6

                                                       = 40 x 10^6

c)

   Machine M2 has a smaller MIPS rating

Changing instruction set A from 2 to 1

The CPI will be increased to 1.9 (1*.6+3*.3+4*.1)

and hence MIPS Rating will now be (100/1.9)*10^6 =52.6*10^6.

Add a comment
Know the answer?
Add Answer to:
Consider two different implementations, M1 and M2, of the same instruction set. There are three classes...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • Question 1: Consider two different implementations, M1 and M2, of the same instruction set. There are...

    Question 1: Consider two different implementations, M1 and M2, of the same instruction set. There are four classes of instructions (A, B, C, and D) in the instruction set. M1 has a clock rate of 500 MHz while M2’s clock rate is 750 MHz. The average number of cycles for each instruction class of M1 and M2 are shown in the following table: Class CPI for this class on M1 CPI for this class on M2 A 1 2 B...

  • I need help with the following Computer Architecture question: Consider two different implementations, M1 and M2,...

    I need help with the following Computer Architecture question: Consider two different implementations, M1 and M2, of the same instruction set. There are three classes of instructions (A, B, and C) in the instruction set. M1 has a clock rate of 90 MHz and M2 has a clock rate of 80 MHz. The average number of cycles for each instruction class and their frequencies (for a typical program) are as follows: Instruction Class Machine M1 – Cycles/Instruction Class Machine M2...

  • Consider two different implementations of the same instruction set architecture. The instructions can be divided into...

    Consider two different implementations of the same instruction set architecture. The instructions can be divided into four classes according to their CPI (class A, B, C, and D). P1 with a clock rate of 2.5 GHz and CPIs of 2, 4, 3, and 2 and P2 with a clock rate of 3.5 GHz and CPIs of 3, 3, 2, and 3. a. Given a program with a dynamic instruction count of 1.0E8 instructions divided into classes as follows: 30% class...

  • Consider two different implementations of the same instruction set architecture. There are 5 classes of instructions,...

    Consider two different implementations of the same instruction set architecture. There are 5 classes of instructions, A, B, C, D, and E. The clock rate and CPI of each class is given in the following table. Machine Clock Rate CPI class A CPI class B CPI class C CPI class D CPI class E P1 1.0 GHz 1 1 2 3 2 P2 1.5 GHz 1 2 3 4 3 What are the performances of P1 and P2 expressed in...

  • Itby important Q. Disc uss the features of RISC and CISC Architecture. dware implementations Mt &...

    Please Solve 1(c). itby important Q. Disc uss the features of RISC and CISC Architecture. dware implementations Mt &t M2 of the same instruction set. There are three classes F, I & N of instructions in the instruction The average CPl for the three instructi Class set. Miclock rate is 600 MHz, M2's clock cycle is 2ns. on classes on M1 & M2 are as follows: Comments Floating Point Integer Arithmetic Non-arithmetic CPI for M 5.0 2.0 2.4 CPI for...

  • We are comparing the performance of two different microprocessors, M1 and M2. Assume a program P...

    We are comparing the performance of two different microprocessors, M1 and M2. Assume a program P will be compiled into M2 instructions counting 20% more than M1 instructions. M1 has a 2 GHz clock rate while M2 has a 3 GHz clock rate. Instructions on these two machines can be classified into 3 classes as shown in the following table. Which machine has better MIPS? Which machine has better performance? By how much? Justify your answers. Instruction Class Cycles needed...

  • Consider three different processors P1, P2 and P3 executing the same instruction set. P3 has a...

    Consider three different processors P1, P2 and P3 executing the same instruction set. P3 has a 4 GHz clock rate and a CPI of 2.5. P2 has 3.5 GHz clock rate and a CPI of 2.0. P1 has a 5.0 GHz clock rate and has a CPI of 3.3. a. Which processor has the highest performance expressed in instructions per second? b. If the processor each execute a program in 5 seconds, find the number of cycles and the number...

  • Consider three different processors Pi, P2, and P3 executing the same instruction set with the clock...

    Consider three different processors Pi, P2, and P3 executing the same instruction set with the clock rates and CPIS given in the following table 1. Clock Rate Processor CPI 3.4 GHz 1.2 P2 Рэ 2.6 GHz 1.0 2.2 4 GHz Which processor has the highest performance expressed in instructions per second? If the processors each execute a program in 15 seconds, find the number of cycles and the mumber of instructions We are trying to reduce the time by 30%...

  • Consider three different processors P1, P2, and P3 executing the same instruction set. P1 has a...

    Consider three different processors P1, P2, and P3 executing the same instruction set. P1 has a 3 GHz clock rate and a CPI of 1.5. P2 has a 3 GHz clock rate and a CPI of 1.0. P3 has a 2.5 GHz clock rate and has a CPI of 2.2. a. Which processor has the highest performance expressed in instructions per second? b. If each processor executes a program in 35 seconds, find the number of cycles and the number...

  • Consider two different implementations of the same ISA. The four classes of instructions are A,B,C and...

    Consider two different implementations of the same ISA. The four classes of instructions are A,B,C and D. Refer to following table for the data required. Clock Rate CPI A CPI B CPI C CPI D P1 3 GHz 1 3 4 2 P2 4 GHz 4 5 6 2 Given a program with 10% of A instructions, 20% of B instructions, 30% of C instructions and 40% of D instructions a. Which implementation of P1 and P2 is faster? b....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT