On this page 13 sections
- What is clock tree synthesis?
- Key terms: latency, insertion delay and skew
- CTS inputs and targets
- How a clock tree is built
- Real example: CTS on aes with OpenROAD and ASAP7
- How CTS changes timing
- Special structures in the clock path
- Clock routing and sign-off checks
- Debugging a bad CTS result
- Interview questions and answers
- FAQ
- Summary
- References
Placement puts every flip-flop somewhere on the die, but the clock still arrives on one ideal net that no real driver could handle. Clock tree synthesis (CTS) turns that ideal net into a real network of buffers and wires. It has to reach every clock pin with low skew, a reasonable insertion delay, clean transitions and as little power as possible.
This guide covers clock tree synthesis in VLSI the way a physical design engineer works with it: the terms, the inputs and targets, how a tree is built, how it changes setup and hold, and how to debug a bad CTS result. The numbers are real. We synthesised the open aes_cipher_top design from OpenROAD-flow-scripts (ORFS) on the ASAP7 predictive 7 nm library, placed it, and ran OpenROAD's CTS four times with different settings. Anything that does not come from those runs is labelled illustrative.
What is clock tree synthesis?#
Before CTS the clock is ideal: STA assumes it reaches every sink at the same moment, or after a fixed latency you set in the SDC. In our aes run, one net called clk drives 562 flip-flop clock pins. No standard cell can drive that load with a usable transition, and the wire alone would spread arrival times far apart.
CTS fixes this by:
- Tracing the clock from its source (port, PLL output or generated clock pin) through gates and muxes to every sink.
- Building a topology: grouping sinks and deciding how the branches split.
- Inserting and sizing buffers or inverters so every branch meets max transition, max capacitance and fanout limits.
- Balancing the branches so arrival times match within a skew target.
- Handing over a propagated clock, so STA uses the real delays from then on.
Why CTS runs after placement and before routing#
CTS needs real flop locations, because skew comes mostly from distance. It runs before signal routing so the clock, the highest-activity and most timing-critical net, gets the best layers, spacing and shielding while tracks are free. In the full physical design flow the order is floorplan, placement, CTS, post-CTS optimisation, then routing.
Key terms: latency, insertion delay and skew#
- Clock source latency: delay from the clock's true origin (for example the PLL) to the point where the clock is defined. You model it with
set_clock_latency -source. - Clock network latency (insertion delay): delay from the definition point to a sink's clock pin, through the tree CTS builds. Before CTS you estimate it with
set_clock_latency. After CTS,set_propagated_clockreplaces the estimate with real delays. - Skew: the difference in clock arrival between two sinks. Local skew is between a launch and capture flop that share a timing path. Global skew is the largest minus smallest latency across all sinks of a clock. Skew is positive when the capture clock arrives later than the launch clock. That helps setup and hurts hold.
- Clock transition (slew): the rise or fall time at clock pins. Slow clock edges add flop delay, internal power and variation, so clock slew limits are tighter than data limits.
- Uncertainty: SDC margin (
set_clock_uncertainty) for jitter and, before CTS, expected skew; it is usually reduced after CTS.
The figure shows these terms on the worst hold path of our first run. The launch flop gets the clock after 82.81 ps and the capture flop after 113.05 ps, so this pair sees +30.24 ps of skew.
For the full setup and hold equations, see setup and hold violations and the STA overview.
CTS inputs and targets#
CTS starts from the placed database (netlist, LEF/DEF, Liberty, SDC, UPF and the legal placement) plus a set of CTS rules, often called the CTS spec. The rules usually cover:
| Item | What it controls |
|---|---|
| Clock definitions | Roots, generated clocks, which clocks to build |
| Buffer / inverter list | Cells CTS may use; often dedicated clock cells |
| Skew target | Allowed global or per-group skew |
| Insertion delay target | Maximum (and sometimes minimum) latency |
| Max transition / cap / fanout | Electrical limits on clock nets |
| Non-default rules (NDR) | Wider width and spacing, shielding, layer range |
| Exceptions | Pins where the tree stops, or that are ignored or treated as sinks |
| Skew groups | Sets of sinks balanced together |
Tools name exceptions differently, but the ideas are the same: stop/sink pins end balancing, ignore/exclude pins are driven but not balanced, and through pins let the tree continue past a cell. A tree balanced to the wrong set of pins can look clean in the report and still be wrong.
Buffers or inverters?#
Most production clock trees use inverters or inverter-pair clock buffers built for matched rise and fall delays. An inverter is smaller and faster than a buffer of the same drive. Alternating inverting stages also helps keep the duty cycle steady, because rise/fall mismatches tend to cancel instead of adding up. The trade-offs are covered in duty cycle and pulse width. In our open-tool runs we used ASAP7 BUFx cells, because that is how ORFS sets up OpenROAD CTS for this library.
How a clock tree is built#
CTS tools combine a few classic structures:
- H-tree: the area is split recursively in halves, and each branch has the same geometric length to its region's center. It gives low skew by construction, but it costs wire in sparse regions. OpenROAD's log for our runs says
Generating H-Tree topology for net clk. - Balanced buffer tree: clustering plus buffering driven by delay balance, not geometry. This is the default style in most commercial flows for ordinary blocks.
- Clock mesh: a grid of shorted wires driven by many buffers. Skew is very low and it tolerates variation well, but power and routing cost are high. It is used for high-frequency cores.
- Multisource / spine (fishbone): a top-level structure (spine or small mesh) drives many tap points, and a local tree is built from each tap. It suits large blocks where one tree would have too much latency.
Inside any of these, sink clustering groups nearby flops and gives each group a leaf buffer. Buffering keeps every segment within slew and cap limits. Balancing adds delay where a branch is early. Then the tool legalises the new cells and repairs long clock nets.
Real example: CTS on aes with OpenROAD and ASAP7#
Setup (real):
- Design:
aes_cipher_topRTL from ORFS, synthesised with Yosys 0.71 (yowasp build) to ASAP7 RVT FF cells. The result has 562DFFHQx4flops and 1,162.8 µm² of cell area. - Floorplan and placement in OpenROAD (a 2022 conda build, commit
f12e2f4): 55% core utilisation, global placement density 0.65,repair_design,detailed_placement. The core is about 46 × 46 µm. - Constraints: the ORFS ASAP7 aes SDC, with a 380 ps clock and an ideal latency estimate of
set_clock_latency 77.930. - Parasitics: placement estimates from the ORFS ASAP7
setRC.tcl(set_wire_rc -clock). There is no routing, so treat the absolute numbers as pre-route estimates. - No timing repair was run, so the comparison is about the clock tree only. Setup slack is negative in every run because of unoptimised logic, not because of CTS.
Run A follows the ORFS CTS step (sink clustering on, clock-net repair) with one buffer type:
clock_tree_synthesis -root_buf BUFx4_ASAP7_75t_R -buf_list BUFx4_ASAP7_75t_R \ -sink_clustering_enable set_propagated_clock [all_clocks] estimate_parasitics -placement repair_clock_nets detailed_placement report_cts report_clock_skewThese lines come from the real run A log:
[INFO CTS-0010] Clock net "clk" has 562 sinks. [INFO CTS-0027] Generating H-Tree topology for net clk. [INFO CTS-0090] Sinks will be clustered based on buffer max cap. [INFO CTS-0019] Total number of sinks after clustering: 55. [INFO CTS-0037] Number of outlier sinks: 6. [INFO CTS-0018] Created 66 clock buffers.The 66 buffers add up exactly: 1 root, 4 second-level H-tree buffers, 55 cluster (leaf) buffers and 6 extra buffers for the 6 outlier sinks (clkbuf_opt_*). The outlier buffer is why the capture branch in the latency figure has one more stage than the launch branch.
We then kept the same placement and changed one setting at a time:
| Run | Buffers | Sink clustering | Buffers inserted | Path depth | Insertion delay (min to max) | Global skew | Worst hold slack | Clock buffer + net power |
|---|---|---|---|---|---|---|---|---|
| Pre-CTS | ideal | n/a | 0 | n/a | 77.93 ps (SDC) | 0 (ideal) | 50.35 ps | n/a |
| A | BUFx4 | on | 66 | 3–4 | 82.82–113.00 ps | 30.17 ps | 33.60 ps | 1,157 µW |
| B | BUFx4 | off | 86 | 4–5 | 87.38–108.21 ps | 20.83 ps | 47.64 ps | 1,305 µW |
| C | BUFx2 | on | 110 | 4–6 | 91.90–123.18 ps | 31.28 ps | 45.77 ps | 1,179 µW |
| D | BUFx8 | on | 40 | 3–4 | 62.71–88.08 ps | 25.37 ps | 39.92 ps | 1,198 µW |
All values are from OpenSTA inside OpenROAD after CTS, with propagated clocks and placement parasitics. Power is report_power -instances summed over the clock buffers. It covers their internal power plus switching on the nets they drive, including flop clock-pin capacitance, with inputs at activity 0.1. It does not include the flops' own internal clock power. No run had a hold violation.
What the runs show:
- Clustering trades skew for buffers and power. Turning clustering off (B) gave the lowest skew, 20.83 ps. It also used 20 more buffers, a deeper tree and the highest clock power, about 13% above A. Without a size limit, clusters grow to the leaf buffer's capacitance limit (up to 15 sinks here), which leaves more imbalance between clusters.
- Buffer strength moves latency more than skew. BUFx8 (D) needed only 40 buffers and cut the latency range to 62.71–88.08 ps. The bigger cells cost more internal power, so D did not have the lowest power. BUFx2 (C) needed 110 buffers and six-stage paths, and gave the worst latency.
- The SDC latency estimate was optimistic. The pre-CTS SDC assumed 77.93 ps. Three of the four real trees came out later than that at every sink, so I/O paths timed against the estimate shift after CTS. Update your latency estimate once you have a first real tree.
- Skew eats hold margin. Worst hold slack fell from 50.35 ps (ideal clock) to 33.60 ps in run A. No path failed here, but on a bigger block that lost margin turns into hold-fix buffers.
There is no single best setting: it depends on whether the block is limited by skew, latency, power or routing.
How CTS changes timing#
When clocks become propagated, every path's setup and hold check changes by its local skew:
setup slack = (T + capture latency - setup - uncertainty) - (launch latency + data delay) hold slack = (launch latency + data delay) - (capture latency + hold + uncertainty)- Positive local skew (capture later) adds setup margin and takes away hold margin. Negative skew does the opposite. A tool can use this on purpose with useful skew.
- Common path pessimism removal (CRPR/CPPR) removes the derate penalty on the shared part of the launch and capture clock paths. A deep tree with an early split means less shared path and more pessimism under OCV, AOCV or POCV.
- Hold fixing normally starts after CTS, because hold depends on real skew. Fixing hold against ideal clocks wastes buffers that may later be needed elsewhere.
- I/O paths shift by the difference between the SDC latency estimate and the real insertion delay, as runs A–D show.
Check every mode and corner: cell and wire delays scale differently, so a tree balanced at one corner can skew at another. This is why MMMC CTS is standard.
Special structures in the clock path#
- Clock gating cells (ICGs) sit inside the tree. CTS balances through them and must meet the ICG enable check. See clock gating and ICG.
- Generated clocks (dividers, muxes) need correct definitions, or CTS balances them wrongly. See generated clocks in STA.
- Macros and IP clock pins often have internal latency in their models; treat them as sinks with an offset.
- Multi-bit flops cut clock sinks and clock-pin capacitance; see multi-bit flip-flop banking.
- Scan: lockup latches and scan chain order depend on clock branches. See scan chain reordering.
Clock routing and sign-off checks#
After CTS, clock nets are routed first, usually with NDRs: double width and spacing on upper tree levels and sometimes shielding with ground wires. Wider wires lower resistance and EM risk. Wider spacing cuts coupling, so crosstalk delta delay on clock edges stays small. Clock nets switch every cycle, so electromigration limits on clock wires and vias matter more than on most signal nets.
A practical CTS QoR checklist:
- All intended sinks are in the tree; no unexpected unclocked registers.
- Global and per-group skew are within target in every active mode and corner.
- Insertion delay is within the block budget, and the SDC estimate has been updated.
- There are no max transition, max cap or fanout violations on clock nets (DRV fixing).
- Duty cycle and minimum pulse width are checked at the sinks.
- Clock power and buffer count fit the budget (power analysis).
- Setup and hold with propagated clocks and CRPR are understood.
- No congestion hotspots from clock cells or routes (routing congestion).
Debugging a bad CTS result#
Go in order. A wrong clock definition makes every later number meaningless, and skew is not worth tuning while the tree still has transition violations.
Typical root causes (illustrative, not from the runs above):
- One branch much later than the rest: a macro or blockage forces a detour, or a few sinks sit far from their cluster. Our run A shows the mild version, where 6 outlier sinks got extra buffers and became the latest arrivals.
- High latency everywhere: the root sits at the die edge (as our
clkport does), buffers are too weak, or a tight transition target forces extra levels. - Skew good, hold bad: check that CRPR is on and that hold uncertainty is not still set to the pre-CTS value. Then fix hold on data paths, not by unbalancing the tree.
- Congestion after CTS: NDRs on every level, or clock cells clumped in a dense region. Relax NDRs on leaves and spread the leaf buffers.
When you change a CTS option, compare buffers, depth, latency, skew, hold slack and clock power together, as in the table above.
Interview questions and answers#
1. Why is CTS done after placement? Skew depends on where the sinks are. CTS needs legal flop locations to build and balance branches. Before placement it would balance to positions that will change.
2. What is the difference between clock latency and clock skew? Latency is the delay from the clock source or definition point to a sink. Skew is the difference in latency between sinks. Global skew compares all sinks, and local skew compares a launch/capture pair on a real path.
3. Does positive skew help setup or hold? Setup. The capture edge arrives later, so the data has more time. It hurts hold by the same amount.
4. What is sink clustering? Grouping nearby sinks so each group is driven by one leaf buffer before the upper tree is built. In our aes run it reduced 562 sinks to 55 clusters and 66 buffers, compared with 86 buffers without clustering.
5. Why do we apply NDRs to clock nets? Wider wires cut resistance and EM risk, and wider spacing or shielding cuts crosstalk on high-activity, timing-critical nets. The cost is routing tracks, so NDRs are often limited to upper tree levels.
6. Why do hold violations increase after CTS? Ideal clocks have zero skew. Real trees add positive local skew on some paths, and that comes straight out of hold slack. In run A, worst hold slack went from 50.35 ps to 33.60 ps.
More practice: CTS interview questions.
FAQ#
What is a good skew target? There is no universal number. It comes from the timing budget: a fraction of the clock period, checked against how much hold margin and useful skew the block needs. Measure your own design rather than copying a target.
Should I use useful skew during CTS? It can recover setup on critical paths, but it costs hold margin and makes the tree harder to reason about. Use it after the base tree is clean, and check hold in every corner.
Can I practise CTS with open tools?
Yes. OpenROAD's clock_tree_synthesis, report_cts and report_clock_skew work with the ORFS ASAP7, Nangate45 and Sky130 platforms. They are for learning, not production sign-off. Newer OpenROAD versions differ from the 2022 build used here.
Summary#
Clock tree synthesis turns one ideal clock net into a buffered, balanced network. It has to meet skew, insertion delay, transition, power and routing goals together. Get the clock definitions, exceptions and buffer choices right first. Then judge the tree on latency range, skew, depth, power and hold impact as a set. The real aes runs on ASAP7 show the trade-offs clearly. Sink clustering saved 20 buffers and about 11% of clock-buffer power, but gave about 9 ps more skew. Stronger buffers cut the latest arrival by about 25 ps. Every real tree replaced the 77.93 ps SDC estimate with real delays, and in run A skew took about 17 ps out of the worst hold slack. After CTS, update your latency estimates, check every mode and corner with CRPR on, then move to hold fixing and clock routing.
References#
- OpenROAD documentation, Clock Tree Synthesis (
clock_tree_synthesis,-sink_clustering_enable,-repair_clock_nets,report_cts): https://openroad.readthedocs.io/en/latest/main/openroad/cts/README.html - OpenROAD-flow-scripts, CTS step script (
flow/scripts/cts.tcl): https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/blob/master/flow/scripts/cts.tcl - OpenROAD-flow-scripts,
aesdesign source and ASAP7 constraints: https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/tree/master/flow/designs - OpenROAD-flow-scripts, ASAP7 platform (LEF, Liberty,
setRC.tcl,make_tracks.tcl): https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/tree/master/flow/platforms/asap7 - L. T. Clark et al., "ASAP7: A 7-nm finFET predictive process design kit," Microelectronics Journal, vol. 53, pp. 105–115, 2016.




