Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Data Hazards Consider the MIPS assembly language code segment given below. I1: add $s1, $s2, $s3 I2: add $s2, $s1, $s4 I3: add $s1, $s1,

Data Hazards

Consider the MIPS assembly language code segment given below.

I1: add $s1, $s2, $s3

I2: add $s2, $s1, $s4

I3: add $s1, $s1, $s2

The clock period for the MIPS pipelined processor is specified below for the processor with and without forwarding logic.

With Forwarding 150 psec

Without Forwarding 200 psec

(a) Identify the data dependencies and their type (i.e. RAW, WAR, and WAW). Use the following format: I2 I4, Register $t0, RAW To indicate a RAW data dependency between instructions I2 and I4, due to register $t0.

(b) Assume that there is NO forwarding logic in the processor. Identify the RAW data hazards. Use the following format: I2 I3, Register $t4 To indicate a data hazard between instructions I2 and I3, because of register $t4.

(c) Assume that there is forwarding logic in the processor. Identify the RAW data hazards.

(d) What is the total execution time (ET) of this code segment on the processor without forwarding logic and with forwarding logic? What is the speedup achieved by adding forwarding logic to a pipeline that did not have it?

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

Lab Manual For Database Development

Authors: Rachelle Reese

1st Custom Edition

1256741736, 978-1256741732

More Books

Students also viewed these Databases questions

Question

9. Mohawk Industries Inc.

Answered: 1 week ago

Question

8. Satyam Computer Services Limited

Answered: 1 week ago

Question

2. Explain how the role of training is changing.

Answered: 1 week ago