PipeLining in Microprocessors
PipeLining in Microprocessors
ENS 5257:
MICROPROCESSOR SYSTEMS
PRESENTATION BY
SAJID HAYAT
What Is Pipelining?
Pipelining is almost used by all of the
Engine
Body
Painting
hour.
3hrs
Engin
e
Body
3hrs
3hrs
Paint
Engin
e
Body
Paint
Engin
e
Body
Paint
1hr
1hr
1hr
Engin
e
Body
Paint
Engin
e
Body
Paint
Engin
e
Body
1hr
1hr
Paint
Pipelining characteristics
In CPU, the concept of pipelining is such that
instruction
instruction
Number of stages
Pipelining Characteristics
Pipelining reduces the average instruction
Latency
Throughput
finishing of instructions
Fetch Cycle
Instruction Decode / Register Fetch Cycle
Execution Cycle
Memory Access Cycle
Write Back Cycle
into CPU
The PC is then incremented which represents
the memory address of next instruction
Execution Cycle
Write-Back Cycle
In Register Register instruction, the resulting
Pipelining Example
Assuming a 5 stage pipeline in which each
Pipelining Hazards
The hazards prevent the next instruction in an
Structural Hazards
They occur due to resource conflicts when
Data Hazards
Control Hazards
The control hazard occurs if an instruction
Conclusion
Pipelining increases the efficiency of the
processor considerably
The Pipeline Hazards must be addressed
properly
The performance gained by pipelining
depends on avoiding the Pipeline stalls
because they degrade the overall throughput
References
1.
2.
3.
4.
5.
http://www.cs.iastate.edu/~prabhu/Tutorial/PIPELINE/hazar
ds.html
http://arstechnica.com/features/2004/09/pipelining-2/
http://www.psut.edu.jo/sites/qaralleh/CO/co_doc/chapte
r%208%20-%20%20Pipelining.ppt
www.engr.mun.ca/~venky/Pipelining
http://www.techrepublic.com/article/solutionbase-how-pipe
lining-and-multiple-cores-help-speed-cpus/
Thank
you