The Wonderful World of Pipelining

An Overview

CS 561 - CS 350 Pipelining




Background

 

Laundry Example

 

RISC Pipelines

 

Pipelining Hazards

 

Examples

 

 

 

© 2004


Examples


1) Find the hazard in the following code:

          lw $t0, 0($t1)
      lw $t2, 4($t1)
      sw $t2, 0($t1)
      sw $t0, 4($t1)

    Reorder to avoid pipeline stalls.  

Click for answer

 

2) True or False: Pipelining increases the execution speed of a machine.

Click for answer

 

 

 

      BACK Data Hazards