Q:1 For the following pairs of instructions, indicate how manybubbles must be pl
ID: 3616055 • Letter: Q
Question
Q:1 For the following pairs of instructions, indicate how manybubbles must be placed between them without forwarding and withforwarding in order to resolve the ependence. You are required tofill the following table. [1 Cell = 1 Mark]
1. ld r2, (r4)
add r6, r4, r2
2. lar r31, -12
br r31
3. br 31
addi r31, r31, -20
4. add r0, r2, r4
st r0, 12(r2)
5. add r0, r2, r4
sub r6, r0, r0
Condition
Instruction-1
Instruction-2
Instruction-3
Instruction-4
Instruction-5
Staller
Stallee
HazardRegister
Bubbles withoutforwarding
Bubbles withforwarding
Condition
Instruction-1
Instruction-2
Instruction-3
Instruction-4
Instruction-5
Staller
Stallee
HazardRegister
Bubbles withoutforwarding
Bubbles withforwarding
Explanation / Answer
*Staller*
add
br
addi
st
sub
*Stallee*
ld
lar
br
add
add
*Hazard Register*
r2
r31
N/A
r0
r0
*Bubbles Without Forwarding*
3
2
0
2
2
*Bubbles with forwarding*
2
1
0
1
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.