Question: Assume the code sequence give below: add t 6 , s 6 , s 1 slt t 9 , t 1 , s 4 sub
"Assume the code sequence give below:
add t s s
slt t t s
sub t t t
sub s t t
nor s XR s s
lw st
beq t s FOR
FOR:
And assume the stage pipeline discussed in the learning objective:
Instruction Fetch IF
Register Read RR aka Instruction Decode ID
ALU Operation ALU aka Execution EX
Data Memory DM
Register Write RW or Write Back WB
Practice :
Find RAW Data Hazard in the sequence and enter on the designated cell of the sheet:
Register
Producer Instruction
Consumer Instruction
RAW Dependency
RAW Dependency
RAW Dependency
Practice :
Considering the data hazard you have found in Practice and the control hazard, show pipeline execution of the sequence when:
There is no Forwarding capability available in the hardware
Prediction as a solution for control hazard and predictor is correct
Show the pipeline execution by completing the table below:
add t s s
IF
RR
EX
DM
RW
slt t t s
sub t t t
sub s t t
nor s s s
lw st
beq t s FOR"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
