Assume that $s0 is initialized to 11 and $s1 is initialized to 22. Suppose you executed the code below on a version of the pipeline described in the class that does not handle data hazards. What would the final values of registers $s2 and $s3 be

Respuesta :

The final  values of registers $s2 and $s3 be $s2 = 33 and $s3 = 6.

Given MIPS instructions:

I1: addi $s0, $s1, 5 #$s0 = (22 + 5) = 27

I2: sub $s2, $s0, $s1

  • value of register $s0 will be updated in clock cycle-5 but this instruction read value of register $s0 in clock cycle-3.

$s2 = (11 + 22) = 33

I3: addi $s3, $s0, -5

  • value of register $s0 will be updated in clock cycle-5 but this instruction read value of register $s0 in clock cycle-4.

$s3 = (11 - 5) = 6

See more about MIPS at brainly.com/question/26556444

#SPJ1