Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

] Consider the following sequence of instructions in a pipeline operation. Assume there are Instruction number is added in front of each instruction. lw r1,

] Consider the following sequence of instructions in a pipeline operation. Assume there are Instruction number is added in front of each instruction.

lw r1, 0(r1)

lw r1, 0(r1)

sll r2, r1, 2

I4 lw r1, 0(r2)

addi r2, r2, 1

I6 lw r1, 0(r1)

or r1, r2, r1

(10 points) Specify the data hazards by describing the data dependencies between the instructions. e.g., r1 in Instruction x is dependent on the r1 in Instruction y. Assume there are no stalls or data forward in doing this analysis.

(10 points) If we are able to detect data hazard (i.e., stall the execution) and forward register value, state the source and the destination of this pipeline register forwarding. e.g., forward r1 value in EX/MEM or MEM/WB pipeline register from Instruction x to Instruction y.

Remember to stall the execution when appropriate.

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

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions