Project 2, Part 2: CTS and Timing Closure
In the previous article, we completed logic synthesis and floorplanning for the sequential UART controller. In this article, we execute placement, clock tree synthesis, and routing. When TritonCTS replaces the idealized clock with physical clock distribution buffers, non-uniform insertion delays introduce a hold-time violation. We analyze the root cause and apply an engineering change order (ECO) buffer repair.
Placement Stage
openlane --flow Classic --run-tag uart_run1 --from OpenROAD.GlobalPlacement --to OpenROAD.DetailedPlacement \
designs/uart/config.json
[INFO DPL-0001] Placed 431 instances
Max displacement: 1.4 um
Placement converges smoothly at 45% utilization. Maximum legalization displacement remains under 1.4 µm.
Clock Tree Synthesis
openlane --flow Classic --run-tag uart_run1 --from OpenROAD.CTS --to OpenROAD.CTS designs/uart/config.json
Inspect the TritonCTS log and clock tree skew summary:
[INFO CTS-0010] Clock net "clk" has 62 sinks.
[INFO CTS-0018] Created 9 clock buffers.
Max skew: 0.142 ns
Max latency: 0.486 ns
The clock network connects to 62 flip-flop clock pins, matching the 62 dfxtp_1 instances identified during synthesis. Maximum clock tree skew is 142 ps, with a maximum insertion delay of 486 ps. Although 142 ps is small relative to the 10 ns clock period, it is significant compared to hold-time requirements.
Diagnosing the Post-CTS Hold Violation
Open the design database in OpenROAD and report worst-case hold timing paths:
% read_db runs/uart_run1/<cts step>/uart_top.odb
% read_liberty $PDK_ROOT/sky130A/libs.ref/sky130_fd_sc_hd/lib/sky130_fd_sc_hd__tt_025C_1v80.lib
% read_sdc designs/uart/uart_top.sdc
% set_propagated_clock [all_clocks]
% estimate_parasitics -placement
% report_checks -path_delay min -group_path_count 2
Review the two shortest minimum-delay paths:
Startpoint: rx_bit_counter_reg[2] Endpoint: rx_bit_counter_reg[3] Path Type: min
0.312 clock latency at rx_bit_counter_reg[2]
0.089 clock to Q
0.041 combinational (one inverter, short net)
0.442 data arrival time
0.397 clock latency at rx_bit_counter_reg[3]
0.036 library hold time
0.433 data required time
slack +0.009 (MET)
Startpoint: baud_counter_reg[5] Endpoint: baud_counter_reg[6] Path Type: min
0.298 clock latency at baud_counter_reg[5]
0.089 clock to Q
0.018 combinational (one fast gate, very short net)
0.405 data arrival time
0.401 clock latency at baud_counter_reg[6]
0.036 library hold time
0.437 data required time
slack -0.032 (VIOLATED)
A hold violation occurs between baud counter registers baud_counter_reg[5] and baud_counter_reg[6], exhibiting negative slack of -32 ps (-0.032 ns). Figure 1 illustrates this timing condition.
Contrast the two paths: The receiver bit counter passes with narrow positive slack (+9 ps). In the baud counter, adjacent placement produces minimal logic delay (18 ps). However, clock arrival at the destination flip-flop (baud_counter_reg[6]) is delayed by 103 ps ($0.401 - 0.298\text{ ns}$) relative to the launch clock. The fast data arrives at 0.405 ns, corrupting the hold window which closes at 0.437 ns.
This mechanism represents classic hold degradation: short combinational data paths between physically adjacent flip-flops combined with positive clock skew. Ideal clock models cannot reveal this condition.
Correcting Hold Timing via ECO Buffer Insertion
Correct hold violations by adding delay to the data path rather than altering the balanced clock tree. OpenROAD executes this repair automatically:
% repair_timing -hold -hold_margin 0.05
[INFO RSZ-0046] Found 1 endpoints with hold violations.
[INFO RSZ-0032] Inserted 1 hold buffers.
The tool inserts one minimal delay buffer (sky130_fd_sc_hd__buf_1) at input pin baud_counter_reg[6]/D. Re-evaluating the endpoint timing:
0.405 + 0.086 = 0.491 data arrival time (the buffer adds 86 ps)
0.437 data required time
slack +0.054 (MET)
The buffer inserts 86 ps of delay, establishing +54 ps of positive hold slack. Local data path buffering resolves hold violations without disrupting global clock tree balance.
In normal automated execution, remove RUN_POST_CTS_RESIZER_TIMING: false to allow OpenLane to execute this timing repair automatically.
Detailed Routing and Multi-Corner STA
Advance the flow through detailed routing and parasitic extraction:
openlane --flow Classic --run-tag uart_run1 --from OpenROAD.GlobalRouting designs/uart/config.json
Detailed routing finishes with zero violations. Extracted multi-corner STA confirms positive timing margins across all process corners:
| Operating Corner | Worst Setup Slack | Worst Hold Slack | Timing Status |
|---|---|---|---|
tt_025C_1v80 |
+2.94 ns | +0.08 ns | PASS |
ss_100C_1v60 |
+1.02 ns | +0.14 ns | PASS (setup critical) |
ff_n40C_1v95 |
+3.61 ns | +0.05 ns | PASS (hold critical) |
Setup margin is smallest at the slow corner (ss_100C_1v60), where cell delays are highest. Hold margin is smallest at the fast corner (ff_n40C_1v95), where rapid data transitions challenge hold requirements.
Practice Exercise
The fast corner exhibits minimal hold slack (+0.05 ns). If a secondary hold violation occurs exclusively at the fast corner, does inserting a data-path delay buffer remain the appropriate fix? How does this impact other corners?
Solution
Inserting a data-path buffer remains the correct fix, but designers must evaluate impact across all PVT corners.
A buffer that adds 50 ps of delay at the fast corner adds approximately 90 ps to 100 ps of delay at the slow corner. That added slow-corner delay directly reduces available setup slack on that timing path. If the path has ample setup slack (+1.02 ns), the extra delay is harmless. If the path has minimal setup slack, excessive hold buffering causes setup timing violations. Automated resizers evaluate all loaded corners simultaneously to ensure hold fixes do not disrupt setup closure.
In the next article, we execute physical verification checks on the post-ECO UART layout and compile its formal signoff report.