Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started