Pipelining Unit 3
Pipelining Unit 3
Pipelining
• A Pipelining is a series of stages, where some work is done at
each stage in parallel.
• The stages are connected one to the next to form a pipe -
instructions enter at one end, progress through the stages, and exit
at the other end.
Pipelining Case: Laundry
CS211 9
Decode Instruction
• The DI stage is responsible for decoding the instruction
and sending out the various control lines to the other
parts of the processor.
CS211 10
Calculate Operands
• The CO stage is where any calculations are performed.
The main component in this stage is the ALU. The
ALU is made up of arithmetic, logic and capabilities.
CS211 11
Fetch Operands and Execute Instruction
• The FO and EI stages are responsible for storing and
loading values to and from memory. They also responsible
for input and output from the processor respectively.
CS211 12
Write Operands
• The WO stage is responsible for writing
the result of a calculation, memory access or input
into the register file.
CS211 13
Six Stage
Instruction
Pipeline
Timing Diagram for
Instruction Pipeline
Operation
6
Pipeline Performance: Clock &
Timing
Si S
i+1
τ τm d
Latch delay : d
τ = max {τm
}+d
Pipeline frequency : f
CS211 16
7
Pipeline Performance: Speedup & Efficiency
Tk = [ k + (n-1)] τ
T1 = n k τ
Speedup factor T1 nk nk
Sk = τ =
Tk [k
+ (n-1)] τ k + (n-1)
= CS211 17
Advantages