c6 Cao
c6 Cao
c6 Cao
BEC30303
Computer Architecture and Organization
Chapter 6:
Pipelining
Mohamad Hairol Jabbar
Department of Computer Engineering
http://fkee.uthm.edu.my/mhjabbar
OUTLINE
1. Pipeline organization
2. Data dependencies
3. Pipeline issues
4. Branch delays
5. Superscalar operation
6. Performance evaluation
Time
30 40 20 30 40 20 30 40 20 30 40 20
Problem:
- Long cycle time (means what?), to finish each instruction
Source: fetweb.ju.edu.jo
Problem:
- improve the clock cycle period, but some instructions
finish longer than the single cycle implementation Source: fetweb.ju.edu.jo
Advantages:
- Once the pipeline is full, we get CPI = 1 (means what?)
Source: fetweb.ju.edu.jo
Source: http://www.cis.upenn.edu/
Source: http://cseweb.ucsd.edu/
1 2 3 4 5 6 7
1 2 3 4 5 6 7
Source: http://cseweb.ucsd.edu/
What will
happen to
the CPI?
1 2 3 4 5 6 7
Source: www.cs.utexas.edu/
Source: www.cs.utexas.edu/
Result is forwarded to
the ALU needed for next
instruction execution
Structural
hazard due to
the accessing
the same
registers at
the same time
Source: www.cs.utexas.edu/
1 2 3 4 5 6 7
Source: http://cseweb.ucsd.edu/
1 2 3 4 5 6 7
Stall (inserting
bubbles) the pipeline
for several clock
cycles before the real
Source: http://cseweb.ucsd.edu/
instruction is fetched
Source: http://home.deib.polimi.it/
Source: http://home.deib.polimi.it/
Source: http://home.deib.polimi.it/
When it is right, no
penalty (no waste
clock cycles)
Source: http://cseweb.ucsd.edu/
Same performance as
stalling when it is wrong
Source: http://cseweb.ucsd.edu/
Source: http://www.owlnet.rice.edu/
Source: www.ida.liu.se/
Source: www.ida.liu.se/