Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. (30 pts) The basic pipeline for DLX has five stages: IF, ID, EX, MEM, and WB. Assuming all memory accesses take 1 clock cycle

image text in transcribed
1. (30 pts) The basic pipeline for DLX has five stages: IF, ID, EX, MEM, and WB. Assuming all memory accesses take 1 clock cycle a. Show the timing of the following instruction sequence for the DLX pipeline without forwarding. How many clock cycles does this code take to execute? LW R2, b(RO) LW R3, c(RO) ADD R1, R2, R3 SW a(RO), R1 LW R5, e(RO) LW R6, f(RO) SUB R4:R5, R6 SW d(RO), R4 b. Show the timing of the above instruction sequence for the DLX pipeline with forwarding. How many clock cycles does this code take to execute? LW R2, b(RO) LW R3, c(RO) ADD R1, R2, R3 sw a(RO), R1 LW R5, e(RO) LW R6, f(RO) SUB R4, R5, R6 SW d(RO), R4 Rearrange the instruction ordering of the above code to avoid the load interlock. Show the timing of your new code for the DLX pipeline with forwarding. How many cycles does your code take to execute? c

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

Online Systems For Physicians And Medical Professionals How To Use And Access Databases

Authors: Harley Bjelland

1st Edition

1878487442, 9781878487445

More Books

Students also viewed these Databases questions