Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. [15 points] Suppose that a buggy implementation of the MIPS pipeline does not forward the write register # through the ID/EX, EXMEM, and MEM/WB

image text in transcribed

2. [15 points] Suppose that a buggy implementation of the MIPS pipeline does not forward the write register # through the ID/EX, EXMEM, and MEM/WB interstage buffers. Instead, it directly feed the output of the MUX controlled by RegDst as shown: Write register Write data RegDst Instr[20-16 0 M Instr[15-11 X IF/ ID/EX EX/MEM MEM/WB Everything else in the pipeline is implemented as shown on the above diagram. For sw instruction, the control signal RegDst is actually X (don't care), but let's assume that it is set to 0 for sw Suppose that, initially, $t1=0x1000, $t2=0x2000, $t3=0x3000, and $t4=0x4000. Consider the execution of the following code in this buggy pipeline. Determine the final values of the $t1, $t2, and $t3 registers after all the instruction leave the pipeline add $tl, $t2, $t3 sw $t2, 0x0000 ($t4) Sw $t2, 0x1000 ($t4) add $t2, $t3, $t4 s $t3, 0x2000 ($t4) Sw $t3, 0x3000 ($t4) Sw $t3, 0x4000 ($t4) #1 #2 #3 #4 #5 #6 #7 2. [15 points] Suppose that a buggy implementation of the MIPS pipeline does not forward the write register # through the ID/EX, EXMEM, and MEM/WB interstage buffers. Instead, it directly feed the output of the MUX controlled by RegDst as shown: Write register Write data RegDst Instr[20-16 0 M Instr[15-11 X IF/ ID/EX EX/MEM MEM/WB Everything else in the pipeline is implemented as shown on the above diagram. For sw instruction, the control signal RegDst is actually X (don't care), but let's assume that it is set to 0 for sw Suppose that, initially, $t1=0x1000, $t2=0x2000, $t3=0x3000, and $t4=0x4000. Consider the execution of the following code in this buggy pipeline. Determine the final values of the $t1, $t2, and $t3 registers after all the instruction leave the pipeline add $tl, $t2, $t3 sw $t2, 0x0000 ($t4) Sw $t2, 0x1000 ($t4) add $t2, $t3, $t4 s $t3, 0x2000 ($t4) Sw $t3, 0x3000 ($t4) Sw $t3, 0x4000 ($t4) #1 #2 #3 #4 #5 #6 #7

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

Handbook Of Relational Database Design

Authors: Candace C. Fleming, Barbara Von Halle

1st Edition

0201114348, 978-0201114348

More Books

Students also viewed these Databases questions

Question

Define cost as applied to the valuation of inventories.

Answered: 1 week ago

Question

Defines ethics; p osition and exceptions regarding ethics

Answered: 1 week ago

Question

What is the preferred personality?

Answered: 1 week ago

Question

What is the relationship between humans?

Answered: 1 week ago