Question: MIPS Consider the following code: addi St1, StO, 3 Loop: addi St2, St1, 1 sub Sto, Sto, St1 bne Sto, Szero, loop 1. 2. 3.
MIPS
Consider the following code: addi St1, StO, 3 Loop: addi St2, St1, 1 sub Sto, Sto, St1 bne Sto, Szero, loop 1. 2. 3. 4. Determine how many cycles would it take for the program to execute without hazards handling hardware Draw the execution table and determine the type of hazards. Write program using NOP instructions to avoid the hazards. Describes the effects of instruction forwarding to this code. Consider the following code: addi St1, StO, 3 Loop: addi St2, St1, 1 sub Sto, Sto, St1 bne Sto, Szero, loop 1. 2. 3. 4. Determine how many cycles would it take for the program to execute without hazards handling hardware Draw the execution table and determine the type of hazards. Write program using NOP instructions to avoid the hazards. Describes the effects of instruction forwarding to this code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
