Question: SHORT ANSWER: Given the following MIPS code: lw $s1, 0($s5) add $t0, $s1, $s2 beq $t0, $t1, next sub $t2, $t1, $t0 addi $t2, $t2,
SHORT ANSWER:
Given the following MIPS code:
lw $s1, 0($s5)
add $t0, $s1, $s2
beq $t0, $t1, next
sub $t2, $t1, $t0
addi $t2, $t2, 1
j after
next: sw $s1, 20($t1)
after: sw $t0, 0($s5)
How many nanoseconds will it take to run on a multicycle datapath processor with a cycle time of 1.8 nanoseconds, if the branch IS taken?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
