Question: Task 3 : Assume the following code is executed on a five - stage LEGv 8 pipelined datapath. ADDI x 0 , x 2 ,
Task: Assume the following code is executed on a fivestage LEGv pipelined
datapath.
ADDI #
LDUR #
ADD
STUR #
ADD
a Identify all of data dependencies in the code. Which data
dependencies are data hazards that will be resolved via forwarding?
Which dependencies are data hazards that will cause a stall even
with forwarding?
b If there is no forwarding or hazard detection, insert NOPs to ensure
correct execution. How many cycles are needed to execute the code
in this case?
c If there is no forwarding unit, can you reduce the number of NOPs
by reordering the instructions? How many cycles are needed in this
case?
d If there is a forwarding unit, indicate where forwarding is used and
its type. How many clock cycles are needed to complete the program
execution?
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
