Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1 (40 pts) In this exercise, we examine how data dependences affect execution in the basic 5-stage pipeline described in Section 4.5. Problems in

image text in transcribed

Problem 1 (40 pts) In this exercise, we examine how data dependences affect execution in the basic 5-stage pipeline described in Section 4.5. Problems in this exercise refer to the following sequence of instructions: ADD R1, R2, R3 SUB R2,R1,R2 XOR R1, R1,R2 Also, assume the following cycle times for each of the options related to forwarding Without Forwarding With Full Forwarding With ALU-ALU Forwarding Only 250ps 300ps 290ps Without forwarding, there is no additional forwarding paths. Note that a new value can be written into a register in the first half of a clock cycle and this value can be read from the same register in the second half of a clock cycle. Full forwarding means the pipeline has two forwarding paths: from EX/MEM to EX (also called ALU-ALU forwarding), and from MEM/WB to EX. 1.1) Indicate dependences and their type (RAW, WAR, WAW, RAR). [Hint: For example, there is a RAW (read-after-write) on r2 from 12 to I3.] 1.2) Assume that there is no forwarding in this pipelined processor. Please add nop instructions to ensure correctness. 1.3) Assume that there is full forwarding. Please add nop instructions to ensure correctness. 1.4) What is the total execution time (in wall clock 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

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

3. What strategies might you use?

Answered: 1 week ago

Question

ANALYZE the emerging emphasis on employee recognition.

Answered: 1 week ago