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.

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??

$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
4 x 3 4 3 4 4 3 x 10 4 3 199 clo... View full answer
Get step-by-step solutions from verified subject matter experts
