Skip to content

Solvers, Physics & Multi-Corner PDKs

RustRCX combines four complementary electromagnetic and circuit-reduction engines behind one deterministic integer-DBU geometry pipeline.

1. Multi-Layer Shielded 2.5D Capacitance (pex25d.rs)

Given canonical disjoint rectangles on conductor layers 0 .. L−1:

  1. Exact Multi-Layer Vertical Shielding: For every shape s on layer ℓ, extract_cap_25d walks downward through layers ℓ−1 .. 0, iteratively subtracting overlapping shapes (subtract_rects) so each vertical overlap area couples strictly to the nearest unshielded conductor below, and only the final exposed remainder couples to the grounded substrate (z = 0).
  2. Intrinsic Device Separation: On ConductorKind::Poly, MOSFET channel rectangles (gate_rects = poly & diff \ poly_res) are subtracted from both field-poly area and field-poly perimeter extraction so intrinsic gate oxide (Cox, CGSO, CGDO) is never double-counted alongside extracted XM BSIM4/PSP103 devices. Unshielded field poly over NWell couples cleanly to the NWell tie net (VDD/VPWR) rather than p-substrate. Likewise, MIM plate-to-bottom-metal overlap belongs exclusively to the extracted XCMIM device.
  3. Exposed Outer Boundary Edges & Lateral Screening: Co-net abutting seams cancel out before edge sweeps. Each exposed outer edge runs an exact 1D nearest-neighbor visibility sweep along its outward normal up to the layer halo_um. Closer co-planar neighbors absorb lateral sidewall capacitance C_sw = 0.5 · (K_sw / (d + d₀)) · L_vis while smoothly attenuating vertical fringe/sideoverlap via 1 − exp(−d / (0.85 · h_eff)) to conserve electric flux.
  4. Chunk-Level Multi-Core Determinism: Large layers (≥ 512 shapes or ≥ 1024 edges) fan out via Rayon par_chunks and reduce deterministically in canonical index order.

2. Arbitrary-Polygon 2D FVM Sheet Resistance (fvm_res.rs)

  • Multi-Cut Via Array Clustering: Vias sharing (net, via_layer, lower_island, upper_island) within local array pitch are grouped via single-linkage X-sweep clustering into a single parallel-equivalent via resistor R_eq = R_cut / N_cuts anchored at the cluster bounding box.
  • 2D Finite-Volume Schur Complement: On every multi-terminal polygon island (excluding 2-terminal straight bars which take an O(1) exact analytic fast path), solve_island_resistance builds an adaptive rectilinear FVM mesh aligned to all shape and terminal edges, assembles the symmetric conductance matrix G, and solves ∇ · (σ ∇V) = 0 via diagonally preconditioned CG (solve_pcg) to obtain the exact port Schur complement:
G_eff = G_pp − G_pi · G_ii⁻¹ · G_ip
  • Connectivity-Preserving Sparsification: A Kruskal max-conductance spanning forest guarantees zero disconnected terminals while pruning sub-1% floating-point bypass conductances (G_pq < 1e-2 · min(G_max[p], G_max[q])) that arise across intermediate contacts on 1D strips.
  • Channel-Edge Device Attachment: MOSFET source/drain terminals attach along the narrow diffusion strip immediately bordering the gate channel rather than eclipsing contact landing pads, capturing exact diffusion sheet resistance between contacts and channel edges.

3. Native 3D Electrostatic Field Solvers

3D Layered-Dielectric Finite-Volume Laplace (fd3d.rs)

Solves ∇ · (ε(z) ∇φ) = 0 over a grounded silicon substrate (z = 0) on a geometrically graded 3D rectilinear grid anchored strictly to every BEOL/poly/via box face and every dielectric stratum interface (z_k, ε_r):

  • Dual control-volume face conductances guarantee exact discrete flux conservation and a symmetric positive-definite Maxwell capacitance matrix (C_ii > 0, C_ij = C_ji ≤ 0 for i ≠ j).
  • Net excitations (φ_src = 1 V, all others 0 V) solve concurrently across all CPU cores via Rayon stencil PCG.
  • Validated to < 1e-6 relative error against exact analytical 2-layer stacked dielectric parallel plates and 7.96e-8 fF max asymmetry on real silicon sg13g2_inv_1.

3D Boundary Element Method (bem3d.rs)

Replaces external C++ FasterCap with a pure-Rust first-kind single-layer boundary integral solver:

  • Discretizes conductor faces into rectangular panels and evaluates exact analytical Hess-Smith potential integrals P_ij = (1 / 4πε_eff) ∬_{S_j} dS' / ‖r_i − r'‖ plus ground-plane method of images (z' → −z').
  • Solves P σ = φ via Jacobi-preconditioned restarted GMRES(30) and integrates panel charges to assemble the full 3D Maxwell capacitance matrix.
  • Validated within < 2% of the classical free-space unit-cube reference (C / (4πε₀ a) = 0.660678) and runs in 13–20 ms on real standard cells.

4. TICER Reduction & Admittance Verification

  • Worklist O(N) TICER (reduce.rs): Eliminates non-port internal nodes whose nodal time constant τ_u = C_u / G_u ≤ τ_s (default 1 ps) and resistive degree ≤ 4 (Sheehan 1999 fill-in guard), updating neighbor conductances via exact star-mesh Schur complements and distributing ground/coupling capacitances proportionally to g_uv / G_u.
  • Complex Y(jω) Admittance Sweep (admittance.rs): Forms Y(jω) = G + jωC for both original and reduced networks, eliminates internal nodes via complex Schur complement to extract port admittance matrices Y_port(jω), and verifies ‖Y_red − Y_orig‖_F / ‖Y_orig‖_F ≤ ε across user-specified frequency sweeps (e.g. 1 MHz–10 GHz).

5. Multi-Corner Open PDK Stacks (rustrcx-profile)

PDK Corners Layers & Vias Live Calibration Parsers
SKY130A min, nom, max diff, tap, poly, li1, met1..met5, capm, licon, mcon, via..via4 sky130A-extract.tech, OpenRCX .rules, Tech LEF
IHP SG13G2 min, nom, max Activ, GatPoly, Metal1..Metal5, MIM, TopMetal1..2, Cont, Via1..4, Vmim, TopVia1..2 ihp-sg13g2-extract.tech, SG13G2 dielectric stack, OpenRCX .rules, Tech LEF
GF180MCU D min, nom, max COMP, Poly2, Metal1..Metal5, FuseTop, Contact, Via1..4 gf180mcuD-extract.tech (with automatic blanket placeholder contact guard), OpenRCX .rules, Tech LEF