Module 3: Sequential Circuit Design · 3.2 Synchronous vs. Asynchronous Design

Clock Signals and How They Are Distributed

In a synchronous sequential circuit, the clock signal controls all state updates. The clock distribution network must deliver active clock transitions to millions of flip-flops almost simultaneously.

If a clock transition reaches one flip-flop late, the data path can violate setup timing. If a clock signal contains excessive electrical noise, flip-flops can become metastable. The clock net is the most critical signal path on an integrated circuit.

Requirements for a Reliable Clock Signal

A robust digital clock network requires five electrical properties:

  1. Frequency Stability: The oscillator frequency must remain within a few hundred parts per million (ppm) across variations in temperature and voltage.
  2. 50 Percent Duty Cycle: Symmetrical high and low phases maximize timing margins for circuits that use both clock phases.
  3. Low Clock Jitter: Clock jitter is the cycle-to-cycle variation of the clock transition timing (Figure 1). Jitter reduces available logic timing margin because clock edges land within a time window rather than at a precise instant.
  4. Low Clock Skew: Clock skew is the difference in clock arrival times between different flip-flops (Figure 2). If the launching flip-flop receives a clock transition earlier than the capturing flip-flop, the available path delay decreases.
  5. Fast Transition Slew Rates: Slow signal transitions increase power dissipation in input buffers and increase susceptibility to cross-talk noise.

Clock jitter
Figure 1: Comparison between an ideal clock and a clock signal exhibiting cycle-to-cycle jitter

Clock skew
Figure 2: Spatial clock skew causing a common clock edge to arrive at different times across four registers

Clock Generation Sources

Modern digital systems use three primary circuits to generate clock signals:

Quartz Crystal Oscillators

A piezoelectric quartz crystal vibrates mechanically at a precise resonant frequency determined by its physical dimensions. Crystal oscillators provide high frequency stability, typically drifting less than 50 ppm over temperature. Printed circuit boards supply reference frequencies, such as 25 MHz or 100 MHz, to integrated circuit pins.

Phase-Locked Loops (PLL)

A 25 MHz crystal oscillator cannot directly clock a high-performance 3 GHz microprocessor. Integrated circuits use an internal Phase-Locked Loop (PLL) to multiply the low-frequency reference.

A PLL contains a phase detector, a loop filter, a voltage-controlled oscillator (VCO), and frequency dividers. The output frequency satisfies:

$$f_{\text{out}} = \frac{N}{M} f_{\text{ref}}$$

The integer divider ratios $N$ and $M$ allow the system to synthesize required system frequencies from a single reference source.

Ring Oscillators

An odd number of inverters connected in a closed ring forms a ring oscillator. The circuit is compact and starts immediately. However, its operating frequency varies by 20 to 30 percent across PVT variations. Designers use ring oscillators for process monitors and random number generators, but not for primary system clocks.

The Clock Distribution Challenge

Delivering a 3 GHz clock across a 20 mm die to fifty million flip-flops presents physical challenges. Metal interconnect lines possess parasitic resistance and capacitance. Buffer stages introduce propagation delays. Without careful routing, clock skew causes severe timing violations.

Clock skew degrades both timing constraints:

  • Negative Skew (Capture Clock Arrives Earlier): Decreases available logic evaluation time, increasing setup violations.
  • Positive Skew (Capture Clock Arrives Later): Causes new data from the launching flip-flop to overwrite the capturing flip-flop before its hold time expires, creating hold violations.

Hold violations are dangerous because they cannot be resolved by reducing the operating frequency.

Clock Tree Synthesis (CTS)

Automated place-and-route tools perform Clock Tree Synthesis (CTS). The tool identifies all clock sink pins and constructs a balanced network of clock buffers from the clock source to every leaf register.

The symmetric H-tree provides an ideal topology (Figure 3).

H-tree
Figure 3: Symmetric H-tree clock distribution topology providing equal path lengths to all endpoints

