CPUs and architecture
What is the main purpose of pipelining in a CPU?
- ATo divide instruction processing into stages and overlap the stages of different instructions, increasing throughput
- BTo always shorten the execution time (latency) of each instruction
- CTo reduce the number of instructions and make programs smaller
Show answer and explanation
Answer: A. To divide instruction processing into stages and overlap the stages of different instructions, increasing throughput
Pipelining overlaps stages such as fetch, decode, execute, memory access and write-back like an assembly line, completing one instruction per clock to raise throughput—ideally about 5× for five stages. Each instruction's latency actually grows slightly. Data dependences, branches and resource conflicts disrupt the flow (hazards), handled with forwarding and branch prediction.