Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. We have two different code sequences. The table bellow shows the instruction counts for each instruction class. The CPI's for each instruction class

 

1. We have two different code sequences. The table bellow shows the instruction counts for each instruction class. The CPI's for each instruction class are 4, 3, 2, and 1, respectively. a. What is the average CPI for each code? b. If both codes run in the same machine at frequency 3.5GHz, what is the performance for each code? c. Suppose code 1 runs in machine 1 and code 2 runs in machine 2. What would be the clock period ratio that would make both machines perform equally? Code Sequence 0 DO4 103 42 A B C 1 4 2 1

Step by Step Solution

3.40 Rating (147 Votes )

There are 3 Steps involved in it

Step: 1

a Average CPI for each code To calculate the average CPI Cycles Per Instruction for each code sequence we can use the following formula Average CPIi1n... 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

Computer Systems A Programmers Perspective

Authors: Randal E. Bryant, David R. O'Hallaron

3rd Global Edition

1292101768, 978-1292101767

Students also viewed these Programming questions

Question

Can you use Java to download binary data from an online source?

Answered: 1 week ago

Question

2. Experiment with peer editing.

Answered: 1 week ago