1. Consider the following sequence of seven instructions:
1. ADD R1, R2, R3
2. SUB R4, R1, R5
3. BEQ R4, 0, 6 (this means Branch to instruction 6 if R4 equals zero)
4. MUL R6, R4, R7
5. ADD R8, R6, R9
6. DIV R10, R8, R11
7. ADD R12, R10, R13
a. Identify and classify any RAW hazards. Specify the affected instructions and the pipeline
stages where hazards occur.
b. Determine whether each identified RAW hazard causes a stall in the pipeline. If so,
describe how many cycles the stall and Propose data forwarding solutions. Specify the stage
from which forwarding should occur.
c. Identify and analyze any control hazards introduced by the branch instruction (BEQ).
Discuss potential stalls and their impact on pipeline performance. Discuss strategies for
handling control hazards