PIPELINING Flashcards
1
Q
What is pipelining?
A
- the process of completing the fetch, decode, and execute cycles of three separate instructions simultaneously
- while one instruction is being executed, another can be decoded and another can be fetched
2
Q
How does pipelining work? (example)
A
- fetch instruction 1
- fetch instruction 2, decode instruction 1
- fetch instruction 3, decode instruction 2, execute instruction 1
- fetch instruction 4, decode instruction 3, execute instruction 2
etc.
3
Q
Why is pipelining used?
A
- allows different parts of instructions across multiple stages to be held in different registers at the same time
- this is efficient as it makes use of all the registers and cache