* Auto-generated testbench for decoupling analysis: /00000000-0000-0000-0000-00005ed4bb5b/+5v rail
* 6 capacitor(s) in parallel, series R-L-C model
* Model: ESR/ESL from pdn_impedance (package-based)

R_esr_C18 rail n_esr_0 948.7m
L_par_C18 n_esr_0 n_lpar_0 500p
C18 n_lpar_0 0 100n
R_esr_C9 rail n_esr_1 948.7m
L_par_C9 n_esr_1 n_lpar_1 500p
C9 n_lpar_1 0 100n
R_esr_C12 rail n_esr_2 948.7m
L_par_C12 n_esr_2 n_lpar_2 500p
C12 n_lpar_2 0 100n
R_esr_C6 rail n_esr_3 15.8m
L_par_C6 n_esr_3 n_lpar_3 900p
C6 n_lpar_3 0 10u
R_esr_C4 rail n_esr_4 15.8m
L_par_C4 n_esr_4 n_lpar_4 900p
C4 n_lpar_4 0 10u
R_esr_C10 rail n_esr_5 948.7m
L_par_C10 n_esr_5 n_lpar_5 500p
C10 n_lpar_5 0 100n

* 1A AC current source into the rail node — V(rail) = Z(f)
IAC 0 rail DC 0 AC 1

.control
ac dec 200 100 100Meg
let z_mag = vm(rail)
meas ac z_min min z_mag
meas ac f_at_zmin when z_mag=z_min
meas ac z_at_1M find vm(rail) at=1Meg
meas ac z_at_100k find vm(rail) at=100k
echo "z_min=$&z_min f_at_zmin=$&f_at_zmin z_at_1M=$&z_at_1M z_at_100k=$&z_at_100k n_caps=6" > analysis/spice_runs/decoupling_C18_C9_C12_C6_C4.out
quit
.endc

.end
