There are three types of Instructions for a particular progr
There are three types of Instructions for a particular program. Integer Math, Memory Accesses, and Conditional statements. Given the two tables below, which architecture is better, A or B? a) What is the Average CPI for Architecture A? b) What is the Average CPI for Architecture B?
Solution
a)
Average CPI of architecture A is (2.0+3.0+5.0)/3=3.3
So that the Average CPI of architecture A is 3.33
b)
Average CPI of architecture A is (1.0+2.0+10.0)/3=4.33
So that the Average CPI of architecture B is 4.33
