3 ms·
Certainly, modern CPUs are pipelined, but each clock cycle is still the worse-case time for all steps in the pipeline.
by nynx 5y ago
Certainly, modern CPUs are pipelined, but each clock cycle is still the worse-case time for all steps in the pipeline.
- Const-me 5y ago> each clock cycle is still the worse-case time for all steps in the pipeline The pipeline takes variable count of clocks to complete an instruction. The number depends on the instruction, input data of the instruction, and quite a few other things. In some exotic cases it even depends on power state, e.g. some Intel CPUs took ~20k cycles to power on their AVX pieces, during that window AVX instructions are much slower. If for any reason the pipeline is unable to deliver the result by the end of the clock, CPUs don’t delay the clock, they continue running the clock. You simply gonna get the result on some later clock cycle.
- nynx 5y agoThat's exactly what I mean.