# Signal integrity: crosstalk and a board's coupling The crosstalk question tells you how much of one trace's edge arrives on its neighbours, at their near end (NEXT) and at their far end (FEXT), and what in the layout makes it. You name the traces by their nets; the ports, the solve and the reading of the result are done for you. ```sh python -m kicad2ems.core.si board.kicad_pcb --nets D0,D1,D2 --rise 100 --limit 3 --out out/xt kicad2ems study examples/si_bus.toml # the same from a config: [analysis.crosstalk] ``` In the window it is **Crosstalk** under *Signal integrity* in the study's questions. Its *Answered by* cell offers the line model (the default) or a full-wave solver beside it: *line model + gfdtd*, *line model + openEMS*, *line model + mom25d*; one not installed is greyed with the reason. A config says it the same way: ```toml [study.crosstalk] engine = "gfdtd" # crosstalk_gfdtd, or "line model + gfdtd"; "line model" or none: the line model alone ``` (An `[analysis.crosstalk]` table's `check = "gfdtd"`, from before these were engines, is read as that engine when `[study.crosstalk]` names none.) *Find traces side by side* lists the pairs of nets that run close together on the board, to pick from; **Pick** beside *Nets* takes them from clicks on the board ([picking](gui.md#pick)). ![The crosstalk question's result in the window](img/gui/crosstalk.png) ## What it does 1. **The traces' ends.** Each net's routed copper is followed to its two ends (the pair of free track ends furthest apart along the tracks). An end on a pad gets its port on the pad, a free end a port 0.3 mm in from it. The near end is the one at a part you name (`--near U1`); with none named, the ends nearest the first trace's first end. The log says which end is which. 2. **The solve.** The S-parameters between all the ends, by the [line model](transmission-lines.md): its coupled sections come from the 2D field solver on the board's own cross-section, and it takes a second or two. Name a full-wave solver beside it (`--solvers lines,gfdtd`; the engine in the window or `[study.crosstalk]`) and the same ports are solved by both: the headline, the tables and the curves are then the full-wave solver's (the headline ends "by gfdtd ..."), the line model's figures beside them (*Against line model*), and the layout's stretches still the line model's. mom25d runs with lumped ports here. 3. **NEXT and FEXT.** With trace *a* driven at its near end, a victim's NEXT is S(victim near, *a* near) and its FEXT is S(victim far, *a* near): over frequency in dB, and in time for an edge of `--rise` ps (10 to 90 %), as the largest voltage at each end in percent of the aggressor's swing. Each trace is the aggressor in turn unless `--aggressor` names them. A victim with several aggressors also gets their sum: in time each one's largest added up (the worst case), over frequency their power sum. 4. **The layout.** Every stretch where two of the traces run side by side is listed with its length, gap and layer, and with the coupling its cross-section gives: Kc (capacitive) and Kl (inductive). From these follow the textbook estimates, which the report sets beside the solved figures to explain them: | | | |---|---| | NEXT, saturated | (Kc + Kl) / 4: an edge shorter than twice the stretch's delay; a longer run changes nothing | | NEXT, short stretch | that times 2 Td / ramp: grows with the length | | FEXT | (Kc − Kl) / 2 × Td / ramp: grows with the length and with a faster edge; near zero in stripline | The report says which case each stretch is in, the length below which NEXT would start to fall, and what a gap 1.5, 2 and 3 times as wide would give (the same cross-section solved again with the victim moved away). With a limit (`--limit`, percent of the swing; `--mode next`, `fext` or `both` says of what), it says whether the limit is met and the gap that would meet it. A pair the line model puts in no coupled section (traces on two layers, or further apart than it couples) has no path between its ends there: its crosstalk was not computed, and the limit is not judged ("not modelled": a full-wave solver beside it answers). ## The example `examples/si_bus.toml`: three 50 Ω traces on a 4-layer board, 0.2 mm apart for 30 mm. For a 100 ps edge: | | line model | gfdtd | mom25d | |---|---|---|---| | NEXT, a neighbour | 6.0 % | 6.0 % | 6.5 % | | FEXT, a neighbour | −6.5 % | −7.4 % | −8.0 % | | NEXT, the next trace but one | 1.4 % | 1.5 % | | | FEXT, the next trace but one | −2.5 % | −2.5 % | | | the middle trace, both neighbours switching | 12.0 % and 13.1 % | | | | run time | 2 s | 11 s (GPU; 71 s on the CPU core) | 76 s | mom25d's sweep stopped unconverged at its 60 solves here; gfdtd is the full-wave check to use on this board (`tests/core/test_si.py` runs it: NEXT within 0.5 and FEXT within 1.5 percentage points of the line model's). The stretch's own estimate is 7.1 % for both (Kc 0.090, Kl 0.193): the edge's ramp of 125 ps is shorter than twice the stretch's delay of 176 ps, so NEXT is saturated and only a wider gap lowers it: 4.8 % at 0.3 mm, 3.5 % at 0.4 mm, 2.1 % at 0.6 mm. ## Options | Option | Default | | |---|---|---| | `--nets` | | the traces, by net, comma-separated: two or more | | `--aggressor` | each in turn | the driven traces | | `--near` | nearest ends | the parts at the near (driven) ends: `U1,U2` | | `--legs` | off | a differential pair's legs as two traces (default: the pair one trace, in its differential mode) | | `--mode` | both | what the headline and the limit are about: `next`, `fext`, or the larger | | `--rise` | 100 | the aggressor's edge, ps (10 to 90 %) | | `--limit` | none | the most crosstalk allowed, percent of the swing | | `--z0` | 50 | each trace's termination at both ends, Ω | | `--solvers` | lines | `lines,gfdtd` (or `openems`, `mom25d`): a full-wave solver beside the line model; in a study, the engine | | `--ground` | as drawn | the copper layer taken as a solid plane | | `--fmax` | 1 / rise | the highest frequency solved, GHz | | `--sigma` | lossless | copper conductivity, S/m | The result is `crosstalk.json` in the output folder (the pairs' curves and waveforms, the victims' sums, the stretches), beside the run's own files (`_.sNp`, `_lines.json`). ## What it leaves out - **A pair's common mode.** A differential pair is one trace in its differential mode (as it drives and as its receiver sees it; `--legs` takes its legs as two traces). What its neighbours put into its common mode, and its skew, are not reported yet. - **Drivers and receivers.** Every end is terminated in `--z0`. A real driver's impedance and an unterminated receiver reflect, and NEXT that reflects at the near end arrives at the far end too. - **Coupling that is not a parallel run.** The line model sees side-by-side stretches. Crossings on adjacent layers, a shared return via or a gap in the plane under the traces need the full-wave check. ## A board's coupling, a layer at a time The crosstalk question is for a few named traces. **Board coupling** (`kicad2ems.core.coupling`) is for a bus: many nets named by patterns, each signal layer solved with its reference planes alone, and for each victim its worst aggressors. ```sh python -m kicad2ems.core.coupling board.kicad_pcb --nets 'DQ*,DQS*' --rise 100 --limit 15 --out out/cpl kicad2ems study examples/si_ddr.toml # the same from a config: [analysis.coupling] ``` In the window it is **Board coupling** under *Signal integrity*, answered by mom25d (the default) or the line model (`coupling_lines`: seconds, a first look). A config says it as `[study.coupling] engine = "coupling_lines"`. What it does: 1. **The nets.** Those whose names match a pattern (`DQ*`, `DQS?_[PN]`: fnmatch; a name alone is a pattern too). Nets with zones (planes, pours) are never traces. 2. **The layers.** On each copper layer where the nets run (`--layers` to choose), each net's stretch there: its tracks on that layer, ended where it leaves the layer (at a via or a pad), a port at each end. A stretch shorter than `--min-length` (5 mm) is a breakout: left out, and listed. The nets of a layer are ordered across the way they run, so the matrices' neighbours sit beside their diagonal. 3. **The solve.** The board is imported once with every layer's ports. Each layer is then solved on a board of its own: that layer's stretches and the ground copper of every layer (the reference planes: mom25d takes solid planes as PEC), the selected nets' vias, their copper on other layers and the parts left out. A port at its net's own via (a stretch that leaves the layer there) gets the plane's copper under it, the via's antipad closed. mom25d solves the layer over its own reference plane (the plane its ports reference, the copper beyond it left out; `--mom-stack ground`), the board turned over for a layer under its plane (B.Cu under In4.Cu): its automatic stack had meshed every plane of a real board, whose planes have apertures under the traces. **Groups:** a layer's nets whose tracks come no nearer than `--apart` mm to any others of them (default 20 heights over the layer's plane: microstrip crosstalk falls as 1 / (1 + (s/h)^2), ~0.25 % of its close range there) are solved as separate groups, the coupling between groups taken as none; each group's run in `/group`. `--apart 0`: the whole layer at once. 4. **The coupling.** Each net's near end driven in turn, every end terminated in `--z0`: each victim's NEXT and FEXT from each aggressor, as the largest share of the swing for an edge of `--rise` ps (as the crosstalk question's). Each layer gets the matrices (victim by aggressor), each victim its `--top` worst aggressors and their sum (every aggressor's peak at once: the worst case), and the worst pairs. A differential pair (its legs by name: `D0_P` / `D0_N`, `TX+` / `TX-`) is one channel: it drives, and its receiver sees, in its differential mode, and crosstalk between modes is the voltage share (S scaled by the modes' reference impedances: 2 z0 differential, z0 single). Each pair also gets its own conversion to common mode (driven differentially, seen in common mode at either end: what an asymmetric neighbour or a longer leg makes). `--legs` takes the legs as two nets instead. `--limit` judges the worst victim's sum (`--mode`: of NEXT, FEXT or the larger). The result is `coupling.json`, a figure per layer (`coupling_.png`: the NEXT and FEXT matrices, and the layer's stretches coloured by each victim's sum) and each layer's run in its own folder. `examples/si_ddr.toml` (`make_rf_examples.py ddr`): two byte lanes, each four DQ lines and a DQS pair, lane 0 microstrip on F.Cu, lane 1 stripline on In2.Cu through vias. For a 100 ps edge, the worst victim's sum (the DQS pair on both layers, in its differential mode, from the lines on either side of it): | | mom25d | line model | |---|---|---| | F.Cu (microstrip): NEXT, FEXT | 12.1 %, 14.0 % | 11.4 %, 10.9 % | | In2.Cu (stripline): NEXT, FEXT | 8.3 %, 1.5 % | 7.2 %, 0.5 % | | the pair's conversion to common mode | 0.02-0.06 % | 0 | | run time, both layers | 8.6 min (GPU) | 18 s | The pairs sit mirror-symmetric between two lines, so they convert next to nothing; with the legs as two nets (`--legs`) the worst victim is DQ1, beside DQS0_P: 14.7 % NEXT and 20.4 % FEXT by mom25d. In stripline (one dielectric around the traces) FEXT nearly cancels, in microstrip it is larger than NEXT. mom25d finds more FEXT than the line model: it sees the fan-outs and the whole layer's field, the line model its coupled sections alone. What it leaves out: what crosses between layers (a via's field, a reference plane's gaps, broadside traces on adjacent layers), since each layer is solved on its own; drivers and receivers, as the crosstalk question; and a stretch's own branches (a net that forks on a layer is its longest path there). The line model couples only the lines it groups into coupled sections: lines further apart than that (a few heights) read 0 % where mom25d finds a little. It takes ground copper between two lines (a guard trace, a pour) into the lines' cross-section as ideal ground along its length, however it is stitched: a guard tied down at its ends alone reads as one stitched every 3 mm (mom25d: 2.46 % FEXT against 2.25 %). ## A board in pieces: vias as ports (`kicad2ems.core.segment`, in progress) For boards too large to solve whole (the user's plan, 2026-11-20): each signal layer's traces over ideal planes (mom25d's Green's function carries them: the planes are not meshed), each signal via, or a group of them whose circles touch (a pair's), a small model of its own, and the pieces joined as one network. ```sh python -m kicad2ems.core.segment examples/rf_msvia.toml --out out/seg python -m kicad2ems.core.segment board.kicad_pcb --nets 'PCIE*,HDMI*' --out out/seg # ports at the nets' ends on pads ``` - **The cuts:** a circle round each signal via, its radius 0.25 mm beyond the via's pad and the largest antipad round it in the planes; every trace that crosses it is cut there, a port on each side. A via where its net ends at a port (a through-hole pad's barrel) is not cut. - **A layer's piece:** its signal copper outside every circle, the planes of the other layers (ideal), no vias, its external ports and a port at each cut. - **A via's piece:** its group's copper inside the circle on every layer, the planes clipped to a box 1.5 mm beyond the circle (with their antipads), the vias in the box (its own and the ground vias round it), a port at each cut; mom25d meshes its whole stack. - **The join:** S_e = S_ee + S_ei G (I - S_ii G)^-1 S_ie over the pieces' S side by side (G pairs the two sides of each cut); the external ports' Touchstone and `segment.json` (the pieces, their ports and times). - **External ports:** the board's own, or (`--ends`, and wherever the board has none) one on each pad where a selected net's tracks end. - **Groups:** a layer's nets further apart than `--apart` heights over its plane (20 by default, as Board coupling's) are pieces of their own, their coupling taken as none; two nets are one piece only where one runs that near the other for 2 mm or more (a close approach at a connector's pads had chained a CM5 carrier's D-PHY, PCIe and USB-C into one piece), a pair's legs always together; `--apart 0`: one piece a layer. - **`--layer-solver lines`:** the layer pieces on the line model (its 2D field-solved cross-sections), the via models on mom25d: rf_msvia S21 within 0.15 dB of the whole board, rf_diffvia Sdd21 0.11 dB rms (all on mom25d 0.18 / 0.16). On the CM5 Minima its 13 layer pieces take 2 min (mom25d's largest alone took 49 min); against mom25d on that piece (18 nets, 20 through paths) the worst of each path over 1-10 GHz is 0.5 dB at the median, 1.4 dB on PCIe, and a stub's notch (USB-C's branch) misplaced. A via model keeps the planes in its box and small ground pads, not a signal layer's pour (as the layer pieces leave it out). - **`--via-solver pbm`** (prototype, `kicad2ems.core.viamodel`): the via models without a mesh, as the hybrid SI tools model vias: each signal via a chain of nodes (at the planes it crosses and its pads), its capacitance to each plane from an axisymmetric electrostatic solve, in each cavity between two planes the parallel-plate Green's function (w mu d / 4) H0^(2)(k rho) coupling every via that crosses it, ground vias shorting the cavity, each port through its stub as a line. Against the whole board on mom25d: rf_msvia S21 within 0.30 dB (the meshed via model 0.34), rf_diffvia Sdd21 0.073 dB rms (meshed 0.193, gfdtd's whole board 0.177); the CM5 Minima's 12 via models in 18 s (meshed on the coarse edges: 3.5 min). Its planes are infinite (no board edge, no finite cavity), its cavities carry their TEM mode alone; on the CM5 it differs from the meshed via models by 0.06 dB (median) on D-PHY to 2-4 dB on PCIe's clock and Ethernet at 10 GHz single-ended. **Checked against a cut-out solved whole** (the SIPro way: PCIe's clock pair, 52 mm from the M.2 connector to the module through its vias, the region round it on mom25d's whole stack: 24,697 unknowns, 25.5 min, 16.7 GB): its differential Sdd21 within 0.13 dB rms (0.36 at worst) with the meshed via models, 0.15 dB rms (0.43) with the physics-based ones, over 1-10 GHz; the single-ended differences are the common mode's. - **`--cavities`**: the board's plane-pair cavities (below: their edges, every ground via on the board) in the join in place of the physics-based via models' infinite planes. Each via model leaves each cavity its vias cross to the join (each barrel segment in it a port, its box's ground vias there not modelled), and each cavity is one block between all the via models' ports in it: Z = W Zc W^T, Zc the cavity's impedance between those vias at each frequency (`Cavity.impedance`, its losses those of its Q), W each segment's share of the cavity's height. The joined S then has the cavities' resonances at each via and the coupling between vias through them across the board. Leaving a cavity to the join and joining the infinite planes' own coupling back gives the via model's S to 1e-15 (tests/core/test_viamodel.py). **On rf_msvia with its four ground vias 4.5 mm out** (not 1 mm: the cavity then 100 ohm at the via at 7.9 GHz) the whole board has a notch in S21, -7.1 dB at 7.95 GHz on mom25d and -7.0 at 7.90 on gfdtd, which the infinite planes miss (-1.2 dB at most in band); with the cavity joined, -7.4 dB at 7.95 GHz, and S21 0.24 dB rms from mom25d's whole board over 1-10 GHz (0.85 without; gfdtd's 0.37 and 0.84); the 3.4 GHz mode's small dip too. On rf_msvia itself (ground vias at 1 mm) it changes nothing (0.117 and 0.120 dB rms from gfdtd's whole board). A meshed via model (mom25d, gfdtd) keeps its box: its vias are not joined to the cavities. **On the Thor carrier** (2026-11-24, its pairs' study with `--cavities`: 56 min against 25, the five cavities' blocks 26 min of it, each frequency a sparse factor of 85-94k unknowns, 64-378 vias a cavity): 83 of its 93 channels within 0.1 dB of the infinite planes' figures over the band (median 0.005 dB), the worst crosstalk 0.835 -> 0.837 % NEXT. The ten that move are those whose vias are 1-2.5 mm from a ground via: `USBC4_D` 3.1 dB at 9.85 GHz (a cavity resonance), and less loss where the infinite planes had taken the power a via sends into them as gone (`PCIe_{C2x1}.CLK` -6.27 -> -3.78 dB at 10 GHz, `DP0.AUX_C` -3.05 -> -1.73 dB at 9 GHz): in the board's cavity it comes back. - **Each channel's figures and the overlay.** Where the ports are the nets' ends (`--ends`), segment.json's `report` has each channel (a pair one, in its differential mode): insertion and return loss at 1, 5 and 10 GHz, its far end's conversion to common mode, and every victim's NEXT and FEXT for a 100 ps edge (Board coupling's figures). `_overlay.json` lays them over the board (each channel's tracks per layer with its figures, the via models' circles, the cuts: for the window's plan and the KiCad plugin to draw, as the line model's overlay), `_overlay.png` draws the channels coloured by their worst crosstalk and by their loss at the top frequency, and `_overlay.html` is the same as one page to explore (it opens from the disk): the channels coloured by insertion or return loss at a frequency on a slider, by crosstalk or by mode conversion, ranked worst first, each one's curves and its worst aggressors (drawn in copper on the plan), layers toggled. `segment.overlay(result)` makes all three again from a segment.json. - **Stripline pieces** keep the board's ground vias through both planes near their copper: without them the two ideal planes carry a parallel-plate mode that couples every port to every other (about -45 dB at any distance). A stripline layer's nets are grouped 3 plane spacings apart; a group past 24 nets is grouped closer, down to 2 spacings, and the run says at what spacing couplings were left out. - **Big groups in windows.** A group of more than 32 nets (`K2E_SEG_WINDOW`) is solved as overlapping windows (a core of a few pairs with its neighbours within the group's spacing) assembled into the group's S. On the Jetson Thor carrier the run went from 4 h 19 min to 1 h 02 min (12.5 GB), every channel's loss within 0.04 dB. - **Series parts** (an AC-coupling capacitor, a resistor) are joints: a lane through its capacitor is one channel, its ports at the lane's ends, the part its own series R, L, C between the pieces. - **The studies** made with it (the Thor carrier, the LimeRFE), every setting's measurement, and the scripts to make them again: [Whole-board studies](segment-studies.md), `tools/segment_studies/`. - **`--pour keep`** (RF boards): a layer piece keeps its layer's own ground pour beside its traces (within 3 mm, voids filled, its vias kept, mom25d's signal zone on). Grounded coplanar lines need it: on a LimeRFE's RX nets the return loss was up to 10 dB off without it; with it within 0.05 dB (median) of the pour solved wide on a fine mesh, at 2.4x the unknowns of the traces alone. Keep the fine edge mesh with it (coarse edges: |dS| 0.08). - **`--layer-solver auto`**: mom25d up to 20k unknowns a piece, the line model past that. The line model's loss is within 0.1-0.5 dB of mom25d's on stripline, but it couples only traces within 5 heights of each other: the crosstalk between lanes further apart is missing, so treat its coupling figures as a lower bound. - **Resumed:** a piece solved before from the same board file and settings is taken as it is (`piece.sha256` in its folder), so a run stopped at one piece goes on from it. `--dmax` sets mom25d's cell size. - **The config's copper and sweep:** every piece's run takes the config's `sigma`, `rough`, `finish` and a log `sweep`; the physics-based via models are solved on the same grid, with the planes' copper loss in each cavity (k^2 (1 + (1 - j) delta / d)), and `--cavities` with the config's conductivity. A layer piece's planes are ideal: their own loss is not in it. On rf_msvia (`sigma = 5.8e7`, `rough = 1`, `--thickness grow`) the copper takes 0.22 dB from S21 at 10 GHz in pieces, 0.41 dB on the whole board on mom25d, 0.35 dB on the line model. - **Each piece in a process of its own**, so the memory one took is free for the next. mom25d stops a piece that will not fit, saying so (`--thickness grow` has no copper-side unknowns: a large piece). Measured against the whole board on mom25d (S21, 1-10 GHz): `rf_msvia` 0.18 dB at worst, 0.04 dB rms (gfdtd whole is 0.10 / 0.02 dB from mom25d whole); `rf_diffvia` Sdd21 0.16 dB rms (gfdtd 0.18). Its reflection near 10 GHz is 2-3 dB higher than the whole board's: neither a via model's box as large as the board, nor the cut further out, nor `--calibrate` (each cut corrected for its two lumped ports back to back, from a calibration line of its cross section: 0.042 to 0.069 dB rms on rf_msvia, 0.160 to 0.142 on rf_diffvia) changes it much; to find in the via model. What the pieces leave out: a plane's apertures under a trace, a plane pair's cavity beyond a via model's box, broadside coupling between layers, the vias of nets not selected. ## Plane-pair cavities and their resonances (`kicad2ems.core.cavities`) The dielectric between two adjacent reference planes is a cavity: its modes are set by the planes' shape and the ground vias that tie them, and every signal via passing through it drives them. Where a signal via sits where an in-band mode is strong, and no ground via is near it, the cavity's impedance at that via (in series with its return path) peaks at the mode's frequency: a notch in the via's transmission and coupling to every other via the mode reaches. The segment study's via models leave this out (the physics-based model's planes are infinite, a meshed model's a box round the via), so this is the check to run beside it; or `--cavities` there, which joins the cavities to the physics-based via models (above). ```sh python -m kicad2ems.core.cavities board.kicad_pcb --fmax 10 --nets 'PCIE*,USB*' --out cav python -m kicad2ems.core.cavities board.kicad_pcb --fmax 6 --planes In1.Cu,In2.Cu # named planes python -m kicad2ems.core.cavities board.kicad_pcb --fmax 10 --nets 'PCIE*' --suggest # and where to add ground vias ``` - **The model:** while the planes are close against the wavelength the field between them is the cavity's TEM one, the voltage V(x, y) between the planes with -div grad V = k^2 V, k^2 = w^2 mu0 eps0 er (er the dielectrics' series one), over the area both planes cover (antipads and holes under 2 mm2 filled), the edges open. Linear triangles (the PDN tool's mesher: each via's disc a ring of the mesh, cells a twelfth of the wavelength at fmax, graded round the discs by a 30 degree smallest angle, each disc meshed at e^-0.15 of its radius, whose field the linear elements then give as the barrel's), the consistent and the lumped mass matrices averaged (their dispersion errors cancel), the modes below fmax by shift-invert Lanczos; Q from the loss tangent and the planes' skin depth (1/Q = tan d + delta/d; the edges' radiation not counted). `Cavity.impedance(freqs)`: the impedance between its vias at each frequency, jw mu0 d (K - k^2 M)^-1 at their discs (every mode, those losses). - **The planes:** layers whose ground copper (ground and the power nets the board takes as AC ground) covers 40 % of the outline or more (`--plane-frac`), or those named (`--planes`); each adjacent pair a cavity, any signal layer between them inside it. - **The vias:** one whose barrel touches both planes' copper (not in an antipad) shorts the cavity there (V = 0 on its disc); any other through it is where it is driven (its disc one voltage). A part of the cavity no ground via ties has a mode at 0 Hz (the planes untied there): counted apart, not listed. - **The figures:** each mode's frequency, Q and extent (its participation ratio: 1 the whole cavity, small a local pocket); for each via of the nets asked for (`--nets`, default every non-ground via), the cavity's impedance at it at each resonance, `d |V|^2 Q / (A w eps0 er)` (V the mode's voltage there in units of its RMS over the area A: the mode's term of the cavity's modal sum), and its distance to the nearest ground via. Reported from 10 ohm (in series with a 50 ohm line's return, -0.8 dB at that frequency; 50 ohm, -3.5 dB). PNGs of each cavity's lowest modes with a reported via in them (a local mode drawn where it is, the via named), and `cavities.json`. Checked against closed forms (tests/core/test_cavities.py): a 40 x 25 mm rectangle's modes within 0.5 %; a via shorting it, the modes where the open rectangle's impedance at that point passes through zero, within 0.3 %; a via's peak impedance against the rectangle's modal sum within 10 %; the impedance between three vias from 0.2 to 8 GHz within 4 % of the closed form's largest (0.8-3.1 %: its square port of uniform current, whose log radius 0.447 w is the barrel's); a via's loop through a ground via 0.5-5 mm away at 10 MHz within 3 % of the two-wire formula mu0 d / 2 pi ln(s^2 / a^2) (36-71 % low before the discs' grading, 2026-11-24). **Against Palace's 3D eigenmodes** (2026-11-23, `rf_msvia`: a signal via through the In1.Cu/In2.Cu pair inside four ground vias 1 mm round it; Palace `--palace-modes 10 --palace-box pec`, 34 min): the six modes Palace finds at Q 52 (the dielectric's 1 / tan d: the cavity's; the rest the metal can's air, Q over 2000, or the feed lines damped by their ports, Q 1-2) are the 2D model's within 2.7 % at its default cells (2.741 / 2.741, 3.132 / 3.050, 8.184 / 8.099, 8.956 / 9.108, 9.351 / 9.150, 9.364 / 9.413 GHz; 2026-11-24's mesh), and the ports load them hardly at all (Q_ext 2e4 and up), as the 2D model's 1.1 ohm at most at the via says; in under a second. (On `rf_siw` the waveguide's modes reach into its tapers and microstrip feeds, which the 2D model takes as parallel plates without their fringing: 6.84 / 7.89 GHz against Palace's port-loaded 6.51 / 7.61, 4-5 %.) On the reference boards (2026-11-24's mesh; ThunderScope 60 s, LibreVNA 43 s, the Thor carrier with `--suggest` 578 s and 3.6 GB): ThunderScope (10 GHz, its high-speed and front-end vias) and LibreVNA (6 GHz, its RF vias) have a ground via 0.6-1.0 mm from every reported via, and no mode below fmax reaches into those cages (the largest impedance any reported via sees is LibreVNA's `CLK_CLKIN`, 5 ohm at 5.6 GHz). On the Thor carrier (10 GHz, every pair) vias are flagged in all five cavities: the In4.Cu/In6.Cu and In3.Cu/In4.Cu pairs round the In5.Cu and In4.Cu striplines the most (23 and 17 vias over 10 ohm); the fast lanes there 10-21 ohm above 7.9 GHz (`PCIe_{C2x1}R_CLK+` 18 ohm at 7.95 GHz, its nearest ground via 2.4 mm), the largest the slow lines' (`DP1.AUX_C+` 214 ohm at 8.84 GHz, `USBC3_D+` 126 ohm at 5.41 GHz). (The mesh before 2026-11-24, its ground vias wider to it than they are, had found 13 vias in In4.Cu/In6.Cu alone, `USBC3_D+` 203 ohm at 7.84 GHz.) `--suggest` adds, for every via with a peak, a ground via at the nearest place (from 0.5 mm) where its disc lies on both planes' copper clear of the other vias, and solves the cavity again with all of them: on the Thor carrier 50 of them, 0.7 mm from their vias, the peaks then 3-4 ohm at the median and 41 ohm at most (`DP1.AUX_C+`). It looks at the cavity's two planes alone: a through via there must also clear every other layer's copper (traces, pads, other nets' planes), which it does not check, so a suggestion is a place to look, not a placement; with blind or buried vias the other layers do not matter. Left out: the signal traces inside the cavity (a stripline is no part of the TEM field here), the edges' radiation and fringing (an open edge is exact only for d << the planes' size), and the power planes' decoupling capacitors (open: at these frequencies their mounting inductance is ohms). The segment study joins the cavities to its physics-based via models with `--cavities` (above).