Question: The pipelined MIPS datapath executes the following code: lw $ 1 5 , 1 2 ( $ 4 ) lw $ 1 7 , 1

The pipelined MIPS datapath executes the following code:
lw $15,12($4)
lw $17,16($4)
beq $8, $9, skip
sw $18,16($4)
sw $19,16($4)
skip: add $18, $16, $18
Assuming the branch is taken, register $18 is written during cycle number (start counting from
1):
The answer is 9, but please explain why.
The pipelined MIPS datapath executes the

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!