Overview

As a way of introducing the concept of pipelining, a common analogy often used is one involving laundry. The analogy goes as follows:

Imagine you have a pile of dirty laundry that needs to be washed, dried, and folded.

The pipelined approach takes much less time, as the main idea is that as long as we have separate resources for each stage, we can pipeline the tasks.

Figure 10.1 The laundry analogy for pipelining.

Figure 10.1 The laundry analogy for pipelining.

The same principles apply to processors where we pipeline instruction execution.

Single-Cycle, Multi-Cycle, and Pipeline

To get a better understanding, let’s compare all three architectures.

Now, compared to pipelining:

The idea is that if we apply pipelining to the multi-cycle CPU, after executing a few instructions, we can complete one instruction at a faster clock rate. This is illustrated in Figure 10.2.

Figure 10.2 Comparing clock cycle of each architecture.

Figure 10.2 Comparing clock cycle of each architecture.

The idea is that pipelining improves performance by increasing instruction throughput, as opposed to decreasing the execution time of an individual instruction.