Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please solve all parts of this one question. Thank you. (a,b,c,d). There is no coding in this question required. Just mathematical answers and theoretical answers.

Please solve all parts of this one question. Thank you. (a,b,c,d). There is no coding in this question required. Just mathematical answers and theoretical answers.
Consider a program with the following mix of instructions
40% R-type arithmetic instructions, 25% load instructions, 20% store instructions, 10% branch instructions and 5% unconditional jump instructions.
a. What percentage of all memory accesses during the execution of this program are for data (as opposed to instructions) and what percentage of all memory accesses (including data and instructions) are reading from memory (as opposed to writing to memory)?
b. Assume that the instruction mix for this program is typical of all the programs that execute on a 1 GHz machine in which the R-type instructions execute in 6 cycles, the load and store instructions in 4 cycles, the branch instructions in 3 cycles and the jump instructions in 2 cycles. What is the performance expressed in instructions per second for that machine?
c. Assume that it is possible to change the architecture so as to save one cycles from the execution of each instruction. That is the R-type instructions execute in 5 cycles, the load and store instructions in 3 cycles, the branch instructions in 2 cycles and the jump instructions in 1 cycle. This architecture change, however, will require that the machine operates at 800MHz rather than 1GHz. Would you recommend that change? Justify your answer.
d. When running this program, another machine with 1.5 GHz has the same performance as the machine in b, what is the CPI for the new machine?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions

Question

Find the derivative of y= cos cos (x + 2x)

Answered: 1 week ago