Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. In this exercise, we examine how data dependences affect execution in the basic 5-stage pipeline described in Chapter 4.5 (An overview of pipelining). Problems

image text in transcribed

2. In this exercise, we examine how data dependences affect execution in the basic 5-stage pipeline described in Chapter 4.5 (An overview of pipelining). Problems in this exercise refer to the following sequence of instructions: add r3, ri, r2 add r2, rl, r3 add r2, r2, r3 Also, assume registers can be read and written in the same cycle and the following cycle times for each of the options related to forwarding: Without Forwarding 200ps With Full Forwarding 350ps With ALU-ALU Forwarding Only 300ps a. Indicate ALL dependences and their type (RAW/WAR/WAW). b. Assume there is no forwarding in this pipelined processor. Draw a pipeline execution diagram. Insert nop instructions to eliminate any hazards. c. Assume there is full forwarding. Draw a pipeline execution diagram. Insert nop instructions to eliminate any hazards. d. What is the total execution time of this instruction sequence without forwarding and with full forwarding? What is the speedup achieved by adding full forwarding to a pipeline that had no forwarding? e. Assume there is ALU-ALU forwarding only (no forwarding from the MEM to the EX stage). Draw a pipeline execution diagram. Insert nop instructions to eliminate any hazards. f. What is the total execution time of this instruction sequence with only ALU-ALU forwarding? What is the speedup over a no-forwarding pipeline? 2. In this exercise, we examine how data dependences affect execution in the basic 5-stage pipeline described in Chapter 4.5 (An overview of pipelining). Problems in this exercise refer to the following sequence of instructions: add r3, ri, r2 add r2, rl, r3 add r2, r2, r3 Also, assume registers can be read and written in the same cycle and the following cycle times for each of the options related to forwarding: Without Forwarding 200ps With Full Forwarding 350ps With ALU-ALU Forwarding Only 300ps a. Indicate ALL dependences and their type (RAW/WAR/WAW). b. Assume there is no forwarding in this pipelined processor. Draw a pipeline execution diagram. Insert nop instructions to eliminate any hazards. c. Assume there is full forwarding. Draw a pipeline execution diagram. Insert nop instructions to eliminate any hazards. d. What is the total execution time of this instruction sequence without forwarding and with full forwarding? What is the speedup achieved by adding full forwarding to a pipeline that had no forwarding? e. Assume there is ALU-ALU forwarding only (no forwarding from the MEM to the EX stage). Draw a pipeline execution diagram. Insert nop instructions to eliminate any hazards. f. What is the total execution time of this instruction sequence with only ALU-ALU forwarding? What is the speedup over a no-forwarding pipeline

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

Microsoft Outlook 2023

Authors: James Holler

1st Edition

B0BP9P1VWJ, 979-8367217322

More Books

Students also viewed these Databases questions

Question

3 Execute this PRP and evaluate the results.

Answered: 1 week ago

Question

=+30-3 Discuss the violence-viewing effect.

Answered: 1 week ago

Question

why we face Listening Challenges?

Answered: 1 week ago

Question

what is Listening in Context?

Answered: 1 week ago