Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Subtitle Q3. Assume that the following code should be executed in a 6-stage (IF(instruction fetch), ID(instruction decode), EX1(first step of execution), EX2(second step of execution),

image text in transcribed
Subtitle Q3. Assume that the following code should be executed in a 6-stage (IF(instruction fetch), ID(instruction decode), EX1(first step of execution), EX2(second step of execution), EX3 ( third step of execution), SR( save the result)) pipeline. LOAD R1, #X LOAD R2, #Y ADD R3, R1, R2 STORE M(R10), R3 (store R3 in the memory location addressed by R10) LOAD R4, #Z SUB R5, R2, R4 STORE M(R20), RS Hint: the first operand is the destination. a) Construct a space-time diagram. b) Find a valid reordering of the given code that will reduce the number of needed cycles, & then construct another space-time diagram for the reordered code

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

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions