Pipeline Processing
Pipeline Processing
By
Dr. Mausumi Maitra
Professor
Dept. of Information Technology
Govt. College of Engg. and Ceramic Technology
What is Pipelining
A technique used in advanced microprocessors
where the microprocessor begins executing a second
instruction before the first has been completed.
2. Painting
3. Polishing
For simplicity, assume that each task takes one
hour.
Characteristics Of Pipelining
If the stages of a pipeline are not balanced and one
stage is slower than another, the entire throughput of
the pipeline is affected.
Instruction 1 Instruction 2
X X
Instruction 4 Instruction 3
X X
Four sample instructions, executed linearly
5
IF ID EX M W
1
IF ID EX M W
1
IF ID EX M W
1
IF ID EX M W
Memory 2ns
and IO
Write Back 1ns
Advantages/Disadvantages
Advantages:
More efficient use of processor
Quicker time of execution of large number of
instructions
Disadvantages:
Pipelining involves adding hardware to the chip
Inability to continuously run the pipeline
at full speed because of pipeline hazards
which disrupt the smooth execution of the
pipeline.
Instructions in the pipeline stages
Computer Performance
In Pipeline Architecture
Throughput > 1 / Latency
S = n.k.tp / n.tp ~ k
If pipelining is used all tasks must be allotted equal time which should
be the maximum time for a task = 20 ns.
Therefore, time taken to complete 120 jobs
= 80 + 119 X 20 = 2460 ns.
Actual Speed up =Time taken without pipeline / Time taken with pipeline
= 2100 / 1030 = 2.04
Therefore, Efficiency = 2.04 / 4 = 0.5097
% Efficiency = 51 %