

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Material Type: Assignment; Class: 0306 - Computer Organization; Subject: Computer Engineering; University: Rochester Institute of Technology; Term: Unknown 2009;
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!
Page 1 of 3
Show all intermediate steps clearly and legibly to obtain full credit.
Instruction Cycles add, addi, sll 2 bne 3 lw 5
Ignoring the four instructions before the loops, how many seconds will it take to execute this code in the worst case?
Class CPI 1 CPI (^2) A 1 3 B 3 3 C 4 3 D 5 4 E 7 5
a. What are the peak MIPS ratings of CPU 1 and CPU 2?
b. If the number of instructions executed in a certain program is divided equally among these instruction classes except for class A, which occurs five times as often as each of the other classes, which CPU implementation is faster for this program (i.e., CPU 1 or CPU 2 ), and by how much?
0306-550 Winter 2009 Homework Assignment #2 Page 2 of 3
Instruction Class
CPI on CPU
CPI on CPU
C1 Freq. (%)
C2 Freq. (%)
C3 Freq. (%) A 2 1 40.0 40.0 50. B 3 2 40.0 20.0 25. C 5 2 20.0 40.0 25.
Based on this information, answer the following questions.
a. Using C1 on both CPU1 and CPU2, which CPU is faster and by how much? b. Using C2 on both CPU1 and CPU2, which CPU is faster and by how much? c. Using C3 on both CPU1 and CPU2, which CPU is faster and by how much? d. For CPU1, which compiler is the best? e. For CPU2, which compiler is the best? f. Which CPU and compiler combination would you use if all other criteria are the same.