2
\$\begingroup\$

When a CMOS inverter switches from low to high, it took half of the energy dissipated to PMOS and half the energy stored in the capacitor.

Why is that?

I know how to derive the amount stored in the capacitor but I don't understand why PMOS is taking another half.

Can anyone derive it, from the PMOS perspective itself?

enter image description here

\$\endgroup\$
1
  • 2
    \$\begingroup\$ You don't need to derive it from the PMOS perspective because it is not about the PMOS. It is general to charging and discharging a capacitance through a resistance. Related to this is the "capacitor paradox". \$\endgroup\$
    – DKNguyen
    Commented Oct 31, 2021 at 2:28

4 Answers 4

3
\$\begingroup\$

When you "fully" charge a capacitor through a resistor, the energy acquired by the capacitor is \$½ \cdot C\cdot V^2\$. But the energy supplied by the voltage source is \$C\cdot V^2\$. This doesn't change whether the resistance is 0.00000001 Ω or 100 teraΩ. Neither does it change if its fed via a PMOS device: -

$$\boxed{\text{The energy transfer from a voltage source to a capacitor via a resistor is 50% efficient}}$$

I know how to derive the amount stored in the capacitor but I don't understand why PMOS is taking another half.

It's got nothing to do with PMOS; it's basic energy analysis.

\$\endgroup\$
2
  • \$\begingroup\$ Cool. I had never thought about that. It makes switching power supplies suddenly appear magical. \$\endgroup\$
    – tobalt
    Commented Nov 1, 2021 at 9:49
  • \$\begingroup\$ @tobalt they are magical but, with magic you always get darkness LOL \$\endgroup\$
    – Andy aka
    Commented Nov 1, 2021 at 9:56
1
\$\begingroup\$

schematic

simulate this circuit – Schematic created using CircuitLab

Charging capacitor through PMOS

$$V=R_p\cdot i + V_c$$ $$i_p=\dfrac{V}{R_p}e^{-t/R_pC}$$ $$v_R=V\cdot e^{-t/R_pC}$$ $$dW_p=i\cdot v_R\cdot dt$$ $$W_p=\dfrac{V^2}{R_p}\int_{0}^{\infty}e^{-\frac{2t}{R_pC}}dt$$ $$W_p=\dfrac{V^2}{R_p}\dfrac{R_pC}{2}e^{-\frac{2t}{R_pC}}\bigg|_0^\infty $$

$$W_p=\dfrac{CV^2}{2} $$

Capacitor energy:

$$W_C=\dfrac{CV^2}{2}$$

