1) Draw and label your own version of the memory hierarchy. • Where are faster e
ID: 3876945 • Letter: 1
Question
1) Draw and label your own version of the memory hierarchy.
• Where are faster elements located?
• How do we illustrate relative capacity?
Consider two machines with two different instruction sets. Each machine has a 2Ghz clock and the following measurements are recorded upon execution of a program.
2) For Machine A, what is the average CPI and execution time?
3) For Machine B, what is the average CPI and execution time?
Instruction Class Machine A Arithmetic Load/Store Branch Instruction count(millions) 12 4 6 CPI 2 4 1
Explanation / Answer
Solution:
Question 1 is not clear enough to answer, I am providing the solution for 2 and 3. please repost 1.
2)
Total number of instructions in MIPS (For machine A)= 22
CPI of machine A = (12/22)*2 + (4/22)*4 + (6/22)*1 = 2.09090909091
Execution time = 22 * 2.09090909091 / (2 * 10^9) = 2.3e-8 seconds
3)
Total number of instructions in MIPS (For machine B)= 23
CPI of machine B = (10/23)*2 + (5/23)*4 + (8/23)*1 = 2.08695652174
Execution time = 23 * 2.08695652174/ (2 * 10^9) = 2.4e-8 seconds
I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.