Approximately how many stalls would you expect this

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

4.22.4) Approximately how many stalls would you expect this structural hazard to generate in a typical program? (Use the instruction mix from Exercise 4.8.)
It would take about 5 stalls to resolve the structural hazard generated in this program, one for each type of instruction. 4.18) Assume that X1 is initialized to 11 and X2 is initialized to 22. Suppose you executed the code below on a version of the pipeline from Section 4.5 that does not handle data hazards (i.e., the programmer is responsible for addressing data hazards by inserting NOP instructions where necessary). What would the final values of registers X3 and X4 be?
4.27.1) If there is no forwarding or hazard detection, insert NOPs to ensure correct execution.
4.29.1) What is the accuracy of always-taken and always-not-taken predictors for this sequence of branch outcomes?

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture