Understand how clock generators produce timing signals essential for synchronization in digital electronic devices.
Every processor, memory, or synchronous digital circuit needs a «metronome» that dictates when data changes and when it must be read. The clock generator produces this periodic signal, usually a square wave at a fixed frequency, and distributes it to all blocks of the system. A historical example is the Intel 8284 integrated circuit, which provided the clock to the 8086 family microprocessors [1][2][3].
The clock is a square wave between two logic levels. The main parameters are the frequency $f$ (the period is $T = 1/f$), the duty cycle (fraction of the period during which the signal is high, ideally $50\ \%$), the rise and fall times, and the jitter, the random variation of the edge timing relative to the ideal value. In synchronous circuits, data changes at an edge (rising or falling), and all blocks must see the edge almost simultaneously: the difference between arrival times at different points is called skew [1][2][3].
The base frequency is provided by an oscillator, almost always a quartz crystal, at a very stable fixed frequency (from $32.768\ \mathrm{kHz}$ to a few tens of megahertz). An LC or RC oscillator integrated into the circuit is less precise but cheaper and starts faster. A temperature-compensated crystal oscillator (TCXO) or oven-controlled crystal oscillator (OCXO) is used when high precision is required [1][2].
Other frequencies are derived from the crystal frequency. A divider (counter) reduces the frequency by an integer factor $N$. A phase-locked loop (PLL) multiplies: a voltage-controlled oscillator (VCO) is regulated by a phase comparator, which compares the signal divided by $N$ with the reference until the two frequencies are equal; the output is then $f_{out} = N\,f_{rif}$. Frequencies that are not multiples are obtained with fractions of $N$. The PLL starts the system from a low-frequency crystal and produces clocks of hundreds of megahertz or gigahertz, but adds jitter and a lock time [1][2].
The clock must reach many points with low skew. Low-output buffers and equal-length traces on the printed circuit board are used; in integrated circuits, optimized distribution trees are employed. At high frequencies, traces behave like transmission lines and must be impedance-matched to avoid reflections and distorted edges. Differential signals (LVDS) are also used to reduce noise, and sometimes clocks with spread spectrum, a slow frequency modulation that spreads energy over a wider band to reduce radio emissions [2].
The clock period must be greater than the sum of three times: the output propagation delay of the register $t_{co}$, the maximum delay of the combinational logic $t_{logic}$, and the setup time $t_{su}$ of the next register (the time during which the data must be stable before the edge):
$$T \ge t_{co} + t_{logic} + t_{su} + t_{skew}$$
If the condition is not met, the data is acquired incorrectly. The hold time, on the other hand, concerns the stability of the data after the edge and does not depend on the frequency [2].
The ideal model has instantaneous edges, exact frequency, and constant period. In the real signal, jitter appears (hundreds of femtoseconds in the best systems, picoseconds or tens of picoseconds in common ones), drift with temperature and supply voltage, noise coupling from the power supply and other signals, and duty cycle distortion. Jitter reduces the time available for logic and, in analog-to-digital converters, limits the achievable signal-to-noise ratio.
A system with a crystal at $25\ \mathrm{MHz}$ and a PLL that multiplies by $4$.
1. Clock frequency: $f = 4\cdot25 = 100\ \mathrm{MHz}$, period $T = 10\ \mathrm{ns}$.
2. With $t_{co} = 1.5\ \mathrm{ns}$, $t_{logic} = 6\ \mathrm{ns}$ and $t_{su} = 1\ \mathrm{ns}$ the sum is $8.5\ \mathrm{ns}$: $1.5\ \mathrm{ns}$ margin remains for skew and jitter.
3. Theoretical maximum frequency: $1/8.5\ \mathrm{ns} \approx 117.6\ \mathrm{MHz}$ without margins; in practice a margin is left.
4. A jitter of $100\ \mathrm{ps}$ on a period of $10\ \mathrm{ns}$ is the $1\ \%$ of the period.
5. A divider by $10$ derives $10\ \mathrm{MHz}$ from the clock at $100\ \mathrm{MHz}$.
Clock generators are found in processors and microcontrollers, in memories, in analog-to-digital and digital-to-analog converters, in communication interfaces (USB, Ethernet, PCI Express), and in digital audio systems, where the word clock times the samples.
[1] Wikipedia (en): Clock generator
[2] Wikipedia (en): Clock signal
[3] Wikipedia (de): Intel 8284
Generating summary…