Comp206 Inclass8
Comp206 Inclass8
Inclass #8
next inst.
branch write data from ALU/mem.
back into reg.
• State elements
• With the help of the data & control paths you’ve seen in
the lecture and MARS X-Ray, identify the full data &
control path of this MIPS snippet.
• Data hazard
Need to wait for previous instruction to complete its data read/write
Forwarding: EX → EX
Forwarding: MEM → EX
• How many cycles does the code block take with forwarding and reordering?