Please fill out the answers for the chart and the fill in the blanks, also show
ID: 3887572 • Letter: P
Question
Please fill out the answers for the chart and the fill in the blanks, also show your work so I can understand it. Please fill out the chart for each column need it to be fill out.
2.2 (12 pts) Consider two different machines, with two different instruction sets, both of which have a clock rate of 400 MHz. The following measurements are recorded on the two machines running a given set of benchmark programs. Determine the effective CPI, MIPS rate, and execution time for each machine. Also fill in the dark rectangles in the two tables (6 pts, 1 per square) Instruction Count Cycles per Cycles (millions) Instruction (millions) Instruction Type Machine A Arithmetic & Logic Load & Store Branch Others Totals (3 pts) CPIA: MIPSA: CPUA TimeExplanation / Answer
No. of Cycles = Instruction Count * Cycles Per Instruction
Cycles Per Instruction (CPI) = Total Cycles / Total No of Instructions
CPU = No of seconds per cycle
MIPS = (CPU / CPI ) / 1Million
CPU Time = No. of Cycles * CPU
CPIA = 40 / 18 =
CPUA = 400 MHz
CPUA Time = 400 * 40 = 1600 sec
MIPSA = (400 / (40 / 18) )/ 1000000 = 180 / 1000000 = 0.00018
38
CPIB = 38 / 22
CPUB = 400 MHz
CPUB Time = 400*38 = 1520 sec
MIPSB = (400/(38/22))/1000000 = (400*22)/(38*1000000) = 88/380000 = 0.00023
Instruction Type Instruction Count (Millions) Cycles Per Instruction Cycles (Millions) Machine A Arithmetic & Logic 8 1 8 Load & Store 3 2 6 Branch 4 2 8 Others 3 6 18 Total 18 40