Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Consider this code, which has a RAW hazard involving R2 that makes stalling necessary: LD R2, o(R1) BNEZ R2, label a) How many cycles

image text in transcribed

2. Consider this code, which has a RAW hazard involving R2 that makes stalling necessary: LD R2, o(R1) BNEZ R2, label a) How many cycles of stall are needed to resolve the RAW hazard in a variation 1 MIPS? b) What Boolean expression can be used to detect the need to stall the branch in the first stall cycle? c) At some point, the value of R2 is ready, and can be forwarded to avoid further stalling. What data forwarding hardware must be added to the variation 1 MIPS to do the data forwarding? Show the required hardware by drawing it in a different color on a diagram of the variation 1 MIPS pipeline. (You do not have to include all the details of the standard pipeline, but give enough that we can see clearly how the new hardware fits in.) d) The data is being forwarded from where to where? Also, what expression is used to decide whether to activate the path that forwards the data in a given clock cycle? 2. Consider this code, which has a RAW hazard involving R2 that makes stalling necessary: LD R2, o(R1) BNEZ R2, label a) How many cycles of stall are needed to resolve the RAW hazard in a variation 1 MIPS? b) What Boolean expression can be used to detect the need to stall the branch in the first stall cycle? c) At some point, the value of R2 is ready, and can be forwarded to avoid further stalling. What data forwarding hardware must be added to the variation 1 MIPS to do the data forwarding? Show the required hardware by drawing it in a different color on a diagram of the variation 1 MIPS pipeline. (You do not have to include all the details of the standard pipeline, but give enough that we can see clearly how the new hardware fits in.) d) The data is being forwarded from where to where? Also, what expression is used to decide whether to activate the path that forwards the data in a given clock cycle

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

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions

Question

6. How do histories influence the process of identity formation?

Answered: 1 week ago