Question: As discussed in class, data hazards can be avoided via forwarding and there are four different forwarding cases (Case A~D listed below). Identify the forwarding

As discussed in class, data hazards can be avoided via forwarding and there are four different forwarding cases (Case A~D listed below). Identify the forwarding case for each of the three hazards (i, ii and iii in the figure below).

Case A: EX/MEM.RegisterRd = ID/EX.RegisterRs

Case B: EX/MEM.RegisterRd = ID/EX.RegisterRt

Case C: MEM/WB.RegisterRd = ID/EX.RegisterRs

Case D: MEM/WB.RegisterRd = ID/EX.RegisterRt

Data hazard (i): Data forwarding case A, B, C, D, or anything else?

Data hazard (ii): Data forwarding case A, B, C, D, or anything else?

Data hazard (iii): Data forwarding case A, B, C, D, or anything else?

As discussed in class, data hazards can be avoided via forwarding and

Time (in clock cycles CC CC 2 Value of register S2 10 Value of EXIMEM Value of MMEM/WB X Program execution order n instructions sub $2, $1, $3 IM Reg and 12 S2, $5 or $13, $6, S2 add S14, 52, S2 sws15, 100 (52) CC 3 10 20 DIM Reg CC 5 CC 6 10 20 20 20 Reg DM Reg DIM CC 7 20 Reg DIM CC 8 20 Reg DM CC 9 Reg Time (in clock cycles CC CC 2 Value of register S2 10 Value of EXIMEM Value of MMEM/WB X Program execution order n instructions sub $2, $1, $3 IM Reg and 12 S2, $5 or $13, $6, S2 add S14, 52, S2 sws15, 100 (52) CC 3 10 20 DIM Reg CC 5 CC 6 10 20 20 20 Reg DM Reg DIM CC 7 20 Reg DIM CC 8 20 Reg DM CC 9 Reg

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!