Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( 2 5 points ) The following codes run on the five - stage pipelined datapath. For each piece of code, answer the following questions.

(25 points) The following codes run on the five-stage 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 WB>EX), show how
the code will execute. Mention the data that's forwarded between the stages. Use 'nops' only when
necessary.
Code 1:
sub t1, t2, t3
add t1,t4,t5
or t4,t2,t6
Code 2:
and t2,t5,t1
sub t3,t2,t0
nor t7, t1, t5
Code 3:
and t2,t5,t1
sub t3, t2, to
nor t7, t2, t1
Code 4:
lw t1,22(t0)
and t2,t1,t3
Code 5:
lw t1,22(t0)
sub t6, t0, t2
xor t3,t1,t5
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro PowerShell For Database Developers

Authors: Bryan P Cafferky

1st Edition

1484205413, 9781484205419

More Books

Students also viewed these Databases questions

Question

What are the three steps to changing bad habits? (p. 224)

Answered: 1 week ago