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:
- Exact Multi-Layer Vertical Shielding: For every shape
son layerℓ,extract_cap_25dwalks 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). - 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 extractedXMBSIM4/PSP103 devices. Unshielded field poly overNWellcouples cleanly to theNWelltie net (VDD/VPWR) rather than p-substrate. Likewise,MIMplate-to-bottom-metal overlap belongs exclusively to the extractedXCMIMdevice. - 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 capacitanceC_sw = 0.5 · (K_sw / (d + d₀)) · L_viswhile smoothly attenuating vertical fringe/sideoverlap via1 − exp(−d / (0.85 · h_eff))to conserve electric flux. - Chunk-Level Multi-Core Determinism: Large layers (
≥ 512shapes or≥ 1024edges) fan out via Rayonpar_chunksand 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 resistorR_eq = R_cut / N_cutsanchored 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_resistancebuilds an adaptive rectilinear FVM mesh aligned to all shape and terminal edges, assembles the symmetric conductance matrixG, and solves∇ · (σ ∇V) = 0via diagonally preconditioned CG (solve_pcg) to obtain the exact port Schur complement:
- 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 ≤ 0fori ≠ j). - Net excitations (
φ_src = 1 V, all others0 V) solve concurrently across all CPU cores via Rayon stencil PCG. - Validated to
< 1e-6relative error against exact analytical 2-layer stacked dielectric parallel plates and7.96e-8 fFmax asymmetry on real siliconsg13g2_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 in13–20 mson 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(default1 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 tog_uv / G_u. - Complex
Y(jω)Admittance Sweep (admittance.rs): FormsY(jω) = G + jωCfor both original and reduced networks, eliminates internal nodes via complex Schur complement to extract port admittance matricesY_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 |