You can use a measure statement like this to find the average current:
.meas tran iavg_dig AVG i(Vddd)
c
Claudio La Rosa
09/01/2025, 8:29 PM
And then multiply the average current by the voltage? Is this the correct way to obtain the average power? I remembered that perhaps an integration was needed, but I'm not sure...
b
Boris Murmann
09/01/2025, 8:43 PM
Yes, exactly. The above command performs the integration for the current numerically.
👍 1
Boris Murmann
09/01/2025, 8:46 PM
Average power = average(v(t)*i(t)). If the voltage is constant, you can pull it out of this expression. So average power is just average current times that constant voltage.
❤️ 1
Boris Murmann
09/01/2025, 8:47 PM
Average means integrating over time and dividing by the integration time. That's what the meas command does for you.