Question: Question 6 : Instruction Reordering ( 1 5 points ) Consider the following sequence of instructions: ins 1 : l w x 4 , 0

Question 6: Instruction Reordering (15 points)
Consider the following sequence of instructions:
ins1: lwx4,0(x2)
ins2: add x4,x4,x3
ins3: swx4,0(x2)
ins4: addi x2,x2,04
ins5: lwx5,0(x2)
ins6: add x4,x4,x5
ins7: addi x2,x2,0x4
ins8: swx4,0(x2)
Even if the forwarding is enabled, there remain some stalls in the pipeline. Try to reorder the
instructions to avoid any remaining pipeline stalls (show the new sequence). How many cycles does
it take to execute the given instructions when instructions are reordered? (Note: make sure you do
not violate any dependencies when you reorder the instructions)
You should use similar table representation as given in the previous question for showing the
progression of instructions in the pipeline.
Question 6 : Instruction Reordering ( 1 5 points

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 Programming Questions!