Question: Repeat Exercise 7.23 for the following program. Data From Problem 23 How many cycles are required to run the following program on the multicycle MIPS

Repeat Exercise 7.23 for the following program.

$s0, $0, $0 $s1, $0, $0 addi $t0, $0, 10 #i =

Data From Problem 23

How many cycles are required to run the following program on the multicycle MIPS processor? What is the CPI of this program??

0 # sum = 0 # $t0 = 10 add add loop:

$s0, $0, $0 $s1, $0, $0 addi $t0, $0, 10 #i = 0 # sum = 0 # $t0 = 10 add add loop: slt $t1, $s0, $t0 beg $t1, $0, done # if $tl== 0 (i >=10), branch to done # if (i < 10), $tl=1, else $tl= 0 $s1, $s1, $s0 addi $s0, $s0, 1 j loop done: # sum = sum +i # increment i add

Step by Step Solution

3.34 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

4 x 3 4 3 4 4 3 x 10 4 3 199 clo... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Digital Design Computer Questions!