Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Recall that with our 5-stage MIPS pipeline, register reads occur in the second half of the clock cycle while register writes occur in the first

Recall that with our 5-stage MIPS pipeline, register reads occur in the second half of the clock cycle while register writes occur in the first half of the clock cycle. Consider the following instruction sequence:

xor $2, $0, $3

slt $5, $2, $4

add $11, $5, $11

lw $8, 0x800($2)

sllv $6, $11, $12

sub $2, $6, $8

a) (5) Assume that the pipeline system employs a hazard detection unit but it does not use data forwarding. If the xor instruction is fetched in clock cycle 1, during which clock cycle does the sub $2, $6, $8 instruction complete its write-back stage? The instructions must be executed in the order shown.

b) (5) Assume that the same instruction sequence is executed again, this time with both a data forwarding unit as well as a hazard detection unit, but with no other techniques to handle data hazards. If the xor instruction is fetched in clock cycle 1, during which clock cycle does the sub $2, $6, $8 instruction now complete its write-back stage?

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

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions

Question

Is the person willing to deal with the consequences?

Answered: 1 week ago

Question

Was there an effort to involve the appropriate people?

Answered: 1 week ago