Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SW 2. (20 pts.) In this exercise, we examine how data dependences affect execution in the basic five-stage pipeline described during the lecture. The following

image text in transcribed

SW 2. (20 pts.) In this exercise, we examine how data dependences affect execution in the basic five-stage pipeline described during the lecture. The following questions refer to the below sequence of instructions: lw $5, -16 ( $5) $5, -16 $5) add $5, $5, $5 a) (3 pts.) Indicate dependences and their type. b) (3 pts.) Assume there is no forwarding in this pipelined processor. Indicate hazards and add nop instructions to eliminate them. c) (3 pts.) Assume there is full forwarding. Indicate hazards and add nop instructions to eliminate them. The remaining problems in this exercise assume the following clock cycle times: Without forwarding With full forwarding With ALU-ALU forwarding only 300ps 400ps 360ps d) (4 pts.) What is the total execution time of this instruction sequence without forwarding and with full forwarding? What is the speed-up achieved by adding full forwarding to a pipeline that had no forwarding? e) (3 pts.) Add nop instructions to this code to eliminate hazards if there is ALU-ALU forwarding only (forwarding from EX/MEM staging register, but no forwarding from the MEM/WB staging register)? f) (4 pts.) What is the total execution time of this instruction sequence with only ALU-ALU forwarding? What is the speed-up 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

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

Microsoft Visual Basic 2005 For Windows Mobile Web Office And Database Applications Comprehensive

Authors: Gary B. Shelly, Thomas J. Cashman, Corinne Hoisington

1st Edition

0619254823, 978-0619254827

Students also viewed these Databases questions

Question

Did the prospectus contain material misstatements and omissions?

Answered: 1 week ago

Question

Discuss consumer-driven health plans.

Answered: 1 week ago