Running Multi-Corner Analysis on the UART
Single-corner timing analysis verifies circuit operation at nominal conditions only. This laboratory exercise configures multiple PVT corners within an interactive OpenROAD session. We evaluate the critical parity checking path across all corners and expose a setup violation at the slow corner.
Parasitic Extraction Across RC Corners
Manufacturing variations alter metal wire thickness and dielectric spacing. Designers must extract parasitics at three interconnect corners:
- Minimum RC (
min): Thin dielectric and thick metal lines. - Nominal RC (
nom): Standard nominal metal dimensions. - Maximum RC (
max): Thin metal lines and tight dielectric spacing.
Execute OpenRCX extraction for each rule file to generate corresponding SPEF files:
# Execute once per RC corner: min, nom, max
read_lef $PDK_ROOT/sky130A/libs.ref/sky130_fd_sc_hd/techlef/sky130_fd_sc_hd__nom.tlef
read_lef $PDK_ROOT/sky130A/libs.ref/sky130_fd_sc_hd/lef/sky130_fd_sc_hd.lef
read_def runs/uart_full/results/routing/uart_top.def
define_process_corner -ext_model_index 0 X
extract_parasitics -ext_model_file $PDK_ROOT/sky130A/libs.tech/openlane/rules.openrcx.sky130A.$::env(RC).calibre
write_spef runs/uart_full/results/extraction/uart_top.$::env(RC).spef
Configuring Multi-Corner Analysis in OpenROAD
Launch OpenROAD and define the three PVT corners simultaneously:
openroad
% define_corners tt ss ff
% read_liberty -corner tt $PDK_ROOT/sky130A/libs.ref/sky130_fd_sc_hd/lib/sky130_fd_sc_hd__tt_025C_1v80.lib
% read_liberty -corner ss $PDK_ROOT/sky130A/libs.ref/sky130_fd_sc_hd/lib/sky130_fd_sc_hd__ss_100C_1v60.lib
% read_liberty -corner ff $PDK_ROOT/sky130A/libs.ref/sky130_fd_sc_hd/lib/sky130_fd_sc_hd__ff_n40C_1v95.lib
% read_lef $PDK_ROOT/sky130A/libs.ref/sky130_fd_sc_hd/techlef/sky130_fd_sc_hd__nom.tlef
% read_lef $PDK_ROOT/sky130A/libs.ref/sky130_fd_sc_hd/lef/sky130_fd_sc_hd.lef
% read_def runs/uart_full/results/routing/uart_top.def
% read_sdc runs/uart_full/results/routing/uart_top.sdc
% set_propagated_clock [all_clocks]
% read_spef -corner tt runs/uart_full/results/extraction/uart_top.nom.spef
% read_spef -corner ss runs/uart_full/results/extraction/uart_top.max.spef
% read_spef -corner ff runs/uart_full/results/extraction/uart_top.min.spef
The define_corners command registers corner identifiers. The -corner switch associates each Liberty file and SPEF database with its respective corner.
Comparing Corner Slacks
Execute timing checks across all three corners:
% foreach c {ff tt ss} {
puts "Evaluating corner: $c"
report_checks -corner $c -path_delay max -format end
}
The table below summarizes worst-case setup slack across the design:
| Corner Name | Liberty Model | Interconnect Model | Worst Setup Slack | Signoff Status |
|---|---|---|---|---|
ff |
ff_n40C_1v95 |
min RC |
+1.45 ns | MET |
tt |
tt_025C_1v80 |
nom RC |
+0.19 ns | MET |
ss |
ss_100C_1v60 |
max RC |
-2.00 ns | VIOLATED |
The nominal corner reports positive slack. However, the slow-slow corner exposes a catastrophic 2.00 ns setup violation.
Analyzing the Slow-Corner Violation
Inspect the full timing report at the ss corner:
% report_checks -corner ss -path_delay max -to rx_ctrl/parity_err_reg/D
Startpoint: rx_ctrl/shift_reg_reg[7]
(rising edge-triggered flip-flop clocked by clk)
Endpoint: rx_ctrl/parity_err_reg
(rising edge-triggered flip-flop clocked by clk)
Path Group: clk
Path Type: max
Corner: ss
Delay Time Description
-----------------------------------------------------------------
0.00 0.00 clock clk (rise edge)
0.00 0.00 clock network delay (propagated)
0.00 0.00 ^ rx_ctrl/shift_reg_reg[7]/CLK (sky130_fd_sc_hd__dfxtp_2)
0.99 0.99 ^ rx_ctrl/shift_reg_reg[7]/Q (sky130_fd_sc_hd__dfxtp_2)
0.53 1.52 v _2201_/X (sky130_fd_sc_hd__xor2_2)
0.58 2.10 ^ _2202_/X (sky130_fd_sc_hd__xor2_1)
0.58 2.68 v _2203_/X (sky130_fd_sc_hd__xor2_1)
2.86 5.54 ^ _2204_/X (sky130_fd_sc_hd__xor2_2)
0.02 5.56 ^ rx_ctrl/parity_err_reg/D (sky130_fd_sc_hd__dfxtp_2)
5.56 data arrival time
4.00 4.00 clock clk (rise edge)
0.00 4.00 clock network delay (propagated)
-0.15 3.85 clock uncertainty
0.00 3.85 clock reconvergence pessimism
3.85 ^ rx_ctrl/parity_err_reg/CLK (sky130_fd_sc_hd__dfxtp_2)
-0.29 3.56 library setup time
3.56 data required time
-----------------------------------------------------------------
3.56 data required time
-5.56 data arrival time
-----------------------------------------------------------------
-2.00 slack (VIOLATED)
At the ss corner, gate delays increase substantially. Gate _2204_ delay increases from 1.94 ns to 2.86 ns because its output transistors drive the heavy 118.6 fF wire load under minimum supply voltage (1.60 V) and elevated junction temperature (100 °C). Data arrival time increases to 5.56 ns, causing a 2.00 ns timing violation.
Practice Exercise
An engineer suggests fixing this violation by loading the nominal nom SPEF file instead of the max SPEF file during ss analysis. Evaluate this suggestion.
Solution
This suggestion is invalid. It violates signoff methodology principles.
Interconnect variations are physical manufacturing characteristics defined by foundry process margins. Substituting nominal wire models under slow process conditions underestimates physical RC loading. Furthermore, gate delay in _2204_ caused the majority of the timing increase. The engineer must fix the underlying circuit path using logic restructuring, buffer insertion, or driver sizing.
Multi-corner analysis revealed a real timing violation at the slow operating corner. Section 7.4 resolves this timing violation using Engineering Change Order (ECO) methodologies.