Question: Need help with this problem. Please show work and steps thank you. 1. The following code is to be run on the pipelined MIPS CPU

Need help with this problem. Please show work and steps thank you.

Need help with this problem. Please show work and steps thank you.

1. The following code is to be run on the pipelined MIPS

1. The following code is to be run on the pipelined MIPS CPU which stalls on data hazards and does not forward. lw $t1, 0 ($a0) beg $t1, $0, targl #this branch is not taken addi $a0, $a0, 4 add $t1,$t1, $t3 lw $t1, 0 ($t1) add $v0, $v0, $t1 Show the pipeline timing on the diagrams for the following conditions. Use the two- letter abbreviations for each stage: IF, RF, EX, M, WB a. Assume stalling for both control (branch) hazards and data hazards. For control hazards, IF of the dependent (later) instruction aligns with WB of the earlier instruction. For data hazards, RF of the dependent instruction must follow WB of the earlier instruction. Cycle 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 22 21 22 lw $t1, 0($ao) beg $t1, $o, targ1 addi $ao, $ao, 4 add $t1, $t1, $t3 lw $t1, 0($t1) add $v0, $v0, $t1 1. The following code is to be run on the pipelined MIPS CPU which stalls on data hazards and does not forward. lw $t1, 0 ($a0) beg $t1, $0, targl #this branch is not taken addi $a0, $a0, 4 add $t1,$t1, $t3 lw $t1, 0 ($t1) add $v0, $v0, $t1 Show the pipeline timing on the diagrams for the following conditions. Use the two- letter abbreviations for each stage: IF, RF, EX, M, WB a. Assume stalling for both control (branch) hazards and data hazards. For control hazards, IF of the dependent (later) instruction aligns with WB of the earlier instruction. For data hazards, RF of the dependent instruction must follow WB of the earlier instruction. Cycle 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 22 21 22 lw $t1, 0($ao) beg $t1, $o, targ1 addi $ao, $ao, 4 add $t1, $t1, $t3 lw $t1, 0($t1) add $v0, $v0, $t1

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!