Skip to main content
SimulationPower integrityFreeNewv1.0.0

PDN 目标阻抗与去耦设计

电源分配网络目标阻抗、MLCC 封装 ESL/ESR 表、复数并联电容阻抗扫频、反谐振峰检测、电容 SRF 与 E12 归整、平面电容估算;离线契约报告 + 扫频 CSV/SVG。

Installs: 0Rating: –Updated:
Claude CodeCursorCodexGemini CLI+3

Badges only claim the demo-run passed on that host; cross-host installation is handled by the adapter layer.

Preview gallery

You say
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 combination 1/Z = Σ 1/Z_i in 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/eslH override the table.
  • Log-frequency sweep (default 1 kHz–1 GHz, 50 pts/decade) with the interplane capacitance C = ε₀εr·A/d modeled 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)), inverse C = 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.

What you get

  • Z_target plus per-cap SRF/ESR/ESL detail; anti-resonance peaks over target warned with the fix frequency
  • 1 kHz-1 GHz log sweep impedance CSV + SVG with target line and peak marks
  • Interplane capacitance estimate, inverse-SRF cap sizing and E12 snapping

Good fit for

  • Choosing a decoupling set for a rail before placement and seeing where impedance spikes
  • Checking whether a package/value swap moves an anti-resonance peak below target
  • Estimating the high-frequency contribution of a tight power/ground plane pair

Not for

  • VRM control-loop output impedance and mounted-inductance extraction (lumped model)
  • Time-domain droop simulation (use the SPICE toolchain)
Before you start

You provide

  • Rail: voltage V, ripple %, transient current A
  • Cap list: farads + package (0201-2220 auto ESL/ESR, explicit overrides allowed)
  • Optional: plane overlap cm2, dielectric mm, er; sweep range

Environment

  • node ≥ 20

Last tested

v1.0.0 · Claude Code, Cursor, Codex, Gemini CLI · Ran 2026/11/19

Dependencies

No dependencies
This skill works standalone.

Demo run

Passed with warnings0 errors · 1 warnings

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

5 star0
4 star0
3 star0
2 star0
1 star0

Sign in to rate this skill.

Sign in

Versions

  • v1.0.0Latest310.6 KB

    首发种子版本。

    License: MITSourceSHA-256: b87c8f75d35ba26f…

Related skills