Page 1 of 1

2. The following snippets of assembly include data hazards. Indicate where to insert no-ops and how many, or which instr

Posted: Thu May 05, 2022 2:07 pm
by answerhappygod
2 The Following Snippets Of Assembly Include Data Hazards Indicate Where To Insert No Ops And How Many Or Which Instr 1
2 The Following Snippets Of Assembly Include Data Hazards Indicate Where To Insert No Ops And How Many Or Which Instr 1 (29.29 KiB) Viewed 47 times
2. The following snippets of assembly include data hazards. Indicate where to insert no-ops and how many, or which instructions to stall, in order for this code to run on the 5-stage processor discussed in class. Assume no forwarding, and the register file is written to on the falling edge. Assume there is code above and below the provided code. Each part of this question is independent from the other parts. a. AND RO, R1, R3 ADD R1, R2, RO SUB R7, R8, R9 ORR R3, R1, R8 b. AND RO, R1, R3 LDR R1, [R2, #01 ORR R1, R3, R8 LDR R2, [R1, #0] AND R1, R3, R6 ORR R2, R3, 6