Question: Consider the following nonsense code: LD R 3 , 8 0 ( R 4 ) DADDR 1 , R 4 , R 3 SD 1

Consider the following nonsense code:
LD R3,80(R4)
DADDR1,R4,R3
SD 12(R3), R1
(a) If this code is running on a variation 4 MIPS with no data forwarding, how many clock cycles are
required (from IF of first instruction to WB of last instruction)? Be sure to show your work in the
form of a pipeline stage diagram, and explain the cause of each stall cycle.
(b) If this code is running on a variation 4 MIPS with data forwarding, how many clock cycles are
required (from IF of first instruction to WB of last instruction)? Be sure to show your work in the
form of a pipeline stage diagram, and explain the cause of each stall cycle.
 Consider the following nonsense code: LD R3,80(R4) DADDR1,R4,R3 SD 12(R3), R1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!