Consider the 2-issue VLIW hardware discussed in class. For each question, a pair-of-a-pair (a quatrain? a square?) of SRC instructions are given in program (standard) order. This is the exact same order we saw in class. Determine the behavior of the system with regards to the displayed operations.
1. Left Instruction Right Instruction
or r12, r13, r6neg r20, r8
sub r5, r14, r19ld r7, 200(r14)
2. Left Instruction
Right Instruction
brl, r8, r1, r25
add r4, r29, r2
not r22, r9
or r10, r7, r13
3.
Left Instruction
Right Instruction
nop
nop
nop
nop
4. Left InstructionRight Instruction
sub r10, r18, r15ld r15, 312(r20)
add r3, r8, r19add r6, r16, r17
5.
Left Instruction
Right Instruction
st r30, 400
add r8, r13, r25
sub r12, r30, r6
brz r7, r22
6.
Left Instruction
Right Instruction
add r2, r3, r4
addi r7, r7, -1
ld r5, r2
addi r20, r3, 4
7.
Left Instruction
Right Instruction
ldr r3, 100
addi r15, r16, #17
ld r4, 100(r19)
brmi r20, r21
8. Left InstructionRight Instruction
addi r3, r4, #5andi r11, r10, #255
brpl r9, r21add r15, r18, r19
9. Left Instruction
Right Instruction
addi r18, r2, #-40
and r13, r14, r15
shc r17, r4, 16
sub r5, r6, r19
10. Left InstructionRight Instruction
shr r22, r20, r5addi r8, r10, #-1
neg r2, r14add r21, r25, r4
a) The sequence of instructions creates a data hazard that will require forwarding
b) The sequence of instructions create a data hazard that will require stalling
c) The sequence includes an illegal instruction (such as an instruction in a pipeline that can’t support it)
d) There are no problems with this sequence of instructions.Please Answer these questions
Leave a Reply