Question: 9. Consider the three instructions: sw $3, 4($8) lw $3, 4($8) slt $2, $3, $0 a) (3) If these instructions are executed on our pipelined
9. Consider the three instructions:
sw $3, 4($8)
lw $3, 4($8)
slt $2, $3, $0
a) (3) If these instructions are executed on our pipelined data path with a data hazard unit but with no data forwarding unit, for how many clock cycles will the lw instruction be stalled in the decode stage?
b) (3) If these instructions are executed on our pipelined data path with a data hazard unit but with no data forwarding unit, how many clock cycles will the slt instruction have to be stalled in the decode stage?
c) (3) If these instructions are executed on our pipelined data path containing both a data hazard unit and a data forwarding unit, how many clock cycles will the slt instruction have to be stalled in the decode stage?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
