Question: Q2: How many cycles will it take to execute the below code in multi-cycle MIPS architecture? (5) lw $t2, 0($t3) lw $t3, 4($t3) Label A:

Q2: How many cycles will it take to execute the below code in multi-cycle MIPS architecture? (5) lw $t2, 0($t3) lw $t3, 4($t3) Label A: bne $t2, $t3, Label B addi $t3, $t3, -1 add $t5, $t2, $t3 Label X: sw $t2, 0($t3) beg $t2, Szero, Label Y Label B: addi $t2, $t2, -5 beg $t2, Szero, Label x Label Y: Note: Assume initially $t2 =5 and $t3 =6 and also justify your answer by mentioning each instruction cycles separately
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
