You are given the following code segment for this question. (1) add $t1, $t0, $v
ID: 3566447 • Letter: Y
Question
You are given the following code segment for this question.
(1) add $t1, $t0, $v0 #$t0 = $8 and $t1 = $9
(2) add $s1, $s2, $t1 #$s1 = $17 and $s2 = 18
(3) lw $s2, 8($s1)
(4) sub $v0, $s2, $v1
(5) add $s1, $s2, $v0
(6) add $t0, $s1, $v0
1.1 How many cycles are needed if a MIPS processor does not have any forwarding logic?
1.2 How many cycles are needed if the best forwarding logic is added to the MIPS processor?
Explanation / Answer
1.1 5 cycles
1.2 6 cycles
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.