341HW4.docx.docx - CECS 341 HW 4(4.22 1-4 4.18 4.27.1 4.29...

This preview shows page 1 - 2 out of 5 pages.

CECS 341 HW 4 (4.22 1-4, 4.18, 4.27.1, 4.29 1-3) 4.22.1) Draw a pipeline diagram to show were the code above will stall.
4.22.2) In general, is it possible to reduce the number of stalls/NOPs resulting from this structural hazard by reordering code?
4.22.3) Must this structural hazard be handled in hardware? We have seen that data hazards can be eliminated by adding NOPs to the code. Can you do the same with this structural hazard? If so, explain how. If not, explain why not

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture