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 VDD. 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 V and high means approximately VDD. 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.
The inverter
An inverter uses one pMOS above the output and one nMOS below it, with both gates controlled by input A. Its Boolean function is
Input A | pMOS | nMOS | Settled output Y |
|---|---|---|---|
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 VDD.
Real transitions take time. A simple resistance-capacitance approximation for propagation delay, measured between the input and output 50% voltage crossings, is
Here Rn and Rp are effective conducting resistances, and CL 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 |
Two-input NOR | Parallel | Series | Y=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 CL from zero to VDD draws energy CLVDD2 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
Here f is a reference clock frequency, and the convention for α 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 VDDIleak 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 V and drives a total load CL=30 fF. Model its conducting nMOS by Rn=2.4 kΩ and its conducting pMOS by Rp=4.0 kΩ. Use ideal switches for settled logic states and the approximation tp=0.69RCL for propagation delay. Assume fast input transitions and neglect leakage and short-circuit power.
The reference clock frequency is 80 MHz, and the output averages 0.25 low-to-high transitions per clock cycle.
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 Rn.
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:
The falling-output propagation delay is
For a rising output, the ________ supplies charging current:
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=CLVDD from the supply. Multiplying this charge by the constant supply voltage gives the energy drawn:
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
Therefore,
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 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.
Energy dissipated as the output load repeatedly charges and discharges through conducting transistors
Energy dissipated through a temporary supply-to-ground path when both transistor types conduct during an input transition
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
A CMOS gate drives a total load capacitance of 32 fF from a 1.2 V supply. The reference clock frequency is 250 MHz. Its output makes an average of 0.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, to two decimal places.