3.2.1 · D4CMOS Circuit Design

Exercises — CMOS inverter structure and operation

2,787 words13 min readBack to topic

This page is a self-test ladder for the CMOS inverter. Each problem states its level — start at L1 and climb. Every solution is hidden inside a collapsible callout: try first, then reveal.

Constants used throughout (unless a problem overrides them): threshold voltages (NMOS turns on when its gate-to-source voltage exceeds this), (PMOS turns on when its gate is below its source by more than ). Supply .

Before we start, one picture to fix the naming so every symbol below is anchored:

Figure s01 — labelled inverter schematic. The PMOS (orange, top) has its source on ; the NMOS (teal, bottom) has its source on GND; their drains meet at the output node (plum); their gates are tied together and driven by (plum). Use this picture whenever a solution mentions "source", "drain" or "gate".

Figure — CMOS inverter structure and operation

Level 1 — Recognition

L1.1 — Which switch is closed?

The input is held at (a solid logic HIGH). State whether NMOS and PMOS are ON or OFF, and give .

Recall Solution

NMOS source sits at (), so . Since , NMOS is ON (channel formed → not in cutoff). PMOS source sits at , so . PMOS needs ; here , so PMOS is OFF (cutoff). One path only — the ON NMOS sits in triode and pulls the output all the way to ground. (LOW). Inverted, as promised.

L1.2 — Read the truth table backwards

Someone measures . What must the input have been, and which transistor was conducting?

Recall Solution

Output HIGH means the output is tied up to — so the pull-up switch must be closed (conducting), and that switch is the PMOS. (Its partner, the pull-down NMOS, must be non-conducting, otherwise the output would be shorted between both rails.) PMOS conducts only when the input is LOW. So , PMOS ON, NMOS OFF.


Level 2 — Application

L2.1 — Is the PMOS on yet?

, . The input ramps up to . Is the PMOS still conducting?

Recall Solution

. Condition to be ON: , i.e. ? No ( is greater than ). PMOS is OFF (cutoff). The gate is not yet a full below the source, so the switch has already opened.

L2.2 — Dynamic power of a gate

A gate has , runs at , clock , activity factor . Find the capacitive (switching) power .

Recall Solution

Use (each full charge/discharge cycle dumps of energy into the transistors; = fraction of clocks that actually switch — see Dynamic power and clock frequency).

Important caveat — this is not all of the dynamic power. True dynamic power has two pieces: During each transition the input passes through , where (as we saw in the region refresher) both transistors are momentarily ON in saturation, so a brief current spike flows. In modern gates is typically of and shrinks if input edges are fast. We compute here because it dominates, but never say " is the dynamic power" — it is only the capacitive term.

L2.3 — Halve the supply

Take the L2.2 gate and drop from to (keep everything else). By what factor does change?

Recall Solution

Only the term changes. Ratio . Power drops to one quarter (). This quadratic dependence is the reason voltage scaling beats every other power lever.


Level 3 — Analysis

L3.1 — Compute the switching threshold

An inverter has , , , and (a deliberately unbalanced inverter). Find and first derive the formula so you know where it comes from.

Recall Solution

