Answered step by step
Verified Expert Solution
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),
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started