Project 4, Part 2: Placement, CTS, Routing, and Timing Closure
In the previous article, we established the floorplan for the 8-bit RISC core at 55% utilization. In this article, we execute placement, clock tree synthesis, routing, and timing closure. At this scale and utilization, the design encounters two real physical bottlenecks: routing track overflow in the control logic and a setup timing violation at the slow process corner (ss_100C_1v60). We diagnose and resolve both issues.
Placement: Diagnosing Track Congestion
openlane --flow Classic --run-tag cpu_run1 --from OpenROAD.GlobalPlacement --to OpenROAD.GlobalRouting \
designs/cpu_top/config.json
Placement itself finishes and legalizes every cell. However, the subsequent global routing summary reveals severe track overflow:
[INFO GRT-0096] Final congestion report:
Layer Resource Demand Usage (%) Max H / Max V / Total Overflow
---------------------------------------------------------------------------------------
met1 81210 64830 79.83% 212 / 0 / 212
met2 80544 52170 64.77% 0 / 88 / 88
met3 57960 21044 36.31% 0 / 0 / 0
...
Total ... 212 / 88 / 300
[WARNING GRT-0115] Global routing finished with overflow.
Global routing reports 300 routing tiles with demand exceeding available tracks on met1 and met2. The OpenROAD congestion heatmap reveals that congestion concentrates in the core center, where the placement engine clustered the control state machine and memory read multiplexers. High-fanin multiplexer buses create dense local routing demand even though average core utilization is a moderate 55%.
Average utilization is a die-wide metric. Localized logic density creates severe regional hotspots.
Resolving Placement Congestion
Do not decrease target placement density across the entire chip. Global density reductions expand core area needlessly. Instead, enable routability-driven placement:
"PL_ROUTABILITY_DRIVEN": true
Routability-driven placement executes an internal trial global route during placement iterations. It detects localized congestion hotspots and inflates standard cell footprints in congested zones, dispersing dense logic clusters outward. Re-executing global placement with this setting eliminates track overflow completely, with wire length increasing by only 2.7%.
Clock Tree Synthesis and Routing
openlane --flow Classic --run-tag cpu_run1 --from OpenROAD.CTS designs/cpu_top/config.json
[INFO CTS-0010] Clock net "clk" has 612 sinks.
Max skew: 0.198 ns
Max latency: 0.890 ns
TritonCTS constructs a balanced clock tree across all 612 flip-flops with 198 ps of maximum skew. Detailed routing resolves all design rules in three optimization passes.
Multi-Corner Timing: Slow-Corner Setup Violation
Multi-corner STA on extracted post-routing parasitics passes at typical (tt) and fast (ff) corners, but fails at the slow corner (ss_100C_1v60):
Startpoint: ctrl/state_reg[2] Endpoint: alu_b_sel_reg Path Type: max
tt_025C_1v80 ss_100C_1v60
clock latency at launch flop 0.890 0.890
clock to Q 0.145 0.312
decode logic (11 levels, 2 high-fanout) 7.470 12.840
data arrival time 8.505 14.042
clock period 12.000 12.000
clock latency at capture flop 0.912 0.912
clock uncertainty + setup -0.310 -0.310
data required time 12.602 12.602
slack +4.097 -1.440
This timing path exhibits +4.10 ns of positive slack at the typical corner, but fails with negative slack of -1.44 ns at the slow corner. Logic gate delays increase by 72% between tt and ss. A long 11-level combinational chain with two high-fanout nets exceeds the 12.0 ns clock period under worst-case voltage and temperature conditions.
Applying an ECO Timing Repair
Resolve the slow-corner violation using OpenROAD gate sizing and buffer insertion commands:
% repair_timing -setup -setup_margin 0.1
The automated resizer upsizes several logic gates along the critical path and buffers one high-fanout net, recovering 1.18 ns of slack. However, remaining slack is still negative (-0.26 ns). Inspection reveals a small NAND gate driving a second high-fanout net that the resizer did not touch to protect a non-critical parallel branch. Manually upsize this cell:
% replace_cell ctrl/_1532_ sky130_fd_sc_hd__nand2_4
Legalize placement, re-route modified nets, extract parasitics, and re-evaluate multi-corner STA:
| Operating Corner | Worst Setup Slack | Worst Hold Slack | Timing Status |
|---|---|---|---|
tt_025C_1v80 |
+4.47 ns | +0.14 ns | PASS |
ss_100C_1v60 |
+0.09 ns | +0.21 ns | PASS (setup critical) |
ff_n40C_1v95 |
+5.31 ns | +0.05 ns | PASS (hold critical) |
All three corners pass, with slow-corner setup slack closing at +0.09 ns, as shown in Figure 1. While compliant, a 90 ps setup margin is narrow and warrants architectural RTL pipelining in production projects.
Practice Exercise
Final setup slack at the slow corner is +0.09 ns. Identify why physical silicon might still experience timing failures in the field despite a positive signoff calculation.
Solution
The slow corner (ss_100C_1v60) evaluates uniform worst-case parameters across the chip. However, real silicon exhibits local on-chip variation (OCV), localized voltage drop (IR drop), and thermal gradients across the die. A 1% delay increase on a 14 ns timing path adds 140 ps of latency, which completely consumes the 90 ps margin.
In industrial tapeouts, designers incorporate additional timing derating factors or modify the RTL architecture to establish wider timing margins.
In the next article, we execute signoff verification across the entire RISC processor database.