Step 1 — WHY both devices are in saturation here — checked formally. At we have . Take our numbers and test the saturation condition for each device (we'll confirm in Step 6, but the check works with the mid-rail estimate too):

  • NMOS: . Overdrive . Since , NMOS is saturated.
  • PMOS: , so . Overdrive magnitude . Since , PMOS is saturated.

So both formally satisfy saturation, and both obey the square-law WHY this equation and not Ohm's law? In saturation the current stops depending on and is set by the gate overdrive squared — that is the only regime where a clean closed-form for exists.

Step 2 — write each current (with ). NMOS overdrive is positive already: , so PMOS needs care with signs, because and are both negative. The raw quantity is which is negative for . The square-law uses the magnitude of the overdrive, and squaring removes the sign, so where the last equality just rewrites (a positive number). Hence with the bracket now guaranteed positive.

Step 3 — series constraint: the currents must be equal. NMOS and PMOS are in series, so the same current flows: .

Step 4 — take the square root of both sides (both bracketed terms are positive at , so we may root them directly). To keep the algebra tidy, introduce a single ratio symbol which measures "how much stronger the NMOS is than the PMOS" as a voltage-scale factor (a square root, because current but voltage ). Rooting Step 3 and dividing by : Step 5 — solve for : collect terms: This is where the mysterious came from — the square root in Step 4, i.e. our .

Step 6 — plug in numbers. : Because the NMOS is 4× stronger, it pulls the switch point below mid-rail () — it "wins" earlier. The figure below shows this shift.

Figure s02 — VTC and the location of . The teal solid curve is the symmetric inverter (, L3.2/L3.3); the dashed orange curve is this L3.1 unbalanced inverter (, ). The dotted plum line is . Each curve crosses that line at its own — that crossing is the definition of the switching threshold. Notice the orange crossing is pulled left of centre because the stronger NMOS wins the tug-of-war earlier.

L3.2 — Size for a symmetric inverter

Electron mobility is hole mobility (). You want so that . With equal channel lengths and , find .

Recall Solution

. Setting with the same : PMOS is 2.5× wider. This "beta ratio" sizing balances pull-up and pull-down — see Propagation delay and transistor sizing.

L3.3 — Verify it lands at mid-rail

Take the L3.2 sized inverter (, so ) with , , . Show .

Recall Solution

. Symmetric thresholds () plus equal strengths always centre .


Level 4 — Synthesis

L4.1 — Design to a power budget

You must build a gate whose . Fixed: , , . What is the largest you may drive?

Recall Solution

Rearrange for : Any load up to 20 fF fits the budget.

L4.2 — Trade voltage against frequency

A design runs at , . Marketing wants the same throughput per joule but at . Assuming (roughly) that max frequency scales linearly with here, does go up or down, and by what factor? (Same .)

Recall Solution

Lowering slows the transistors, so must drop to . Power drops to ~51.2% — roughly halved. Voltage scaling is a -ish win once you let frequency fall with it. (This is the intuition behind DVFS; contrast with Leakage and short-channel effects which fights back at low voltage.)


Level 5 — Mastery

L5.1 — Noise-margin sanity check

An ideal CMOS inverter has , . Measurement gives the unity-slope points and . Compute both noise margins and say which logic level is better protected.

Recall Solution

Both margins are — perfectly balanced, which is exactly what a symmetric VTC () should give. Neither level is favoured. Details in Noise margins in digital logic.

L5.2 — Why an NMOS-only "inverter" is a bad idea

Suppose someone builds a pull-up from an NMOS (drain toward , source toward the output) instead of a PMOS. With and , what is the highest output voltage this pull-up can deliver, and why is that the fatal flaw?

Recall Solution

Set up which terminal is which. As this NMOS charges the output up, current flows into the output node, so for the NMOS the output node is the source (it is the more-negative of the two ends while charging) and is the drain. Drive the gate as hard as possible: .

Apply the ON-condition. An NMOS keeps conducting only while , i.e. while . As climbs, shrinks. The moment reaches the point where we have exactly — the overdrive hits zero, the channel pinches off, and the transistor slides into cutoff. It cannot push charge any higher: any further rise in would make , which is OFF.

The fatal flaw. The output tops out at , a degraded 1 — it never reaches the full that a clean logic HIGH needs. This eats the high-side noise margin and can fail to switch the next gate. That is exactly why the pull-up in real CMOS is a PMOS: with its source pinned to , the PMOS overdrive does not collapse as the output rises, so it drives the output all the way to — a strong 1. Device placement follows which value each device passes well, matching the parent note.

L5.3 — Full-chain reasoning

A symmetric inverter (, ) receives exactly (right at ). Describe the transistor states, the output voltage, and why holding a real gate here is dangerous for power.

Recall Solution

At : NMOS ON (saturated); PMOS ON (saturated). Both conduct in saturation. By definition of , . Danger: with both transistors on there is a direct path → large short-circuit current flows continuously (this is the term from L2.2, now sustained instead of a brief spike). In normal operation this state lasts only nanoseconds during a transition; parking an input at (e.g. a slow/floating input) burns steady power. This is why inputs must be driven to full rails, not left mid-way.


Recall One-line self-check before you leave

Can you, from memory, (a) state the ON-conditions using not the gate alone, (b) derive from equal saturation currents including the , (c) explain the in and name the second dynamic term , and (d) explain why the pull-up must be PMOS? If yes — you own the inverter.