Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started