Unit 6
Unit 6
&
Computer Organization
CI219
Prof. R.B.Sadigale.
UNIT 6 : Pipelining
Memory Delays.
Pipelining Basic Concept
The pipeline organization gives the detailed information about ,how the
instructions are executed.
In the first stage of the pipeline, the program counter (PC) is used to
fetch a new instruction. As other instructions are fetched, execution
proceeds through successive stages.
1. If the destination register of I j is a source register for Ij+1, a data hazard arises.
2. The result of Ij is not written into the register file until cycle 4.
3. However, Ij+1 requires the updated value of the source operand in cycle 3.
5. To ensure correctness, Ij+1 must be stalled in the Decode stage for three cycles,
6. This delay affects subsequent instructions, increasing the total execution time.
Pipeline Issues
The arrow indicates that the ALU result from cycle 3 is used as an
input to the ALU in cycle 4.
Handling Data Dependencies in Software
Data dependencies in a pipeline can be managed by the processor
hardware or by the compiler.
Load instruction may require more than one clock cycle to obtain its
operand from memory.
This may occur because the requested instruction or data are not
found in the cache, resulting in a cache miss.
Memory Delays (Contd.,)