Foundations: What a Computer Is

the clock and clock cycle

Picture a rowing team with a drummer beating a steady rhythm: every rower pulls together on each beat, so the boat moves in coordinated strokes rather than chaos. Inside a synchronous processor there is just such a drummer — the clock. It is an electrical signal that ticks up and down at a fixed rate, and a clock cycle is the time of one tick, the basic unit of time on which the whole machine marches in step.

On each tick, the processor's storage elements (registers and flip-flops) capture new values together, and between ticks the combinational logic in the datapath settles to a stable result before the next tick latches it. The clock cycle must be long enough for the slowest needed signal to travel its longest route — the critical path — and arrive in time. A cycle is measured in tiny fractions of a second; at one billion cycles per second, each cycle lasts just one nanosecond, a billionth of a second.

The clock is why digital design is predictable: by waiting a fixed beat, the machine guarantees everything has settled before it acts on it, avoiding races. The price is that the whole machine runs no faster than its slowest stage allows in one beat — which is one big reason designers break work into stages (pipelining) so each beat does less and can be shorter. The clock paces the machine, but how much useful work each beat accomplishes depends entirely on the design above it.

At 1 GHz the clock ticks one billion times a second, so each clock cycle is 1 nanosecond. The slowest logic that must finish within one cycle sets a floor on how short that nanosecond can be.

The clock is the drumbeat; the critical path sets how fast it can beat.

A clock cycle's length is bounded by the slowest path that must complete in it (the critical path). You cannot simply crank the clock faster than the logic can settle.

Also called
clock signalclock tick時脈訊號