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 are

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 A 4 0 3 0 4 2 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
