Question: 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

 

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

1 Expert Approved Answer
Step: 1 Unlock

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... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!