Practice_PerfCache_Sol

Practice_PerfCache_Sol - EE 357 Practice Performance and...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
EE 357 Practice Performance and Cache Name: ___ Solutions _________________________________ Score: ________ 1. Performance Consider a processor P1 running @ 2 GHz and its corresponding compiler C1 along with another processor P2 running @ 4 GHz and its compiler C2. There are 4 types of instructions (classes) that each processor executes. Their CPI is shown below. Instruction Class CPI P1 Class Usage C1 CPI P2 Class Usage C2 A 4 10% 2 10% B 2 20% 6 20% C 1 20% 4 30% D 2 50% 3 40% a. A program is compiled with the respective compilers for each processor. C2 produces 20% more instructions for P2 than C1 does for P1. Given the class usages for each compiler, what is the average CPI for each processor/compiler? Which processor executes the program faster? CPI P1 = 4*.1 + 2*.2 + 1*.2 + 2*.5 = 2 CPI Exec time = IC * 2 CPI / 2 GHz CPI P2 = 2*.1 + 6*.2 + 4*.3 + 3*.4 = 3.8 CPI Exec time = 1.2 IC * 3.8 CPI / 4 Ghz P1 is faster b. A design engineer of P1 says that given some extra HW she can reduce the CPI of class
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Practice_PerfCache_Sol - EE 357 Practice Performance and...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online