Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Q: For the following pairs of instructions, indicate how manybubbles must be pla

ID: 3615997 • Letter: Q

Question

Q:   For the following pairs of instructions, indicate how manybubbles must be placed between them

withoutforwarding and with forwarding in order to resolve the dependence.You are required to fill the

followingtable. [1 Cell = 1 Mark]

Instruction 1.   ld r2, (r4)

                          add r6, r4, r2

Instruction2.    lar r31, -12

                         br r31

Instruction 3.   br31

                        addi r31, r31, -20

Instruction 4.   add r0,r2, r4

                          st r0, 12(r2)

Instruction 5.   add r0,r2, r4

                            sub r6, r0, r0

Condition

Instruction-1

Instruction-2

Instruction-3

Instruction-4

Instruction-5

Stallee

Staller

Hazard Register

Bubbles without forwarding

Bubbles with forwarding

Condition

Instruction-1

Instruction-2

Instruction-3

Instruction-4

Instruction-5

Stallee

Staller

Hazard Register

Bubbles without forwarding

Bubbles with forwarding

Explanation / Answer

Bubbles without forwarding