power supply decoupling
power_supply_decouplingSelect bypass and bulk decoupling capacitors for IC power supply pins. Computes the target PDN (Power Distribution Network) impedance from supply current, voltage, and allowable ripple using Z_target = V_ripple / I_total. Recommends a ceramic bypass capacitor (high-frequency decoupling, placed closest to IC pins) and a bulk capacitor (low-frequency decoupling, near the regulator). Calculates the ceramic cap's self-resonant frequency assuming typical lead inductance, and checks whether ESR-induced ripple stays within limits. Essential for digital, analog, and mixed-signal PCB design. Chain with lc_resonance to verify the decoupling capacitor's resonant behavior, or with trace_width to size the power trace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| num_ics | No | Number of identical ICs sharing this supply rail. Scales the total current demand. | |
| esr_mohm | No | Equivalent series resistance (ESR) of the ceramic bypass capacitor in milliohms. Typical MLCC: 5-20 mohm. | |
| max_ripple_mv | No | Maximum allowable supply ripple in millivolts (mV). Typical: 50 mV for digital, 10 mV for analog/RF. | |
| supply_voltage_v | Yes | Supply voltage in volts (V). Common values: 1.8, 2.5, 3.3, 5.0, 12.0. | |
| supply_current_ma | Yes | IC supply current draw in milliamps (mA). Use the maximum or typical from the datasheet. | |
| switching_freq_mhz | No | Primary switching or clock frequency of the IC in MHz. Determines the target impedance frequency range. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bulk_cap_uf | Yes | Recommended bulk capacitor value in microfarads (uF). Placed near the voltage regulator for low-frequency decoupling. | |
| bulk_cap_value | Yes | Nearest standard bulk capacitor value with unit (e.g. '10 uF', '47 uF'). | |
| ceramic_cap_uf | Yes | Recommended ceramic bypass capacitor value in microfarads (uF). Placed closest to IC pins. | |
| bypass_adequate | Yes | Whether the ESR-induced ripple is within the specified max_ripple_mv limit. | |
| ripple_at_esr_mv | Yes | Estimated ripple voltage due to ESR at the switching frequency: V = I_peak * ESR. | |
| total_current_ma | Yes | Total supply current for all ICs on this rail. | |
| ceramic_cap_value | Yes | Nearest standard E12 capacitor value with unit (e.g. '100 nF', '1 uF'). | |
| target_impedance_ohm | Yes | Target supply impedance at the switching frequency: Z_target = V_ripple / I_total. The decoupling network must keep PDN impedance below this value. | |
| self_resonant_freq_mhz | Yes | Self-resonant frequency of the recommended ceramic capacitor assuming 0.5 nH lead inductance. Above this frequency, the capacitor becomes inductive. |