We assume that all memories are initialized by 10 andthere is no branch prediction and the branch result isknown in an ID state.1.2 Identify all data hazards in the following sequenceof instructions with forwarding, when executed on the5-stage pipelined MIPS implementation (5 points).Instruction Sequence
add $t4, $zero, $zero
Loop: add $t5, $t4, $t1
lw $t6, 0($t5)
add $t5, $t4, $t2
sw $t6, 0($t5)
addi $t4, $t4, 4
slti $t5, $t4, 4
bne $t5, $zero, Loop
add $t8, $zero, $zero
Regisgernumber$t1 $t2 $t5 $t6 $t8Contents 1000 2000 1 1 1
1.1 Identify all data hazards in the following sequenceof instructions with forwarding, when executed onthe 5-stage pipelined MIPS implementation (4 points).
1.3 What is the number of cycles when the abovecode is executing on the 5-stage pipelined MIPSimplementation with forwarding and always taken branch prediction (6 points)? Please explain in details howyou get the number of cycles