Apparently (if I didn't make any mistake in calc) they are both the same.

Discharging capacitor through NMOS

$$W_C=W_n$$

This is trivial, all the capacitor energy is dumped in NMOS.

So, we could say that \$2\cdot W\$ is taken from power supply, one \$W\$ is wasted on PMOS, the other \$W\$ is stored into a capacitor that is dumped by NMOS when discharging.

\$\endgroup\$
1
\$\begingroup\$

Note: I have to thank you for asking this question, because it forced me to exercise my calculus muscles, which have atrophied after many years of disuse.

It's too easy to fall into the trap of modelling this circuit under the assumption that the transistor is a switch with negligible resistance, and the capacitor is simply being connected across a voltage source with negligible internal resistance. If this were true, then surely neither the transistor nor source would ever dissipate any \$I^2R\$ power. This same misapprehension leads to the "Two Capacitor Paradox" which you can read in this Wikipedia article.

In reality, there are a few sources of resistance, such as:

  1. The internal impedance of the source of \$V_{DD}\$
  2. The "on resistance" of the MOSFET
  3. The ESR of the capacitor
  4. The resistance of the all the interconnections

All these causes of impedance are not at all negligible, regardless of how close to zero ohms they are. The result is that the voltage across the capacitor cannot rise from zero to \$V_{DD}\$ instantaneously, because the current through it can never be infinite. In fact the graph of \$V_{OUT}\$ in your picture clearly shows a non-instantaneous slew from zero to \$V_{DD}\$, which is due to these resistances.

The fact is that during the transition of \$V_{OUT}\$, the transistor is a very real resistance, and the net result is that it will dissipate the same amount of energy as heat, as gets stored in the capacitor, which I will show here.

For our analysis we may assume that the dominant resistance is the transistor, with the voltage source and capacitor being ideal. To understand the consequences of non-zero transistor resistance, start with some basic observations about the circuit. Assuming the lower transistor is off, and can be ignored, the circuit consists of the upper FET and capacitor in series, across a power supply of \$V_{DD}\$. I will call the voltage across the transistor \$v_Q(t)\$, and \$v_C(t)\$ will be the voltage across the capacitor:

  • The current \$i\$ is the same in both the transistor and capacitor, by KCL.

  • The sum of voltages across the capacitor and transistor is \$V_{DD}\$, by KVL: $$ v_C(t) + v_Q(t) = V_{DD} $$

  • The capacitor is initially discharged: $$ v_C(0) = 0V $$

  • The capacitor is ultimately charged to potential \$V_{DD}\$: $$ v_C(\infty) = V_{DD} $$

The total power delivered to everything across the voltage source \$V_{DD}\$, at any instant \$t\$, is \$P_{A}(t)\$. Using the power rule \$P=I \times V\$:

$$ P_A = i \cdot V_{DD} $$

The instantaneous power delivered to the capacitor is:

$$ P_C = i \cdot v_C $$

The instantaneous power dissipated in the transistor is:

$$ \begin{aligned} P_Q &= i \cdot v_Q \\ \\ &= i(V_{DD} - v_C) \\ \\ \end{aligned} $$

We are interested in the amount of energy \$E_Q\$ delivered to the transistor, over the interval \$t=0\$ and \$t=\infty\$. Energy is integral of power, so:

$$ \begin{aligned} E_Q &= \int_0^\infty P_Q \cdot dt \\ \\ &= \int_0^\infty i(V_{DD} - v_C) \cdot dt \\ \\ &= \int_0^\infty (i \cdot V_{DD} - i \cdot v_C) \cdot dt \\ \\ &= \underbrace{\int_0^\infty \underbrace{i \cdot V_{DD}}_{P_A} \cdot dt}_{E_A} - \underbrace{\int_0^\infty \underbrace{i \cdot v_C}_{P_C} \cdot dt}_{E_C} \\ \\ \end{aligned} $$

If you examine those terms, the left term is an integration of total power \$P_A\$, which is total energy \$E_A\$ delivered by the the voltage source, and the right term is integrating capacitor power \$P_C\$, to obtain its stored energy \$E_C\$.

At this point you could replace the right term with the well known formula for energy in a capacitor, \$E=\frac{1}{2}CV^2\$, but for rigour, I'll continue as if we didn't know that. Anyway, \$V_{DD}\$ is constant, so this becomes:

$$ E_Q = V_{DD} \int_0^\infty i \cdot dt - \int_0^\infty i \cdot v_C \cdot dt $$

To proceed we need to address current \$i\$. The only thing we know about that is its relationship with capacitance \$C\$ and the voltage \$v_C\$ across it:

$$ \begin{aligned} i &= C\frac{dv_C}{dt} \\ \\ \int i \cdot dt &= \int C \cdot dv_C \\ \\ \end{aligned} $$ After a long time: $$ \begin{aligned} \int_0^\infty i \cdot dt &= \int_{v_C(0)}^{v_C(\infty)} C \cdot dv_C \\ \\ &= C \left[\vphantom{\frac{1}{1}}v_C\right]_0^{V_{DD}} \\ \\ &= C \cdot V_{DD} \end{aligned} $$

This is conviently constant, and we can substitute it into our equation for \$E_Q\$:

$$ \begin{aligned} E_Q &= V_{DD} \int_0^\infty i \cdot dt - \int_0^\infty i \cdot v_C \cdot dt \\ \\ &= V_{DD} \cdot (C \cdot V_{DD}) - \int_0^\infty i \cdot v_C \cdot dt \\ \\ &= C \cdot {V_{DD}}^2 - \int_0^\infty i \cdot v_C \cdot dt \\ \\ \end{aligned} $$

The energy stored in the capacitor is the integral over time of the power delivered to it. While the formula is well known, here's the derivation for this particular case. I had to refer to this SE answer, "Integral of the product of a function and its derivative", to get past the third line here:

$$ \begin{aligned} E_C &= \int_0^\infty P_C \cdot dt \\ \\ &= \int_0^\infty i \cdot v_C \cdot dt \\ \\ &= \int_0^\infty C\frac{dv_C}{dt} \cdot v_C \cdot dt \\ \\ &= C \int_0^\infty v_C\prime \cdot v_C \cdot dt \\ \\ &= C \left[\frac{{v_C}^2}{2}\right]_{v_C(0)}^{v_C(\infty)} \\ \\ &= \frac{1}{2} C \cdot {V_{DD}}^2 \\ \\ \end{aligned} $$

Plugging this into our equation for \$E_Q\$:

$$ \begin{aligned} E_Q &= C \cdot {V_{DD}}^2 - \int_0^\infty i \cdot v_C \cdot dt \\ \\ &= C \cdot {V_{DD}}^2 - \frac{1}{2} C \cdot {V_{DD}}^2 \\ \\ &= \frac{1}{2} C \cdot {V_{DD}}^2 \\ \\ &= E_C \end{aligned} $$

\$\endgroup\$
0
\$\begingroup\$

That is called power loss due to switching state.


0 to 1 transition

Power in that circuit is dissipated in 2 phases.

Phase 1 The pMOS charges CL from VDD

Phase 2 The nMOS discharges CL to GND

In those 2 phases, you have a total flux of current that starts from VDD and goes to GND.

That is power dissipated or wasted or lost, whatever.


1 to 0 transition

Identical except that transistor roles are inverted.


Since both transistors partecipate with the same statistical weight to this switching power loss, it's customary to say that the wasted power is due half to the pMOS and half to the nMOS.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.