Docsity

In Order Execution-Advance Computer Architecture-Lecture Slides, Slides of Advanced Computer Architecture

Partial preview of the text

Download In Order Execution-Advance Computer Architecture-Lecture Slides and more Slides Advanced Computer Architecture in PDF only on Docsity!

Today's Topics

Recap - Lecture 11- 12 Out-of-Order Execution Dynamic Scheduling Scoreboard Technique Summary

Recap: Lecture 12

  • FP and Integer Multiplier
  • FP and Integer Divider Here, we observed that : - Only one instruction is issued on every clock cycle - the integer ADD instructions go through the FP pipeline as they go through in standard pipeline – as the integer ALU operations have ZERO latency - the FP add and FP/integer multiply and divide instructions enter into loop when they reach EX-stage due to longer latencies of these operations – thus increases the number of stalls before the instruction is issued to EX stage

Recap: Lecture 12

WAW hazard (The j th instruction writes prior to the i th instruction; the i th instruction overwrites the result of j th instruction)

Recap: Lecture 12

Two ways to resolve WAW hazard

  • Delay the issue of j th instruction until the i th instruction enters the MEM stage
  • Stamp out the i th instruction by detecting the hazard and changing the control (WB) so that the i th instruction does not write. Hence, the j th instruction can be issued right-away.

In-Order Execution

Simple Pipelined datapath facilitates only the In-order instruction execution, i.e., Instructions are fetched, decoded and issued in

the sequence of the program and

no later instruction can proceed if an instruction is stalled due to hazard – structural or data dependence

In-order Execution … Cont’d For example: in the code DIV.D F0, F2, F ADD.D F10, F0, F SUB.D F12, F8, F

In-order Execution: MIPS 5-stage Pipeline The MIPS 5-stage pipeline, both the structural and data hazards are checked during the Instruction Decode (ID) stage; and the instruction is issued from ID stage, if it could execute properly Here, the issue process, at ID stage, is separated into two parts: Checking the structural hazard Waiting for the absence of data hazard

Out-of-order Execution: MIPS 5-stage pipeline DIV.D F0, F2, F ADD.D F10, F0, F SUB.D F12, F8, F

Basic Problems of Out-of-order Execution Consider the example FP code DIV.D F0, F2, F ADD.D F6, F0, F SUB.D F8, F10, F MUL.D F6, F10, F

Example Explained: RAW Hazard

Example Explained: WAW hazard

Today's Topics

Out-of-Order Execution Problems of Out-of-order execution Dynamic Scheduling Scoreboard Technique Summary

Dynamic Scheduling

  • Issue:
  • Read Operand:

Dynamic Scheduling