PDN 目标阻抗与去耦设计
电源分配网络目标阻抗、MLCC 封装 ESL/ESR 表、复数并联电容阻抗扫频、反谐振峰检测、电容 SRF 与 E12 归整、平面电容估算;离线契约报告 + 扫频 CSV/SVG。
Badges only claim the demo-run passed on that host; cross-host installation is handled by the adapter layer.
Preview gallery
Run this decoupling input for a 3.3 V / 5% / 0.5 A rail: 10uF+1uF+100nF+1nF plus 100 cm2 plane capacitance; sweep for anti-resonance peaks over target and plot the impedance curve.
Content matches the files inside the package; extracted by the publish pipeline.
LCEDA PDN / decoupling bundle
Offline Node rewrite of the PDN portion of the MIT-licensed kicad-happy agent skills (see references/PROVENANCE.md): target impedance, the complex RLC branch model and parallel combination, the log-frequency impedance sweep, anti-resonance detection, and the package ESL/ESR lookup tables. Editor-bound steps (cap placement, plane stackup edits) are procedures in references/procedures.md.
What the script computes
scripts/demo.mjs (Node >= 20, no dependencies):
Z_target = |V_rail| × ripple% / I_transient(Bogatin/Smith).- Per-cap series RLC branch
Z = ESR + j(ωL − 1/ωC); parallel combination1/Z = Σ 1/Z_iin complex arithmetic, so inductive and capacitive branches partially cancel (the anti-resonance). - MLCC ESL/ESR defaults by package (0201…2220, X5R/X7R at 1 MHz);
explicit
esrOhm/eslHoverride the table. - Log-frequency sweep (default 1 kHz–1 GHz, 50 pts/decade) with the
interplane capacitance
C = ε₀εr·A/dmodeled as a low-ESR/ESL branch. - Anti-resonance peaks (local maxima); peaks above Z_target are warnings with the frequency to target with an extra capacitor.
- Capacitor SRF
1/(2π√(LC)), inverseC = 1/(4π²f²L), and E12 nearest-value snapping on the log scale.
Run
node scripts/demo.mjs --out-dir <dir> [--input <pdn.json>]
Default input: scripts/fixtures/input.json. stdout is an
edaskills.report.v1 report; <dir> receives pdn-sweep.csv and
pdn.svg (log-log impedance plot with the target line and peak marks).
Input shape: { "rail": { "v", "ripplePct", "iTransientA" }, "caps": [{ "ref", "farads", "package"?, "esrOhm"?, "eslH"? }], "plane"?: { "areaCm2", "dielectricMm", "er" }, "freqStart"?, "freqStop"?, "pointsPerDecade"? }.
When to use
- Pick a decoupling set for a rail before placement and see where the impedance still spikes.
- Check whether a proposed cap swap (package or value) moves an anti-resonance peak below target.
- Estimate the plane capacitance contribution of a tight power/ground stackup.
Not for: VRM control-loop output impedance (modeled as ideal source), mounted-inductance extraction from layout geometry, or time-domain droop simulation.
Dependencies
Demo run
node v24.19.0 · 2026/11/19
- [info] Z_TARGET (rail): Z_target = 0.3300 ohm (3.3 V, 5% ripple, 0.5 A transient)
- [info] CAP_SRF (C1): C1 10.0 uF ESR 0.03 ohm ESL 1.10 nH, SRF 1.52 MHz
- [info] CAP_SRF (C2): C2 1.00 uF ESR 0.1 ohm ESL 0.70 nH, SRF 6.02 MHz
- [info] CAP_SRF (C3): C3 0.100 uF ESR 0.3 ohm ESL 0.50 nH, SRF 22.51 MHz
- [info] CAP_SRF (C4): C4 0.00100 uF ESR 0.5 ohm ESL 0.30 nH, SRF 290.58 MHz
FAQ
Ratings & reviews
Not rated0 ratings
Sign in to rate this skill.
Sign inVersions
- v1.0.0Latest310.6 KB
首发种子版本。