Assume a program requires the execution of 50 x 106 FP instructions, 110 x 106 INT instructions, 80 x 106 L/S instructions, and 16 x 106 branch instructions. The CPI for each type of instruction is 1 1, 4, and 2, respectively. Assume that the processor has a 2 GHz clock rate 1.141 [10] <$1.10 By how much must we improve the CPI of FP instructions if we want the program to run two times faster? 1.14.2 [10]

Respuesta :

Explanation:

FP - [tex]50 \times 10^6[/tex]

CPI - 1

INT -[tex]110 \times 10^6[/tex],

CPI - 1

I/S - [tex]80 \times 10^6[/tex] ,

CPI - 4

Branch - [tex]16 \times 10^6[/tex]

CPI - 2

Clock Speed - [tex]2 \times 10^9[/tex]

Time(old) =[tex]\frac{50 x 10^6 + 110 x 10^6 + 4 x ( 80 x 10^6) + 2 x (16 x 10^ 6)}{2 x 10^9}[/tex]

Time(old) = [tex]256 \times 10^ {-3}[/tex]

Time(new) =  [tex]\frac{256 \times 10^{-3}}{2}[/tex]

                = [tex]128 \times 10^{-3}[/tex]

                =[tex]\frac{CPI(new) x [50 x 10^6 + 110 x 10^6 + 4 x ( 80 x 10^6) + 2 x (16 x 10^ 6)]}{2 x 10^9}[/tex]

                =  [tex]128 \times 10^{-3}[/tex]

CPI(new) = [tex]\frac{-206}{50}[/tex]

               = -4.12