Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Can someone convince me why a CPU that is pipelined would still be considered as having 1 Clock Per Instruction. Why is it based on a filled pipeline and not the 7 cycles you would need to fill it?
Because a pipelined CPU is capable of completing 1 instruction every clock cycle.Can someone convince me why a CPU that is pipelined would still be considered as having 1 Clock Per Instruction. Why is it based on a filled pipeline and not the 7 cycles you would need to fill it?
With a pipelined processor you (aspire) to have one instruction occupying each state of the pipeline at any given moment. At the end of every clock cycle each stage finishes its portion of work on its instruction and passes it onto the next stage. The final stage, each clock, does the last segment of work and retires that instruction. Each time a pipeline passes on its instruction to the next stage, it grabs the instruction from the previous stage (most of the time), so normally each pipeline is always working on something. For the most part programs are large enough that a vast majority of the time you will keep the pipeline full and maintain that throughput.
Each instruction would have a latency of 7 cycles sure, but the CPU overall retires 1 instruction per clock under typical operation.