Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6. (2 points Completeness) Forwarding Unit Logic. Consider the following code being executed on a 5-stage MIPS pipelined processor (with a forwarding unit, as shown

image text in transcribedimage text in transcribed

6. (2 points Completeness) Forwarding Unit Logic. Consider the following code being executed on a 5-stage MIPS pipelined processor (with a forwarding unit, as shown in the figure): addi $3, $1, 15 add $8, $4, $2 add $1, $4, $1 sub $7, $6, $2 List the pairs of registers that the forwarding unit is comparing during the 6th cycle of execution. (Hint: Determine which instruction's values are in the ID/EX, EX/MEM, and MEM/WB pipeline registers at the beginning of the 6th cycle, and then check the conditions for forwarding.) IDIEX FAD Ex Data FAD Registe Rt egisterRt Rt orwarding unit 5. (2 points - Completeness) Branch delay slot Consider the following piece of code. To enable greater performance, the compiler should determine what instruction could be safely moved into the branch delay slot (replacing the nop). What choices does the compiler have? Mention all instructions that could be moved into the BDS. (Assume that software register renaming is disabled. Also, instruction re-ordering optimizations are disabled.) lw $4, 4($1) subi $5, $2, 8 add S3, S4, $1 beq S4, 85, label nop sub $6, $3, $2 add $3, $5, $1 ori $5, $6, 2 label: and S2, $4, $1

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

Rules In Database Systems Third International Workshop Rids 97 Sk Vde Sweden June 26 28 1997 Proceedings Lncs 1312

Authors: Andreas Geppert ,Mikael Berndtsson

1997th Edition

3540635165, 978-3540635161

More Books

Students also viewed these Databases questions

Question

name 2 attributes of a vector

Answered: 1 week ago