Home / Expert Answers / Computer Science / the-problems-below-refer-to-the-following-sequence-of-instructions-nbsp-and-assume-that-it-is-exec-pa476

(Solved): The problems below refer to the following sequence of instructions,  and assume that it is exec ...



The problems below refer to the following sequence of instructions,  and assume that it is executed on a 5-stage pipelined datapath:

          add $t5, $t2, $t1
          lw $t3, 4($t5)
          lw $t2, 0($t2)
          or $t3, $t5, $t3
          sw $t3, 0($t5)

Answer these questions:

  1. Identify the instruction type for the sequence of instructions.
  2. Identify the dependencies in the sequence of instructions.
  3. If there is no forwarding or hazard detection, insert nops to ensure correct execution.
  4. Repeat the previous question but now only use nops only when a hazard cannot be avoided by changing or rearranging these instructions. 
  5. If the processor has forwarding but we forget to implement the hazard detection unit, what happens when this code executes?Pipeline Instruction Sequence
IM
++++++ H
IM
ALU
IM
DM
ALU
Regl
IM
DM Regi
SALUDM
Reg
IM
ALU
Real
Reg
DM
ALU
Regi
DM
Regi
Pipeline Instruction Sequence IM ++++++ H IM ALU IM DM ALU Regl IM DM Regi SALUDM Reg IM ALU Real Reg DM ALU Regi DM Regi


We have an Answer from Expert

View Expert Answer

Expert Answer


Solution Step 1 Answer: Here given some instruction and we have to identified given instruction what is happening so we will discuss here one by one and given 5 stage then every instruction executed in IF=Instruction Fetch ID=Instruction Decode EX=ex
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe