Chapter Six Pipelining - PowerPoint PPT Presentation

1 / 7
About This Presentation
Title:

Chapter Six Pipelining

Description:

Chapter Six Pipelining Part II – PowerPoint PPT presentation

Number of Views:17
Avg rating:3.0/5.0
Slides: 8
Provided by: toda9
Category:

less

Transcript and Presenter's Notes

Title: Chapter Six Pipelining


1
Chapter SixPipelining Part II
2
Improving Performance
  • Try and avoid stalls! E.g., reorder these
    instructions
  • lw t0, 0(t1)
  • lw t2, 4(t1)
  • sw t2, 0(t1)
  • sw t0, 4(t1)
  • Dynamic Pipeline Scheduling
  • Hardware chooses which instructions to execute
    next
  • Will execute instructions out of order (e.g.,
    doesnt wait for a dependency to be resolved, but
    rather keeps going!)
  • Speculates on branches and keeps the pipeline
    full (may need to rollback if prediction
    incorrect)
  • Trying to exploit instruction-level parallelism

3
Advanced Pipelining
  • Increase the depth of the pipeline
  • Start more than one instruction each cycle
    (multiple issue)
  • Loop unrolling to expose more ILP (better
    scheduling)
  • Superscalar processors
  • DEC Alpha 21264 9 stage pipeline, 6 instruction
    issue
  • All modern processors are superscalar and issue
    multiple instructions usually with some
    limitations (e.g., different pipes)
  • VLIW very long instruction word, static
    multiple issue (relies more on compiler
    technology)
  • This class has given you the background you need
    to learn more!

4
Superscalar Pipelining
  • Superscalar start more than one instruction in
    the same cycle
  • Need to replicate the internal components of the
    computer
  • A pair of instruction consists of ALU or branch
    instruction, and load or store instruction
  • Example Static two-issue pipeline
  • Instruction type Pipe stages
  • ALU or branch IF ID EX MEM WB
  • Load or store IF ID EX MEM WB
  • ALU or branch IF ID EX MEM WB
  • Load or store IF ID EX MEM WB
  • ALU or branch IF ID EX
    MEM WB
  • Load or store IF ID EX
    MEM WB
  • ALU or branch IF ID
    EX MEM WB
  • Load or store IF ID
    EX MEM WB

5
Superscalar Pipelining
  • Static two-issue datapath

6
Dynamic Pipelining
  • Dynamic pipelining the use of extra hard ware to
    avoid pipeline hazards
  • Pipeline is divided into 3 units instruction
    fetch and issue unit, execute units and a commit
    unit
  • Multiple independent state machines perform
    instruction execution

7
Chapter 6 Summary
  • Pipelining does not improve latency, but does
    improve throughput
Write a Comment
User Comments (0)
About PowerShow.com