Running CTS on a Gated Design
This capstone article synthesizes a clock distribution tree on a clock-gated UART variant named uart_top_gated. We implement clock gating on the receiver baud generator. We then run TritonCTS and verify timing across gated domain boundaries.
Implementing the Gated Architecture
The baseline design runs the baud generator continuously. In uart_top_gated, the receiver finite state machine generates an enable signal named rx_baud_en. This signal asserts only while receiving serial frames. We instantiate the SkyWater 130nm library cell directly:
// uart_top_gated.sv: receive-side baud generator, now clock-gated
logic rx_baud_en; // asserted by u_rx only while mid-frame
logic rx_clk_gated; // ICG output; CTS treats this as a local clock root
sky130_fd_sc_hd__dlclkp_1 u_icg_rx_baud (
.CLK (clk),
.GATE (rx_baud_en),
.GCLK (rx_clk_gated)
);
baud_tick_gen_16x #(.CLK_FREQ(CLK_FREQ), .BAUD_RATE(BAUD_RATE))
u_rx_baud (.clk(rx_clk_gated), .rst_n(rst_n), .tick_16x(tick_16x));
The rx_baud_en signal connects to the GATE input of the ICG cell. The GCLK pin drives the clock input of the baud counter registers.
Executing Clock Tree Synthesis
Run the CTS command in OpenLane:
% run_cts
[INFO]: Building RC values for the design based on the extraction rules...
[INFO]: Detected 1 integrated clock gating cell on net clk: sky130_fd_sc_hd__dlclkp_1 (u_icg_rx_baud)
[INFO]: Treating u_icg_rx_baud/GCLK as a local clock root for downstream sinks.
[INFO]: Root buffer selected: sky130_fd_sc_hd__clkbuf_16
[INFO]: Clustering 58 clock sinks across 2 domains (ungated: 51, gated: 7)...
[INFO]: Inserting buffered clock tree...
[INFO]: Clock tree synthesis complete.
TritonCTS identifies the sky130_fd_sc_hd__dlclkp_1 cell on the clock net. The tool treats the GCLK output pin as a local clock root for the 7 downstream counter registers. The remaining 51 registers receive the global ungated clock.
Physical Tree Hierarchy
The synthesized clock structure contains two distinct domains. The global clock tree drives 51 registers through conventional buffer trees. The ICG cell operates as an active internal node driving the 7 gated registers. Downstream latency calculations include the internal delay of the ICG cell.
Static Timing Verification
Verify setup timing on the gating enable path:
Startpoint: u_rx/frame_state_reg (enable-generating register)
Endpoint: u_icg_rx_baud (integrated clock gating cell)
Path Group: clk
Path Type: max
data required time 19.612
data arrival time 0.847
--------------------------------------------------------------
slack (MET) 18.765
The enable signal arrives in 0.847 ns against a 19.612 ns requirement, yielding 18.765 ns of setup slack.
Next, verify hold timing on paths crossing between the ungated domain and the gated domain:
Startpoint: u_rx/shift_reg[3] (ungated domain)
Endpoint: u_rx_baud/count_reg[2] (gated domain)
Path Group: clk
Path Type: min
data required time 0.520
data arrival time 0.541
--------------------------------------------------------------
slack (MET) 0.021
The path satisfies the hold requirement with 21 ps of positive slack. TritonCTS accounted for ICG insertion delays accurately, preventing cross-domain hold violations.
Practice Exercise
Assume a designer adds a second ICG cell to gate the transmit baud generator (u_tx_baud). List the timing checks that this second gated domain requires.
Solution
- Setup check on the transmit enable path driving the
GATEpin of the second ICG cell. - Hold and setup checks on all paths crossing between the
u_tx_bauddomain and the ungated clock domain. - Timing checks on any data paths connecting the
u_tx_bauddomain directly to theu_rx_bauddomain.
The clock distribution network is complete, balanced, and verified across gated domains. Module 6 routes all clock and signal nets into DRC-clean physical metal layers.