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

Please type answer do not hand write. Thank you. Consider two different machines

ID: 3880591 • Letter: P

Question

Please type answer do not hand write. Thank you.

Consider two different machines, with two different instruction sets, both of which have a clock rate of 200 MHz. The following measurements are recorded on the two machines running a given set of benchmark programs: InstructionCycles per Count (millions) Instruction Instruction Type Machine A Arithmetic and logic Load and store Branch Others 4 4 4 Machine A Arithmetic and logic Load and store Branch Others 10 4 4 a. Determine the effective CPI, MIPS rate, and execution time for each machine. b. Comment on the results

Explanation / Answer

Givcen that both machines clock rate = 200 MHz

Now,

CPI for machine 1 = (Instruction count*cycles per second)/ no.of instructions the executed program consists
= [(8*1 + 4*3 + 2*4 + 4*3)*10^6 ]/ (8+4+2+4) *10^6
= 2.22

CPI for macine 2 = [(10*1 + 8*2 + 2*4 + 4*3)*10^6]/ 10+8+2+4 *10^6
= 1.92


MIPS:
......
Million instructions per second rate for machine = I/T * 10^6
= I*f/ (I*CPI*10^6)
= f/CPI*10^6
Now for machine 1 : (200*10^6) / 2.22*10^6 = 90
Foe machine 2 : (200*10^6) / 1.92*10^6 =104

CPU:
........
For machhine 1: I*CPI/f = 18*10^6*2.2 / 200*10^6 = 0.2 s
For machine 2 : I*CPI/f = 24*10^6*1.92 / 200*10^6 = 0.23s


B) These two machine contains almost equal CPU and CPI but largely varient in MIPS rate.