The following MIPS instructions sequence, started executing at the first cycle, is used for a to e:
Question:
The following MIPS instructions sequence, started executing at the first cycle, is used for a to e:
lw $t0, 100($s0)
add $t0, $t0, $t1
sw $t1, 100($t0)
add $t0, $t1, $t0
lw $t1, 100($t0)
add $t0, $t0, $t1
a. If the Forwarding technique is NOT applied, how many data hazards are there in the sequence?
b. If the Forwarding technique is NOT applied, how many cycles does the sequence need to finish?
c. If the Forwarding technique is applied, how many cycles does the sequence need to finish?
d. At cycle number 5, what are values for Forwarding units (ForwardA and ForwardB signals)?
e. At cycle number 5, what are values for Forwarding units (ForwardA and ForwardB signals)?
Managerial accounting
ISBN: b010ikdqzm
10th Edition
Authors: Carl S. Warren, James M. Reeve, Jonathan E. Duchac