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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
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 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

 

Instruction Class
AB
C
MI-Cycles/Instruction
Class
1
2
4
ORI
M2 -Cycles/Instruction Frequency
Class
2
1
3
1
1100
50%
30%
20%
Transcribed Image Text:Instruction Class AB C MI-Cycles/Instruction Class 1 2 4 ORI M2 -Cycles/Instruction Frequency Class 2 1 3 1 1100 50% 30% 20%
Expert Solution
Step 1

(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

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Properties of Different Architectures
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education