A program consists of 4 types of instructions as shown below. What is the averag
ID: 3787147 • Letter: A
Question
A program consists of 4 types of instructions as shown below. What is the average CPI? Use the single cycle model to answer the following questions. Can the sltiu instruction execute correctly with this data path? Why or why not? A nori instruction is being proposed. Can this new instruction execute correctly with this data path? Why or why not? Determine the control values in the table below for the instructions. If it cannot be determined, leave it blank. Describe the changes needed to the single cycle data path to support the jr instruction. The following instruction is to be executed: sw $t1, 4($ t2). The instruction is located at 00x00401000. Assume that $t1 holds a-1 and $t2 holds 0x10010010 output of sign-extend output of shift left 2 inputs to ALU control output from MUX before registers output from MUX before ALU output from ALU output from adder at top left output from adder at top rightExplanation / Answer
1) CPI=(1*15+2*25+3*40+4*20)/100
=(15+50+120+80)/100
=265/100=2.65
Average CPI = 2.65/4 = 0.6625
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.