Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Forwarding unit performs the following checks to detect MEM hazard in which the data is forwarded from the MEM/WB interstage buffer (precisely speaking, from

image text in transcribed

image text in transcribed

The Forwarding unit performs the following checks to detect MEM hazard in which the data is forwarded from the MEM/WB interstage buffer (precisely speaking, from the MUX controlled by the MemtoReg signal).

// Check for RegisterRs (Check for RegisterRt is similar)

if (MEM/WB.RegWrite

and (MEM/WB.RegisterRd != 0)

and not (EX/MEM.RegWrite and (EX/MEM.RegisterRd !=0)) and (EX/MEM.RegisterRd != ID/EX.RegisterRs)

and (MEM/WB.RegisterRd = ID/EX.RegisterRs))

// condition #1

// condition #2

// condition #3 // (included in condition #3)

// condition #4

a) [6 points] Why should the Forwarding unit check condition #1? Be precise.

b) [6 points] Why should the Forwarding unit check condition #2? Be precise.

c) [6 points] Why should the Forwarding unit check condition #3? Be precise.

IF: Instruction fetch ID: Instruction decode and register read Ex: Execute/Address calc MEM: Memory Access WB: Write back 4 nstr (25:21 (koad-use) DVEX.RegisterRt EX Shift left 2 Branch MemtoReg MemWrite nstr [31:261 Instr [25:21) Read register 1 addresS Instr [20:16] data 1 Instr [31:0] register 2 ALU Write data 2 sters Data Sign- extend 16-32 Instr [15:0] ALU Instr [5:0] Instr [20:18] IM Instr [15:11 Forwarding IFID ID/EX EXIMEM MEM/NB IF: Instruction fetch ID: Instruction decode and register read Ex: Execute/Address calc MEM: Memory Access WB: Write back 4 nstr (25:21 (koad-use) DVEX.RegisterRt EX Shift left 2 Branch MemtoReg MemWrite nstr [31:261 Instr [25:21) Read register 1 addresS Instr [20:16] data 1 Instr [31:0] register 2 ALU Write data 2 sters Data Sign- extend 16-32 Instr [15:0] ALU Instr [5:0] Instr [20:18] IM Instr [15:11 Forwarding IFID ID/EX EXIMEM MEM/NB

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_2

Step: 3

blur-text-image_3

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

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions

Question

=+1. What does social identity theory say about groups?

Answered: 1 week ago

Question

5 9 5 . .

Answered: 1 week ago

Question

2. Identify the purpose of your speech

Answered: 1 week ago