Question: 3. (Correctness) (6 points) Hazards: Mario has been given the following sequence of instructions: add $ti, Sti, Sao add $t3, $t1, Sto lw $t2, 100

 3. (Correctness) (6 points) Hazards: Mario has been given the following

3. (Correctness) (6 points) Hazards: Mario has been given the following sequence of instructions: add $ti, Sti, Sao add $t3, $t1, Sto lw $t2, 100 (Sti) addi St3, St2, 141 For each of the questions below, assume that there is no stalling hardware which means that Mario has to handle the stalling (data dependencies) by introducing NOPs into the code. Also assume that the register file writes in the first half of the cycle and is read in the second half. Results written in the first half may be read in the second half. In each scenario, help Mario rewrite the code with the appropriate NOPs inserted. a. Assume that there is no forwarding in this pipelined processor (justify you answer with a pipeline diagram - show the required NOP instructions, if any, in the diagram)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!