In an H-tree, each leaf node has an identical wire length from the root buffer, minimizing physical path differences. Automated tools adjust buffer placement and wire sizing to balance unevenly distributed register placement.

Because clock buffers switch on every cycle, the clock tree consumes 20 to 40 percent of total dynamic power in modern microprocessors.

Clock Domains

A clock domain is a group of flip-flops driven by a common clock source.

Within a clock domain, static timing analysis guarantees setup and hold timing. Modern systems on a chip (SoC) contain multiple clock domains. For example, the CPU, GPU, memory controller, and USB interface frequently operate at different clock frequencies.

Signals that cross between different clock domains form Clock Domain Crossings (CDC). These signals require dedicated synchronizers to prevent metastability.

Integrated Clock Gating

To reduce dynamic power consumption, digital circuits halt clock distribution to inactive logic blocks.

Designers must never gate a clock signal using a standard combinational AND gate. Glitches on the enable signal produce runt clock pulses that cause timing failures.

Instead, designs use Integrated Clock-Gating (ICG) cells (Figure 4).

Clock-gating cell
Figure 4: Integrated clock-gating cell containing a negative-level-sensitive latch and an AND gate

The ICG cell includes a latch that is transparent only when the clock is low. This structure samples the enable signal before the clock transitions high, ensuring glitch-free clock gating.

Synthesis tools automatically infer ICG cells from register enable descriptions in Verilog:

always_ff @(posedge clk) begin
    if (enable)
        q <= d;
end

Practice Exercises

Problem 1

A clock distribution network exhibits $\pm 40\text{ ps}$ of skew ($80\text{ ps}$ maximum skew between the worst-case pair). The clock period is $T_{\text{clk}} = 1000\text{ ps}$, setup time is $t_{\text{su}} = 80\text{ ps}$, and $t_{\text{cq,max}} = 120\text{ ps}$. Calculate the maximum allowable combinational logic delay.

Solution

The worst-case setup condition occurs when the capturing clock arrives $80\text{ ps}$ earlier than the launching clock:

$$t_{\text{pd,max}} \leq T_{\text{clk}} - t_{\text{cq,max}} - t_{\text{su}} - t_{\text{skew}}$$

$$t_{\text{pd,max}} \leq 1000\text{ ps} - 120\text{ ps} - 80\text{ ps} - 80\text{ ps} = 720\text{ ps}$$

Clock skew reduces the available logic propagation budget by $80\text{ ps}$ (8 percent of the clock period).

Problem 2

A PLL uses a 100 MHz reference oscillator with divider settings $N = 30$ and $M = 1$. The internal voltage-controlled oscillator (VCO) operates across a frequency range of 2.5 GHz to 3.5 GHz.

  1. Calculate the synthesized output frequency.
  2. Determine if the configuration achieves phase lock.
Solution
  1. Calculate the output frequency:

$$f_{\text{out}} = \frac{N}{M} f_{\text{ref}} = \frac{30}{1} \times 100\text{ MHz} = 3000\text{ MHz} = 3.0\text{ GHz}$$

  1. Because 3.0 GHz falls within the 2.5 GHz to 3.5 GHz tuning range of the VCO, the PLL locks reliably.

Problem 3

A designer writes: wire gated_clk = clk & enable_reg;, where enable_reg is the output of a synchronous flip-flop. Explain why this implementation is unacceptable.

Solution

The signal enable_reg transitions after delay $t_{\text{cq}}$ following a rising clock edge. At that moment, the clock signal is high.

If enable_reg falls to 0, the AND gate cuts off the clock early, producing a truncated clock pulse. If enable_reg rises to 1, the gate generates an extra, delayed rising transition.

Furthermore, static timing tools cannot verify paths driven by logic-derived clock signals accurately. Designers must instantiate dedicated integrated clock-gating (ICG) cells.

The next article establishes the formal rules of the synchronous design discipline.

← Synchronous and Asynchronous Design The Synchronous Design Discipline →