A program consists of 4 types of instructions as shown below

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 right

Solution

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

 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 sl

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site