How can we calculate the power consumed by a circu...
# xschem
a
How can we calculate the power consumed by a circuit in xschem?
โž• 1
s
power is the product of voltage * current, so you can plot the product and take an average: "power; v(vcc) i(vvcc) * 2n ravg()" the expression calculates the running average over 2ns for vcc * icc in the image below the ring oscillators are consuming 500uW of power while running.
๐Ÿ™Œ 1
l
Any good tricks for when multiple voltage sources are involved? Is the naive sum(i(vsource)*v(vsource)) correct? I realize this is a question about electricity, not xschem ๐Ÿ˜†
s
If you sum up
branch current
*
voltage across terminals
for all voltage and current sources (included controlled sources if present) you get the total power delivered (and consumed) to the circuit. Given the convention for voltage and current orientations these power contributions are negative if generated and positive if consumed. In below circuit V1 generates 10mW, R1 consumes 4mW and V2 consumes 6mW
๐Ÿ‘ 1