BNCS1209 Chapter 6
BNCS1209 Chapter 6
CHAPTER 5 Pipelining
R1 ← Ai, R2 ← Bi
Multiply, and input Ci
R3 ← R1 * R2, R4 ← Ci
Add Ci to the product
R5 ← R3 + R4
2.Instruction Pipeline
1. Arithmetic Pipeline
An arithmetic pipeline focuses on dividing a
single arithmetic operation (like addition,
multiplication, etc.) into smaller stages.
2. Instruction Pipeline
An instruction pipeline breaks down the entire
instruction fetch-decode-execute cycle into
distinct stages. This might involve fetching the
instruction from memory, decoding it to
understand its operation, fetching operands,
performing the operation, and storing the result.
With instruction pipelining, multiple instructions
can be at different stages of execution
concurrently, improving overall processor
performance.
© ISBAT UNIVERSITY – 2020. 01/19/25
16
from memory.
Decoding the instruction - Finding the type of
instruction.
Executing the instruction - Performing logical
2. Data Hazards
When several instructions are in partial
execution, and if they reference same data
then the problem arises. We must ensure
that next instruction does not attempt to
access data before the current instruction,
because this will lead to incorrect results.
3. Branching
In order to fetch and execute the next
instruction, we must know what that
instruction is. If the present instruction is a
conditional branch, and its result will lead
us to the next instruction, then the next
instruction may not be known until the
current one is processed.
4. Interrupts
Interrupts set unwanted instruction into the
instruction stream. Interrupts effect the
execution of instruction.
5. Data Dependency
It arises when an instruction depends upon
the result of a previous instruction but this
result is not yet available.
Disadvantages of Pipelining
1. The design of pipelined processor is
Thank you