C77 of 57
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

C7 · Lesson 7 · The CMOS inverter

Two transistors, one always off

Every gate in a modern chip is built from pairs of MOSFETs: an NMOS that pulls the output down to ground and a PMOS that pulls it up to the supply. In the CMOS inverter, the simplest such gate, one transistor is always off whichever way the input sits, so in a steady state no current flows from supply to ground. That's why a phone's processor, with billions of transistors, can idle on milliwatts. Power is spent mainly when gates switch, charging and discharging the tiny capacitances they drive.

Play

  • A CMOS inverter: the PMOS on top, the NMOS below, gates tied together as the input. Slide the input from 0 to 5 V.
  • Watch the current through the NMOS. When is it large, and when is it almost zero?
  • Find the input where the output is halfway. Why isn't it exactly 2.5 V?

Predict

A CMOS gate in a chip drives 10 fF of wiring and inputs from a 1 V supply, switching a billion times a second (on average one full charge and discharge per cycle). Roughly how much power does it use?

Name it

CMOS logic

The inverter. Input high: the NMOS conducts and the PMOS is off, so the output is pulled to ground. Input low: the PMOS conducts and the NMOS is off, so the output is pulled to VDD. Only while the input passes through the middle are both partly on, letting a brief short-circuit current flow.

Why the PMOS is wider. Holes are about 2 to 3 times less mobile than electrons (B9.13), so a PMOS needs a wider channel to pull up as strongly as the NMOS pulls down. With matched strengths the switching point sits at VDD/2; here the PMOS is a little weaker, so it's below.

Other gates. A NAND has two NMOS in series (both must be on to pull down) and two PMOS in parallel; a NOR is the reverse. A k-input gate uses 2k transistors. NAND and NOR are the natural CMOS gates: AND and OR need an inverter after them.

Power:

  • dynamic: P=αCVDD2f, with α the fraction of cycles in which the node switches;
  • static: leakage through transistors that are "off", which in modern processes is a large share of the total.

Delay. A gate's output is an RC: the transistor's on-resistance charging the load capacitance. More load or weaker transistors mean slower gates (lesson 19).

Worked example

An inverter drives 10 fF on a 1.0 V supply, switching with α = 0.5 at 1 GHz. What dynamic power does it use?

Show the solution
  1. Dynamic power. P=αCV2f=0.5×10fF×12×109=5μW
  2. Scale it up. A billion such nodes would take 5 kW, which is why activity and supply voltage are kept low.

Answer 5 µW.

Worked example

Electrons are about twice as mobile as holes. How wide should an inverter's PMOS be relative to its NMOS for equal rise and fall?

Show the solution
  1. Widen the PMOS. Make it about twice as wide, so its channel conducts as well as the NMOS's.
  2. Set the widths. With NMOS width 1, PMOS width 2.

Answer about twice as wide as the NMOS.

Worked example

A chip has 108 transistors, each leaking 10 nA when off, on a 0.8 V supply. What does the leakage cost, even with nothing switching?

Show the solution
  1. Leakage power. P=108×10nA×0.8V=0.8W burned whether or not the chip does anything.
  2. Compare with older processes. In older processes leakage was negligible; in modern ones it can rival the switching power.
  3. What designers do about it. That's why idle blocks are both stopped and disconnected from the supply (power gating), and why thresholds can't simply be lowered to make transistors faster.

Answer 0.8 W, even with nothing switching.

Check

A node of 10 fF switches every cycle at 3 GHz from a 0.8 V supply. What dynamic power does it draw?

Write units the way you normally would: 1.5 µW, 1500 nW and 0.0015 mW are the same answer.

Check

A chip's supply is lowered from 1.8 V to 0.8 V at the same clock. By what factor does its dynamic power change?

Check

How many transistors does a 3-input CMOS NAND gate use?

Check

In a CMOS NAND gate, how are the two NMOS transistors connected?

Check

A chip leaks 10 mA from its 0.8 V supply even when idle. How much static power is that?

Write units the way you normally would: 1.5 mW, 1500 µW and 0.0015 W are the same answer.

Check

A chip has 1 × 10⁸ transistors, each leaking 1 nA, on 1.2 V.

(a)

What's its leakage power?

Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.

(b)

What if a higher threshold cuts the leakage tenfold?

Check

A node with activity a and capacitance C switches at f on a supply V; the chip also leaks a total current I.

Step 1

What's the node's dynamic power?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why does a CMOS inverter draw almost no current when its input is steady?

Practice

Keep practicing

8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.