Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 3 (10points) The result of the SPEC CPU2006 baip2 benchmark running on

ID: 3601499 • Letter: Q

Question

Question 3 (10points) The result of the SPEC CPU2006 baip2 benchmark running on an AMD Barcelona has an instruction count of 4E12, and execution time of 500 s and a reference time of 1000 s. Find the CPI if the clock cycle time is 0.25 ns. Find the SPECratio. Question 4 (8 points) For the following C statement, what is the corresponding MIPS assem- bly code? Assume that the variables f, &, h, and k are assigned to registers 8s0, Se1, $s2, and $3, respectively. (hints: add Ss1, $62,5s3 means add the content of register $s2 and 8e3 and put the result into the register Sa1; addi Sel, Ss2.1 means add the content of register Ss2 and the value 1 and pat the result into the register 8s1: x+0x) f-g+(b-5) Question 5 (13 points) Consider the following MIPS loop: LOOP: slt St2, S0, St1 beg $t2, $O, DONE subi , St 1,1 addi Ss2, $s2, 2

Explanation / Answer

Solution:

3)

a)

To find the CPI

we use this formula

CPI =clock rate*Execution time/Instruction Count

clock rate=1/cycle time;

the clock rate is Clock rate=1/0.25=4GHz

so

CPI =4*10^9*500/4E12=0.5

SPECratio:

the formula for SPECratio

SPECratio=referencetime/execution time

so here SPECratio is 1000/500=2

I hope this helps, please let me know in case of any doubt. Thumbs up if this helped.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote