Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Show your work. No points will be given if you do not show your work. Assume you are using the RV321 ISA, unless otherwise specified.
Show your work. No points will be given if you do not show your work. Assume you are using the RV321 ISA, unless otherwise specified. You are allowed to use calculators for bin hex. 1. You are given the following program (using the RV32M ISA): 10: LW, X6, 0(X8) 11: LW, X7, 0(X9) 12: MUL, X6, X6, X6 13: MUL X7,X7, X7 14: ADD X28, X6, X7 MUL takes 20 cycles to finish execution. ADD takes 10 cycles to finish execution. LW takes 5 cycles to finish execution. Assume that execution of one instruction cannot begin until the previous instruction has finished executing. a. What is the CPI? What is the IPC? (2 points) b. You are given two computers. Computer "A" has a clock frequency of 2.5 GHz (2.5*10 cycles per second), and computer B has a clock of 3.0 GHz (3.0*109 cycles per second). How much time will it take for each of them to execute the program? (2 points) c. What is the speedup of computer B over computer A? (1 point) Show your work. No points will be given if you do not show your work. Assume you are using the RV321 ISA, unless otherwise specified. You are allowed to use calculators for bin hex. 1. You are given the following program (using the RV32M ISA): 10: LW, X6, 0(X8) 11: LW, X7, 0(X9) 12: MUL, X6, X6, X6 13: MUL X7,X7, X7 14: ADD X28, X6, X7 MUL takes 20 cycles to finish execution. ADD takes 10 cycles to finish execution. LW takes 5 cycles to finish execution. Assume that execution of one instruction cannot begin until the previous instruction has finished executing. a. What is the CPI? What is the IPC? (2 points) b. You are given two computers. Computer "A" has a clock frequency of 2.5 GHz (2.5*10 cycles per second), and computer B has a clock of 3.0 GHz (3.0*109 cycles per second). How much time will it take for each of them to execute the program? (2 points) c. What is the speedup of computer B over computer A? (1 point)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started