Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2.) (30 POINTS) Assume that the following code segment is executed on a pipelined architecture that will cause data hazard(s): add sub add and $s2,

2.) (30 POINTS) Assume that the following code segment is executed on a pipelined architecture that will cause data hazard(s):

add sub add and $s2, $t2, $t3 $t4, $s2, $t5 $t5, $s2, $t6 $t5, $t4, $t6

Schematically provide a solution for the first occurrence of the data hazard by using each of the following data hazard remedies. Please note that for each item below you apply the solution independently, i.e. each solution is isolated from other solutions. 2.A.) (17.5 POINTS) rearranging the code statements, i.e. reorganizing the order of instructions in the code segment 2.B.) (17.5 POINTS) nop 2.C.) (17.5 POINTS) stalling 2.D.) (17.5 POINTS) forwarding

image text in transcribed

2.) (30 POINTS) Assume that the following code segment is executed on a pipelined architecture that will cause data hazard(s): add sub add and Ss2, St2, $t3 St4, Ss2, $t5 $t5, Ss2, $t6 St5, St4, St6 Schematically provide a solution for the first occurrence of the data hazard by using each of the following data hazard remedies. Please note that for each item below you apply the solution independently, i.e. each solution is isolated from other solutions. 2.A.) (17.5 POINTS) rearranging the code statements, i.e. reorganizing the order of instructions in the code segment 2.B.) (17.5 POINTS) nop 2.C.) (17.5 POINTS) stalling 2.D.) (17.5 POINTS) 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

Step: 3

blur-text-image

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

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

Students also viewed these Databases questions

Question

It would have cost more to complain.

Answered: 1 week ago