Question: 4 . ( 2 5 points ) The following codes run on the five - stage pipelined datapath. For each piece of code, answer the
points The following codes run on the fivestage pipelined datapath. For each piece of code, answer the following questions.
a Without forwarding, insert the necessary number of 'nops' for the code to execute correctly.
b With the forwarding unit available only supports forwards MEM EX and WBEX show how the code will execute. Mention the data that's forwarded between the stages. Use 'nops' only when necessary.
Code :
sub t t t
add t t t
or t t t
Code :
and t t t
sub t t t
nor t t t
Code :
and t t t
sub t t t
nor t t t
Code :
lw tt
and t t t
Code :
lw tt
sub t t t
xor t t t
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
