Architecture


Explain Hardware based Speculation


Download 307.87 Kb.
bet7/12
Sana27.01.2023
Hajmi307.87 Kb.
#1131454
1   2   3   4   5   6   7   8   9   ...   12

Explain Hardware based Speculation

Hardware based speculation


  • Execute instructions along predicted execution paths but only commit the results if prediction was correct

  • Instruction commit: allowing an instruction to update the register file when instruction is no longer speculative

  • Need an additional piece of hardware to prevent any irrevocable action until an instruction commits. i.e. updating state or taking an execution.

Reorder Buffer


  • Reorder buffer – holds the result of instruction between completion and commit

  • Four fields:

    • Instruction type: branch/store/register

    • Destination field: register number

    • Value field: output value

    • Ready field: completed execution?

  • Modify reservation stations:

  • Register values and memory values are not written until an instruction commits

  • On misprediction:

  • Exceptions:

    • Not recognized until it is ready to commit

Multiple issue and static scheduling


  • To achieve CPI < 1, need to complete multiple instructions per clock

  • Solutions:

    • Statically scheduled superscalar processors

    • VLIW (very long instruction word) processors

    • dynamically scheduled superscalar processors

Limitations of ILP


    1. An instruction stream needs to be run on an ideal processor with no significant limitations.

    2. The ideal processor always predicts branches correctly, has no structural hazards.

    3. This eliminates all control and name dependencies. (only data dependencies)

    4. Theoretically it is possible for the last dynamically executed instruction in the program to be scheduled on the first cycle.

Download 307.87 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   ...   12




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling