Extracting Parasitics From the Routed UART
This laboratory exercise runs parasitic extraction on the fully routed UART design from Module 6. We execute OpenRCX commands inside OpenROAD, generate a physical SPEF file, and examine extracted net records.
Prerequisites for Extraction
OpenRCX requires three input datasets:
- Technology and standard cell LEF files defining interconnect layers and cell boundaries.
- The routed DEF database containing final physical wire geometries.
- The PDK extraction rule file specifying sheet resistances and capacitance models.
Figure 1 illustrates the extraction flow. OpenROAD merges LEF geometries, DEF routing tracks, and PDK rules to output the SPEF database.
Executing OpenRCX in OpenROAD
Launch the interactive OpenROAD shell and execute the extraction commands:
openroad
% 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.nom.calibre
% write_spef runs/uart_full/results/extraction/uart_top.nom.spef
The command define_process_corner defines process corner X using model index 0. The extract_parasitics command analyzes each routed wire segment. Finally, write_spef exports the parasitics database.
The tool outputs a concise summary log:
[INFO RCX-0431] Defined process_corner X with ext_model_index 0
[INFO RCX-0029] Defined extraction corner X
[INFO RCX-0435] Reading extraction model file ...
[INFO RCX-0008] extracting parasitics of uart_top ...
[INFO RCX-0015] Finished extracting uart_top.
[INFO RCX-0016] Writing SPEF ...
[INFO RCX-0443] 1842 nets finished
You must never extract parasitics from an unrouted or DRC-violating layout. If routing leaves disconnected traces, OpenRCX extracts incomplete capacitance networks, producing invalid timing slacks.
Inspecting the Extracted Net Record
Query the generated SPEF file for parity_net:
SPEF=runs/uart_full/results/extraction/uart_top.nom.spef
grep -n "rx_ctrl/parity_net$" $SPEF # Identifies index, such as *1
awk '/^\*D_NET \*1 /,/^\*END/' $SPEF
The shell outputs the distributed RC entry:
*D_NET *1 118.6
*CONN
*I *2:X O
*I *3:D I
*CAP
1 *2:X 9.4
2 *1:1 14.1
3 *1:2 11.8
4 *3:D 83.3
*RES
1 *2:X *1:1 6.2
2 *1:1 *1:2 18.9
3 *1:2 *3:D 41.7
*END
The extracted record confirms a total capacitance of 118.6 fF. The individual nodal capacitances sum to the total net capacitance:
$$9.4 + 14.1 + 11.8 + 83.3 = 118.6\text{ fF}$$
This match verifies numerical consistency across extraction segments.
Practice Exercise
Assume a routed wire contains an open circuit caused by an unplaced via. Detailed routing failed to flag the disconnection. What does OpenRCX extract for this net, and how does the error affect static timing analysis?
Solution
OpenRCX extracts capacitance only for metal shapes physically connected to the driver. The floating metal segment beyond the open circuit is ignored.
The resulting SPEF record shows artificially low capacitive load on the driver. Static timing analysis calculates an optimistic, invalid stage delay. However, downstream load pins beyond the open circuit receive no signal transitions. Layout-versus-schematic (LVS) verification detects this open net as a circuit discrepancy.
Parasitic extraction provides accurate physical circuit models. Section 7.3 uses these SPEF models to execute multi-corner static timing analysis in OpenSTA.