Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. (50 points) The following instructions are executed on the 5-stage MIPS pipelined datapath add r5,r2, r1 lw r3, 4(r5) lw r2, 0(r2) or r3,

image text in transcribed

1. (50 points) The following instructions are executed on the 5-stage MIPS pipelined datapath add r5,r2, r1 lw r3, 4(r5) lw r2, 0(r2) or r3, r5, r: sw r3, 0(r5) (a) (20 points) List the data hazards in the above code. For each data hazard identified, clearly mark the source and the destination. For example you can say, there is a data hazard from instruction X to instruction Y on register Z. (b) (20 points) Assume there is no forwarding hardware implemented Draw the pipelined diagram, showing all the pipeline stalls necessary to ensure correct execution (c) (20 points) Assume the following forwarding hardware is added to the processor: EX-EX, MEM-EX, and MEM-MEM. Show the pipelined execution of the instructions and highlight relevant data forwarding paths. Stalls should be inserted only when a data hazard cannot be avoided with forwarding

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

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions

Question

=+2 Why are international employment standards important to IHRM?

Answered: 1 week ago

Question

=+1 Why are local employment laws important to IHRM?

Answered: 1 week ago

Question

=+ Are some laws more important than others? If so, which ones?

Answered: 1 week ago