Question:
Switching to a two-stage pipeline means introducing and extra stage meaning halving the executing rate, but instead it is doubled in some cases. Explain why?
A pipeline is a mechanism that a processor uses to execute instructions. Using a pipeline speeds up execution by fetching the next instruction while other instructions are decoded and executed
Instructions are placed in the pipeline sequentially. In the first loop, the kernel fetches instruction 1 from memory. In the second loop, the kernel fetches instruction 2 and decodes instruction 1. Then instruction 1 is executed, instruction 2 is decoded, and the next instruction is fetched. This procedure is called filling the pipeline. The pipeline allows the kernel to execute an instruction in fewer cycles.
Comments
Leave a comment