CMOS Inverter and Logic Gates

CMOS Inverter and Logic Gates use complementary p-channel and n-channel MOS transistors to produce digital outputs. You can understand their logic by tracing conducting paths between the output and the supply rails. The same circuit also charges and discharges capacitance, connecting its logical operation to delay and power consumption.

Complementary conducting paths

For ordinary static CMOS, the pull-up network is the pMOS network that connects the output to the positive supply VDDV_{DD}. The pull-down network is the nMOS network that connects the output to ground.


Use an ideal switch model for logic analysis: an nMOS controlled by a high input conducts, while a pMOS controlled by a low input conducts. Here, low means approximately 0 V0\ \text{V} and high means approximately VDDV_{DD}. Assume valid supply levels, conventional enhancement-mode devices, and negligible leakage for this initial analysis.


A correctly constructed complementary gate has one conducting network and one nonconducting network for every settled, valid binary input combination. The conducting network determines the output rail. The nonconducting network interrupts a direct supply-to-ground path.



Switch-level diagrams show an inverter and a two-input gate with complementary transistor networks.


The inverter

An inverter uses one pMOS above the output and one nMOS below it, with both gates controlled by input AA. Its Boolean function is


Y=A‾.Y=\overline{A}.


Input AA

pMOS

nMOS

Settled output YY

Low

On

Off

High

High

Off

On

Low


When the input rises, the nMOS turns on and discharges the output capacitance toward ground. When the input falls, the pMOS turns on and charges that capacitance toward VDDV_{DD}.


Real transitions take time. A simple resistance-capacitance approximation for propagation delay, measured between the input and output 50% voltage crossings, is


tpHL≈0.69RnCL,tpLH≈0.69RpCL.t_{pHL}\approx0.69R_nC_L,\qquad t_{pLH}\approx0.69R_pC_L.


Here RnR_n and RpR_p are effective conducting resistances, and CLC_L is total output load capacitance. This approximation treats the conducting transistor as a constant resistance and the input transition as fast. Device sizing and loading can make rising and falling delays different.

Building NAND and NOR gates

For nMOS transistors, a series connection conducts only when every controlling input is high. Parallel branches conduct when at least one controlling input is high. Remember that a conducting pull-down network produces a low output, so its conduction condition is complemented to obtain the output function.


Gate

nMOS pull-down network

pMOS pull-up network

Output function

Two-input NAND

Series

Parallel

Y=AB‾Y=\overline{AB}

Two-input NOR

Parallel

Series

Y=A+B‾Y=\overline{A+B}


In Boolean notation, multiplication means AND and ++ means OR. For NAND, both inputs must be high to complete the ground path. Either low input activates a pMOS pull-up branch. For NOR, either high input completes a ground path, while both inputs must be low to complete the series pull-up path.


Construct the complementary network by exchanging series and parallel connections and replacing nMOS with pMOS while retaining each controlling input.

Switching energy and power

Charging CLC_L from zero to VDDV_{DD} draws energy CLVDD2C_LV_{DD}^2 from the supply. Half becomes stored capacitor energy; the other half is dissipated during charging. Discharging dissipates the stored half.


The average load-switching power is


Pswitch=αCLVDD2f.P_{\text{switch}}=\alpha C_LV_{DD}^{2}f.


Here ff is a reference clock frequency, and the convention for α\alpha is the average number of output low-to-high transitions per clock cycle. It does not count both transition directions. The complete-cycle energy is already included in the formula.



A useful power budget adds leakage power VDDIleakV_{DD}I_{\text{leak}} and, when significant, short-circuit power to switching power. With capacitance, activity, and frequency fixed, reducing supply voltage reduces switching power quadratically.


What to remember

  • Find the output by tracing complete pull-up and pull-down paths.
  • Exchange series and parallel connections to form complementary networks.
  • Keep switching activity, leakage, and delay assumptions explicit.

Example: Timing and Power of a CMOS Inverter

A CMOS inverter in a digital sensor interface operates from VDD=1.8 VV_{DD}=1.8\ \text{V} and drives a total load CL=30 fFC_L=30\ \text{fF}. Model its conducting nMOS by Rn=2.4 kΩR_n=2.4\ \text{k}\Omega and its conducting pMOS by Rp=4.0 kΩR_p=4.0\ \text{k}\Omega. Use ideal switches for settled logic states and the approximation tp=0.69RCLt_p=0.69RC_L for propagation delay. Assume fast input transitions and neglect leakage and short-circuit power.


The reference clock frequency is 80 MHz80\ \text{MHz}, and the output averages 0.250.25 low-to-high transitions per clock cycle.


A CMOS inverter drives a capacitor connected between its output and ground.


