Home / Learn / Chip Design / Clock Tree Synthesis Explained

On this pageWhy the clock needs special treatmentKey termsBefore and after CTSHow a clock tree is builtWhat CTS aims forClock powerUseful skewTree, mesh and hybrid structuresComplicationsEffects on the rest of the designJudging a clock treeCommon questionsRelated guides

Clock Tree Synthesis Explained

Clock tree synthesis, or CTS, builds the network that delivers the clock signal to every flip-flop on a chip. A clock starts at one point and must arrive at millions of destinations at very nearly the same instant, with clean edges. CTS inserts buffers and wires to achieve that. The clock network strongly affects a chip’s speed and is one of its largest consumers of power.

Why the clock needs special treatment

A digital chip works in steps. The clock signal tells every flip-flop when to capture new data. If it reaches different flip-flops at noticeably different times, data can be captured too early or too late, and the chip malfunctions.

The clock also has an unusual load. An ordinary signal drives a handful of gates. A clock may drive hundreds of thousands or millions of flip-flops spread across the entire chip. It cannot simply be connected with a wire. It needs a carefully designed distribution network.

Key terms

TermMeaning
SkewThe difference in clock arrival time between two flip-flops
Insertion delay (latency)The time the clock takes to travel from its source to a flip-flop
Transition time (slew)How quickly the clock edge rises or falls
JitterVariation in the timing of clock edges from one cycle to the next
SinkA point the clock must reach, usually a flip-flop’s clock pin

Skew is the central concern. Large skew eats into the time available for logic and can cause outright failures.

Before and after CTS

Before clock tree synthesis, design tools treat the clock as ideal: arriving everywhere at once. Timing estimates up to that point rely on assumed values for skew and delay.

After CTS, the clock is a real network with real delays. Timing analysis now uses the actual arrival time at each flip-flop. This is often when a design’s true timing picture first becomes clear.

How a clock tree is built

  • Clustering. Nearby flip-flops are grouped, and each group is driven by a buffer.
  • Building upward. Those buffers are grouped and driven in turn, forming levels of a tree back to the clock source.
  • Balancing. Delays along the different branches are adjusted so the clock arrives at all sinks close together.
  • Routing. Clock wires are routed with special rules: wider than normal, spaced further from neighbors and sometimes shielded, on the upper metal layers.

What CTS aims for

  • Low skew between flip-flops that exchange data
  • Short insertion delay, since longer paths are more affected by variation
  • Clean transitions within set limits
  • Low power
  • Tolerance of variation in manufacturing, voltage and temperature

Clock power

The clock switches twice every cycle, on every wire and buffer in its network, whether or not the chip is doing useful work. That makes the clock network a major part of a chip’s dynamic power consumption.

The main defense is clock gating: turning off the clock to registers that do not need to change. Gating cells are placed in the tree so that whole branches can be shut off. The higher in the tree a gate sits, the more buffers and wires stop switching and the more power is saved. Placing gates well is an important part of clock tree design.

Other measures include using fewer, better-placed buffers and grouping several flip-flops into a single multi-bit cell that shares clock circuitry.

Useful skew

Skew is not always harmful. If one stage of logic is slow and the next is fast, the clock to the flip-flop between them can be delayed deliberately. The slow stage gains time and the fast stage gives some up.

Modern tools apply this technique, called useful skew, routinely. Clock tree synthesis and timing optimization are done together, with the tool choosing clock arrival times that help the design meet its targets.

Tree, mesh and hybrid structures

  • A tree branches from the source to the sinks. It is the most common structure, efficient in power and area. Its weakness is that manufacturing variation affects each branch differently.
  • A mesh is a grid of interconnected clock wires driven at many points. Because paths are tied together, variation is averaged out and skew is very low. It uses considerably more power and wiring. Meshes are found in the highest-performance processors.
  • Hybrid structures use a tree to reach regional meshes, or a rigid central spine feeding local trees.

The choice depends on how much performance is needed and how much power can be spent on it.

Complications

  • Multiple clocks. Chips have many clock domains, each needing its own network, and sometimes requirements to balance one against another.
  • Generated clocks. Clocks derived from others by division or selection.
  • Macros. Memories and hard IP have internal clock delays that must be accounted for.
  • Test modes. The clock structure must also work when the chip is being tested.
  • Variation. On advanced processes, two nominally identical paths can differ noticeably, so analysis adds margin for clock paths that do not share buffers.

Effects on the rest of the design

Clock tree synthesis changes the design considerably. It adds many cells and wires, which consume area and routing space. The newly realistic clock delays can expose timing violations that were hidden before.

Hold violations, where data arrives too soon after the clock edge, mostly appear at this stage and are fixed by adding delay to the offending data paths. Timing optimization continues after CTS and again after routing.

and Static Timing Analysis (STA) Explained.

Judging a clock tree

  • Skew within each group of related flip-flops
  • Maximum insertion delay
  • Number of buffers and total clock wire length
  • Clock power
  • Transition times within limits
  • Timing results after the tree is built

Common questions

What is clock skew?

Clock skew is the difference in the time at which the clock signal arrives at two different flip-flops. Too much skew between flip-flops that pass data to each other can cause the chip to fail.

Why does the clock use so much power?

Because it switches on every cycle and reaches nearly every part of the chip. Its network of wires and buffers is large and never rests unless parts of it are gated off.

Is zero skew the goal?

Not necessarily. Low skew is usually desirable, but deliberately skewing the clock can give slow logic stages more time. Tools aim for the arrival times that best help the design meet timing.

Related guides