Skip to main content

physics.power

physics.power

Power delivery: load steps on a supply rail and their voltage droop.

Functions

Name Description
calc_dynamic_power_ratio Estimate the dynamic-power ratio after clock scaling.
calc_inductive_droop Estimate loop-inductance voltage during a linear current ramp.
calc_rail_current_step Convert a power step into a rail-current step.

calc_dynamic_power_ratio

physics.power.calc_dynamic_power_ratio(
    frequency_ratio,
    voltage_tracks_frequency=True,
)

Estimate the dynamic-power ratio after clock scaling.

Parameters

Name Type Description Default
frequency_ratio float Positive new frequency divided by reference frequency. required
voltage_tracks_frequency bool If True, voltage scales by the same ratio; otherwise voltage stays fixed. True

Returns

Name Type Description
float Dimensionless new dynamic power divided by reference dynamic power.

Notes

Equation: P_new/P_old = (V_new/V_old)^2 (f_new/f_old), giving r^3 when voltage tracks frequency and r at fixed voltage. Assumptions: identical switched capacitance and activity factor; voltage proportional to frequency is an optional modeling assumption. Excludes: leakage, clock gating changes, transition energy, and physical voltage-frequency operating limits.

References

Derivation: take the ratio of the capacitive switching-power relation P = activity * capacitance * V^2 * f at two operating points.

Examples

>>> calc_dynamic_power_ratio(1.0)
1.0
>>> calc_dynamic_power_ratio(2.0, voltage_tracks_frequency=False) == 2.0
True

calc_inductive_droop

physics.power.calc_inductive_droop(inductance, current_step, rise_time)

Estimate loop-inductance voltage during a linear current ramp.

Parameters

Name Type Description Default
inductance Quantity or float Loop inductance; bare numbers mean henries; physical loop inductance is nonnegative. required
current_step Quantity or float Signed current change; bare numbers mean amperes. required
rise_time Quantity or float Positive edge duration; bare numbers mean seconds. required

Returns

Name Type Description
Quantity Signed inductive voltage in volts; a rising current gives positive droop.

Notes

Equation: delta_V = L delta_I/delta_t. Assumptions: constant lumped inductance and a linear current ramp. Excludes: resistance, decoupling capacitance, distributed parasitics, and converter response. The edge duration must be positive.

References

Derivation: apply the inductor terminal relation V = L dI/dt to a linear ramp.

Examples

>>> calc_inductive_droop(1e-9, 0, 1e-6).m_as('V')
0.0

calc_rail_current_step

physics.power.calc_rail_current_step(power_step, rail_voltage)

Convert a power step into a rail-current step.

Parameters

Name Type Description Default
power_step Quantity or float Signed load-power change; bare numbers mean watts. required
rail_voltage Quantity or float Positive supply voltage; bare numbers mean volts. required

Returns

Name Type Description
Quantity Signed current change in amperes.

Notes

Equation: delta_I = delta_P/V. Assumptions: constant rail voltage during the calculation and power measured at that rail rather than upstream of conversion losses. Excludes: converter efficiency, voltage droop feedback, and transient storage.

References

Derivation: subtract two operating points of P = V I at the same V.

Examples

>>> calc_rail_current_step(0, 12).m_as('A')
0.0
Back to top