a) The input changes from low to high. Identify the conducting transistor and determine the settled output voltage.


A high input turns the nMOS on and the pMOS off. The load capacitor discharges through the nMOS to ground. After the transient has ended, the capacitor draws no ideal steady current, so there is no voltage drop across RnR_n.


VY,final=0 V.V_{Y,\text{final}}=0\ \text{V}.


The output therefore changes from high to low, with the nMOS providing the conducting discharge path.


b) Estimate the high-to-low and low-to-high propagation delays, measured at the 50% voltage crossings.


Use the ________ resistance for a falling output because it provides the discharge path. First convert the quantities to SI units:


Rn=2.4×103 Ω,Rp=4.0×103 Ω,CL=30×10−15 F.R_n=2.4\times10^3\ \Omega,\quad R_p=4.0\times10^3\ \Omega,\quad C_L=30\times10^{-15}\ \text{F}.


The falling-output propagation delay is


tpHL≈0.69RnCL=0.69(2.4×103)(30×10−15) s=4.968×10−11 s≈49.7 ps.\begin{aligned} t_{pHL}&\approx0.69R_nC_L\\ &=0.69(2.4\times10^3)(30\times10^{-15})\ \text{s}\\ &=4.968\times10^{-11}\ \text{s}\\ &\approx49.7\ \text{ps}. \end{aligned}


For a rising output, the ________ supplies charging current:


tpLH≈0.69RpCL=0.69(4.0×103)(30×10−15) s=8.28×10−11 s=82.8 ps.\begin{aligned} t_{pLH}&\approx0.69R_pC_L\\ &=0.69(4.0\times10^3)(30\times10^{-15})\ \text{s}\\ &=8.28\times10^{-11}\ \text{s}\\ &=82.8\ \text{ps}. \end{aligned}


The rising output is slower in this model because its charging resistance is larger. These are estimated propagation delays, not times to reach the final rail exactly.


c) Find the energy drawn from the supply for one complete output charging event and the average load-switching power.


A charging event moves charge Q=CLVDDQ=C_LV_{DD} from the supply. Multiplying this charge by the constant supply voltage gives the energy drawn:


Esupply=VDDQ=CLVDD2=(30×10−15)(1.8)2 J=97.2×10−15 J=97.2 fJ.\begin{aligned} E_{\text{supply}}&=V_{DD}Q=C_LV_{DD}^2\\ &=(30\times10^{-15})(1.8)^2\ \text{J}\\ &=97.2\times10^{-15}\ \text{J}\\ &=97.2\ \text{fJ}. \end{aligned}


Only half of this energy is stored in the charged capacitor. Use the full supply energy when calculating supply power. The average rate of charging events is


αf=(0.25)(80×106)=2.00×107 s−1.\alpha f=(0.25)(80\times10^6)=2.00\times10^7\ \text{s}^{-1}.


Therefore,


Pswitch=Esupplyαf=(97.2×10−15)(2.00×107) W=1.944×10−6 W≈1.94 μW.\begin{aligned} P_{\text{switch}}&=E_{\text{supply}}\alpha f\\ &=(97.2\times10^{-15})(2.00\times10^7)\ \text{W}\\ &=1.944\times10^{-6}\ \text{W}\\ &\approx1.94\ \mu\text{W}. \end{aligned}


No additional factor of two is needed for falling transitions. Their discharge dissipates the energy stored during charging rather than drawing another charging-event energy from the supply.

A CMOS inverter operates from VDD=3.3 VV_{DD}=3.3\ \text{V}. Its input is held at 0 V0\ \text{V} long enough for the output to settle. Assume ideal enhancement-mode transistor switches and negligible leakage. Which statement describes the settled state?


A CMOS inverter connects a pMOS above the output and an nMOS below it with a shared input.


Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A laboratory investigates energy losses in a conventional CMOS inverter driving a capacitive load. Match each loss mechanism to its physical description. The input settles near a supply rail between transitions.

Match each term
A.

Energy dissipated as the output load repeatedly charges and discharges through conducting transistors

B.

Energy dissipated through a temporary supply-to-ground path when both transistor types conduct during an input transition

C.

Energy dissipated by small currents through nominally off devices, including while the input and output remain unchanged

Capacitive switching loss

Leakage loss

Short-circuit loss

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A CMOS gate drives a total load capacitance of 32 fF32\ \text{fF} from a 1.2 V1.2\ \text{V} supply. The reference clock frequency is 250 MHz250\ \text{MHz}. Its output makes an average of 0.150.15 low-to-high transitions per clock cycle. Ignore leakage and short-circuit power.


Calculate its average load-switching power. Give your answer in μW\mu\text{W}, to two decimal places.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice