Which of the data hazards can be prevented if forwarding


1.You are given the code sequence below:

loop : DADD R1, R2, R3
LW R4, 10 (R1)
LW R5, 14 (R1)
DSUB R6, R5, R4
SW R6, 18 (R1)
DADDI R3, R3, 4
SLT1 R7, R3, 200
BNEZ R7, loop
a.If the processor has no forwarding ,how many cycles will one loop iteration take?show a pipeline diagram to support your answer.

b.Which of the data hazards can be prevented if forwarding is added to the datapath? For each such hazards, list the register number and the two instructions involved.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Which of the data hazards can be prevented if forwarding
Reference No:- TGS0135486

Expected delivery within 24 Hours