Skip to content

CLI & Integration Guide

RustRCX exposes a single static binary (rustrcx) for standalone GDSII extraction, 3D field solving, and agent automation, and integrates natively into both RustLayout and RustROAD.

1. Standalone rustrcx CLI

Build the release binary with Rust 1.100+:

cargo build --release -p rustrcx-cli

rustrcx extract-gds

Runs the complete physical extraction pipeline: GDSII / .gds.gz ingestion, hierarchical flattening (with optional --cut blackboxing), polygon booleans, connectivity & label attachment, device extraction (MOSFET / MIM / poly resistor), 2.5D / 3D capacitance & 2D FVM sheet resistance, optional TICER reduction & $Y(j\omega)$ admittance verification, and SPICE / SPEF / overlay export.

rustrcx extract-gds <GDS_PATH> \
  --pdk <sky130A|ihp-sg13g2|gf180mcuD> \
  --corner <min|nom|max> \
  [--cell <TOP_CELL>] \
  --engine <2.5d|3d-fd|3d-bem|hybrid> \
  --mode <c|cc|r|rc|rcc> \
  [--port-labels <auto|top>] \
  [--magic-tech <PATH_TO_EXTRACT_TECH>] \
  [--exclusion-markers <ignore|tie|ports>] \
  [--exclusion-marker-layer <L/D[:layer1,layer2]>]... \
  [--cut <CELL[=PREFIX]>]... \
  [--exclude-net <GLOB>]... \
  [--min-coupling-ff <FF>] \
  [--reduce <none|floating|ticer>] [--reduce-tau <SECONDS>] \
  [--check-frequency-range <START_HZ,STOP_HZ>] [--check-max-relative-error <ERR>] \
  [--out-spice <OUT.spice>] [--out-spef <OUT.spef>] [--out-overlay <OUT.json>] \
  [--json]

Common Examples

# Standard-cell full RCC extraction with SPICE + IEEE 1481 SPEF + JSON summary
rustrcx extract-gds sg13g2_stdcell.gds \
  --cell sg13g2_inv_1 --pdk ihp-sg13g2 --corner nom \
  --engine 2.5d --mode rcc \
  --out-spice inv1.spice --out-spef inv1.spef --json

# 3D layered-dielectric Laplace + TICER reduction + 1 MHz–10 GHz Y(jw) verification
rustrcx extract-gds sg13g2_stdcell.gds \
  --cell sg13g2_inv_1 --pdk ihp-sg13g2 \
  --engine 3d-fd --mode rcc \
  --reduce ticer --reduce-tau 1e-12 \
  --check-frequency-range 1e6,1e10

# Multi-corner sweep (min / nom / max) with live Magic extract tech override
for c in min nom max; do
  rustrcx extract-gds sky130_fd_sc_hd.gds \
    --cell sky130_fd_sc_hd__dfxtp_1 --pdk sky130A --corner "$c" \
    --magic-tech sky130A-extract.tech --out-spef "dfxtp_${c}.spef"
done

# Macro extraction blackboxing SRAM subcells & excluding power rails from substrate R/C
rustrcx extract-gds chip.gds --pdk ihp-sg13g2 \
  --cut "RM_IHPSG13_*=XSRAM" --exclude-net "VDD*" --exclude-net "VSS*" \
  --out-spice chip_pex.spice

rustrcx solve3d

Computes the full $N \times N$ 3D Maxwell capacitance matrix on any GDS cell using either the native 3D layered-dielectric finite-volume Laplace solver (3d-fd) or the 3D Hess-Smith BEM solver (3d-bem):

rustrcx solve3d sg13g2_stdcell.gds \
  --cell sg13g2_inv_1 --pdk ihp-sg13g2 \
  --engine 3d-fd --h-min 0.05 --max-axis 72 --json

rustrcx inspect-region & rustrcx list-cells

Fast bounding-box inspection emitting rustrcx.overlay.v1 JSON for AI agents and layout viewers:

rustrcx list-cells design.gds --json
rustrcx inspect-region design.gds --pdk sky130A --bbox 0,0,10000,10000 --max-hotspots 64

2. RustLayout Integration (.gds, .gds.gz, .oas, .rlay)

RustLayout embeds RustRCX directly over its in-memory hierarchical LayoutDb via rustlayout_app::pex::flatten_layout_db, eliminating disk re-parsing and bringing full parasitic extraction to OASIS (.oas) and zero-copy .rlay caches as well as GDSII.

Headless rustlayout pex CLI

# Auto-detect PDK from GDS/OASIS/.rlay layers and extract directly
rustlayout pex chip.oas --top my_cell --pdk auto --engine 2.5d --mode rcc \
  --out-spice my_cell.spice --out-spef my_cell.spef --out-overlay overlay.json

# Extract only a zoomed DBU viewport region
rustlayout pex chip.rlay --bbox 10000,20000,50000,60000 --engine hybrid --json

Interactive Signal Forge v2 Workbench (Parasitics Tab)

Launch rustlayout view chip.gds and switch to the right-side Parasitics dock tab (also toggleable under Window -> Parasitics (RustRCX)):

  1. Select PDK (auto, sky130A, ihp-sg13g2, gf180mcuD), Corner (min, nom, max), Engine (2.5D+FVM, 3D-FD, 3D-BEM, Hybrid), and Mode (C, CC, R, RC, RCC).
  2. Click Extract Top Cell or Extract Viewport to run RustRCX directly on the loaded LayoutDb.
  3. Filter extracted nets by name and click any Net row or Coupling Hotspot entry to zoom the 120–400+ FPS GPU viewport straight to the exact DBU bounding box with a live copper/mint highlight overlay.

3. RustROAD Post-Route Integration

RustROAD links directly to rustrcx-core and rustrcx-formats:

  • rustroad-core implements rustrcx_core::PassiveInstanceSource via a zero-copy adapter over InstanceObstacles, delegating post-route 2.5D strip extraction cleanly to rustrcx_core::extract::extract_cpu_ref.
  • rustroad-formats re-exports rustrcx_formats::spef::* for deterministic parallel streamed IEEE 1481 SPEF generation consumed by RustSTA.