Running CTS on the UART
This article executes clock tree synthesis on a placed design. The input design is uart_top, completed through detailed placement. Every flip-flop has a fixed, legal coordinate in the standard cell rows. TritonCTS uses these sink locations to form clusters and construct the balanced clock tree.
Running the CTS Command
Verify that designs/uart_top/config.json includes the CTS configuration keys. Open the OpenLane interactive shell and execute the command:
% run_cts
[INFO]: Building RC values for the design based on the extraction rules...
[INFO]: Root buffer selected: sky130_fd_sc_hd__clkbuf_16
[INFO]: Clustering 58 clock sinks...
[INFO]: Sink clustering size: 25, max diameter: 50um
[INFO]: Number of clusters formed: 6
[INFO]: Inserting buffered clock tree...
[INFO]: TritonCTS placement adjustment complete.
[INFO]: Clock tree synthesis complete.
The log file shows each synthesis phase. The 58 clock sinks correspond to the registers in the UART design. These registers include baud counters, finite state machines, shift registers, and status flags. TritonCTS forms 6 sink clusters and builds a balanced tree with a clkbuf_16 root cell.
Analyzing the CTS Summary Report
OpenLane generates a summary report upon task completion:
Clock Tree Synthesis Summary
=============================
Clock net : clk
Number of clock roots : 1
Number of clock sinks : 58
Number of clock subnets : 21
Number of buffers inserted : 18
Number of tree levels : 3
Max buffer level fanout : 12
Latency (min / max / skew)
Min latency : 0.298 ns
Max latency : 0.409 ns
Achieved worst-case skew : 0.111 ns
Target skew : 0.150 ns
Tolerance : 0.100 ns
Status : MET (achieved skew within tolerance of target)
Read the summary metrics systematically:
- 58 sinks confirm that the tool connected all register clock pins.
- 18 buffers across 3 tree levels indicate a shallow, well-distributed clock tree.
- The achieved skew of 0.111 ns satisfies the target threshold of 0.150 ns plus 0.100 ns tolerance.
The report lists a MET status. However, satisfying skew targets does not prevent timing violations. The introduced clock latencies directly alter setup and hold timing margins across all registers.
Viewing Inserted Clock Buffers
Load the post-CTS DEF file into Magic or KLayout:
magic -rcfile sky130A.magicrc -T sky130A.tech uart_top.cts.def &
The layout view displays inserted sky130_fd_sc_hd__clkbuf_* standard cells in the placement rows. Highlight the clk net to inspect physical routing. The clock signal connects from the root buffer through intermediate drivers to leaf buffers near each register cluster. Distinct cell naming allows designers to separate clock network cells from general logic cells during review.
Practice Exercise
A design summary reports 140 sinks, 4 tree levels, and an achieved worst-case skew of 0.240 ns. The configuration specifies a target skew of 0.150 ns with a tolerance of 0.050 ns. Did the run meet the timing requirement?
Solution
No. The maximum acceptable skew is 0.150 ns + 0.050 ns = 0.200 ns.
The achieved skew of 0.240 ns exceeds the allowable 0.200 ns limit. Common causes include coarse clustering limits, tight skew constraints for wide floorplans, or irregular sink placement.
The UART design now contains a synthesized clock distribution network. Section 5.4 explains how to execute post-CTS static timing analysis and resolve newly exposed hold violations.