Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3. The following sequence of instructions is executed on a 5-stage pipelined datapath: add r5,r2,r1 lw r3,4(r5) w r2,0(r2) or r3,r5,r3 sw r3,0(r5) i. Indicate
3. The following sequence of instructions is executed on a 5-stage pipelined datapath: add r5,r2,r1 lw r3,4(r5) w r2,0(r2) or r3,r5,r3 sw r3,0(r5) i. Indicate dependences (data hazards). If there is no forwarding or hazard detection, insert NOPs to ensure correct execution. ii. Use a combination of instruction reordering and forwarding (only when needed if reordering is not enough) to fix the data hazards if possible; beyond this, if NOPs (stal are needed use them. 3. The following sequence of instructions is executed on a 5-stage pipelined datapath: add r5,r2,r1 lw r3,4(r5) w r2,0(r2) or r3,r5,r3 sw r3,0(r5) i. Indicate dependences (data hazards). If there is no forwarding or hazard detection, insert NOPs to ensure correct execution. ii. Use a combination of instruction reordering and forwarding (only when needed if reordering is not enough) to fix the data hazards if possible; beyond this, if NOPs (stal are needed use them
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started