Pipeline Latency and Steady-State Throughput
Calculate the completion time of a simple pipeline and see how one slow stage limits continued issue.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Overlap work across several instructions
In an ideal \(k\)-stage pipeline with equal stage duration and no stalls, the first result completes after \(k\) cycles. Once full, one further result completes per cycle. Thus \(n\) independent instructions complete after \(k+n-1\) cycles. With five stages and eight instructions, this is twelve cycles. Individual instruction latency remains five cycles while the completed instructions can be spaced one cycle apart.
The clock period follows the slowest stage
Splitting one slow combinational stage can shorten cycle time if registers and other stages permit it. Stall cycles, uneven stage work and fill and drain costs limit real speedups. Data hazards explain why dependencies may hold instructions back even with free stages. Issue and resource bounds use both latency and throughput when several instructions can begin in one cycle.[1][2]