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 2.0GHz and M2 has a clock rate of 2.5GHz. The average number of cycles for each instruction class and their frequencies (for a typical program) are as follow on the table. (a) Calculate the average CPI for each machine, M1, and M2. (b) Calculate the average MIPS ratings for each machine, M1 and M2
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 2.0GHz and M2
has a clock rate of 2.5GHz. The average number of cycles for each instruction class and their frequencies
(for a typical program) are as follow on the table.
(a) Calculate the average CPI for each machine, M1, and M2.
(b) Calculate the average MIPS ratings for each machine, M1 and M2
(a)
CPI is basically Cycles Per Instruction
So For Average All classes need to be taken .
Average CPI For M1 = 1 * 50/100 + 2 * 30/100 + 4 * 20/100
= 1 * 0.5 + 2 * 0.3 + 4 * 0.2
= 0.5 + 0.6 + 0.8
= 1.9
Average CPI For M2 = 2 * 50/100 + 1 * 30/100 + 3 * 20/100
= 2 * 0.5 + 1 * 0.3 + 3 * 0.2
= 1.0 + 0.3 + 0.6
= 1.9
Average CPI For M1= 1.9
Average CPI For M2= 1.9
Trending now
This is a popular solution!
Step by step
Solved in 2 steps