Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For the below set of instructions, assume a 5 stage pipeline that there is no hardware forwarding or hazard detection. The compiler/assembler must insert nops

For the below set of instructions, assume a 5 stage pipeline that there is no hardware forwarding or hazard detection. The compiler/assembler must insert nops where the data hazard exists to insure the correct answer.

a) Rewrite the code by inserting nop(s) in the proper location to insure the correct result.

lw x8, 120(x5)

sub x5, x5, x8

and x8, x8, x9

add x8, x8, x5

b) If the 5-stage pipeline now added forwarding from the MEMWB pipeline register with no hardware data hazard detection, rewrite the assembly with the appropriate NOPs where required to insure proper operation.

c) If the 5-stage pipeline now added forwarding from just the EXMEM pipeline register with no hardware data hazard detection, rewrite the assembly with the appropriate NOPs where required to insure proper operation.

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

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

Students also viewed these Databases questions

Question

Does it have correct contact information?

Answered: 1 week ago

Question

Determine miller indices of plane A Z a/2 X a/2 a/2 Y

Answered: 1 week ago