50%,
50%
Consider executing each of the following code sequences on the
pipelined MIPS implementation given below
(which does not incorporate value forwarding):
Incidentally, both code sequences produce the same final
results. Which of the following statements best describes
the execution times you would expect to observe?
(A) lw $t2,0($t0)
ori $t1,$t0,4
add $t2,$t2,$t3 depends on lw
(B) ori $t1,$t0,4
lw $t2,0($t0)
add $t2,$t2,$t3 depends on lw
(A) would be faster than (B)
By one clock cycle -- the one occupied by the ori instruction instead of a nop
(B) would be faster than (A)
(A) would take the same number of clock cycles as (B)
Which is faster depends on the values being added and ored