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

C5 · Lesson 50 · The CMOS inverter as a circuit

Transfer curve, noise margins, delay and power from the square law

Digital logic treats an inverter as a box that turns 1 into 0. Underneath it's two transistors, an NMOS pulling down and a PMOS pulling up, and the square law says exactly how it behaves: at what input voltage it switches, how much noise it can reject, how long it takes to charge the next gate's capacitance, and how much power that costs. Those numbers decide how fast and how cool a processor can run. C7 builds logic from the inverter; this lesson analyzes it as a circuit.

  • The voltage transfer curve of a matched inverter (equal K, equal thresholds): output against input. It's flat at VDD, falls steeply around VDD/2, and is flat at 0.
  • The markers are VIL and VIH, where the slope is −1: inputs below VIL read as low, above VIH as high.
  • Raise the threshold: the transition gets steeper and the noise margins grow, at the cost of less drive current.

Predict

An inverter's NMOS and PMOS have the same size, but holes are three times less mobile than electrons. Where does it switch, on a 3.3 V supply with 0.5 V thresholds?

Name it

The switching threshold

At the switching threshold VM both transistors are saturated and carry the same current:

kn2(VM−Vtn)2=kp2(VDD−VM−|Vtp|)2⇒VM=Vtn+r(VDD−|Vtp|)1+r,r=kp/kn

For a matched inverter (kn=kp, Vtn=|Vtp|), VM=VDD/2. Matching needs (W/L)p/(W/L)n=μn/μp, two to three.

The transfer curve and noise margins

Between the threshold and VM the NMOS is saturated and the PMOS in triode, and above VM the reverse; solving each pair of equations gives the curve in the sim. The points of slope −1 mark where small input noise starts being amplified. For a matched inverter,

VIL=3VDD+2Vt8VIH=5VDD−2Vt8NML=NMH=3VDD+2Vt8

since the outputs reach the full rails, 0 and VDD.

Propagation delay

The output drives a capacitance C: the next gates' inputs and the wiring. Falling from VDD to VDD/2, the NMOS starts saturated and ends in triode. Averaging its current over that interval gives

tPHL=αnCknVDDαn=274−3VtnVDD+(VtnVDD)2

and tPLH the same with the PMOS's values. Stronger transistors, a higher supply and less load make a faster gate.

Power

Each time the output charges C to VDD and discharges it again, the supply delivers CVDD2 and all of it becomes heat. At a switching rate f,

P=fCVDD2

plus a short burst of current through both transistors during each transition, peaking at kn2(VM−Vtn)2, and leakage. Lowering VDD is the strongest lever on power, which is why logic supplies fell from 5 V to below 1 V.

Worked example

For the inverter in the predict (kn=3kp, VDD = 3.3 V, thresholds 0.5 V), find VM.

Show the solution
  1. Ratio. r=1/3=0.577
  2. Switching threshold. VM=0.5+0.577×2.81.577=1.34V

Answer VM = 1.34 V.

Worked example

A matched inverter on 5 V has 1 V thresholds and kn = 1 mA/V², and drives 1 nF at 100 kHz. Find its noise margins, tPHL and power.

Show the solution
  1. Input thresholds. VIL=15+28=2.125VVIH=25−28=2.875V
  2. Noise margins. Both margins are 2.125 V.
  3. Delay factor. αn=21.75−0.6+0.04=1.68
  4. Fall delay. tPHL=1.68×1nF1mA/V2×5V=336ns
  5. Power. P=105×10−9×25=2.5mW

Answer both noise margins are 2.125 V, tPHL = 336 ns, and the inverter takes 2.5 mW.

Worked example

The matched inverter of the second example (kn = 1 mA/V², 1 V thresholds, 1 nF load) runs from 2.5 V instead of 5 V. How do its delay and its power at 100 kHz change?

Show the solution
  1. At 5 V. αn = 1.68 and tPHL = 336 ns.
  2. Delay factor at 2.5 V. VtnVDD = 0.4, so αn=21.75−1.2+0.16=2.82
  3. Delay at 2.5 V. tPHL=2.82×1nF1mA/V2×2.5V=1127ns
  4. Power. fCVDD2 falls from 2.5 mW to 0.625 mW.
  5. The trade. Halving the supply saves four times the energy but costs 3.4 times the delay, because the threshold takes a larger share of a smaller supply. That trade is why chips scale their supply with their clock.

Answer the delay grows 3.4 times, from 336 ns to 1127 ns, and the power falls four times, from 2.5 mW to 0.625 mW.

Check

An inverter on 3.3 V has both thresholds at 0.4 V and kp/kn = 0.5. Where is its switching threshold?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

Check

What are the noise margins of a matched inverter on 3.3 V with 0.3 V thresholds?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

Check

What is VIH for a matched inverter on 1.8 V with 0.4 V thresholds?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

Check

An inverter's NMOS (kn = 0.2 mA/V², Vt = 0.7 V) discharges 0.01 nF on a 5 V supply. What is tPHL?

Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.

Check

A gate switches 0.01 nF at 1 MHz on a 3.3 V supply. What dynamic power does it take?

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

Check

A matched inverter (k = 0.5 mA/V², 3.3 V, 1 V thresholds) passes through VM. What current flows through both transistors at that moment?

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

Check

Electrons have mobility 400 and holes 150 cm²/V·s. How many times wider must the PMOS be to match the NMOS (same length)?

Check

A CMOS inverter switches 100 pF at 1 MHz from 3.3 V.

(a)

What dynamic power does it draw?

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

(b)

How much energy does each full cycle take from the supply?

Check

A CMOS inverter with thresholds t and kn = k drives C from a supply V.

Step 1

What's its noise margin?

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, yet consume power when it switches?

Practice

Keep practicing

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