Introduction
Part I of the present series covered the basics of pipelining, and concluded with a preliminary discussion of how pipelining increases application performance. Specifically, pipelining increases the rate at which instructions are completed, with the result that a program’s overall execution time is lowered. Or, another way to put this would be to say that pipelining allows the processor to complete more instructions in a given period of time, with the result that a particular batch of instructions (i.e. a program) gets processed more quickly.
The present article quantifies the speedup from pipelining more precisely, and details some of the drawbacks to very deep pipelines, like those found in Intel’s Pentium 4.
Note to the reader: The two articles in this series are meant to be read back-to-back, so if you dive right into the section below and find that you’re lost, it might help to go back and review the relatively brief (4 pages) first article. In fact, if you just go back and read the last page of Part I you should be all set to begin Part II.
The speedup from pipelining
In general, the speedup in completion rate versus a single-cycle implementation that’s gained from pipelining is ideally equal to the number of pipeline stages. A four-stage pipeline yields a four-fold speedup in the completion rate versus single-cycle, a five-stage pipeline yields a five-fold speedup, a twelve-stage pipeline yields a twelve-fold speedup, and so on. This speedup is possible because the more pipeline stages there are in a processor, the more instructions the processor can work on simultaneously and the more instructions it can complete in a given period of time. So the more finely you can slice those four phases of the instruction’s lifecycle, the more of the hardware that’s used to implement those phases you can put to work at any given moment.










Loading comments...