Lec 03 - CMOS Logic

The Switch Model

To understand CMOS logic, we first treat transistors as ideal switches with specific characteristics regarding how well they pass logic levels (Voltage).

Switch Behavior

Closed (ON) when Gate = HIGH

Closed (ON) when Gate = LOW

Connection

Typically in PDN (Pull-Down Network)

Typically in PUN (Pull-Up Network)

Signal Strength

Passes Strong 0

Passes Strong 1

Passes Weak 1

Passes Weak 0

Voltage Limits

Output rises only to (VDDVTNV_{DD} - V_{TN})

Output drops only to VTP|V_{TP}|

Because NMOS is bad at passing 1s and PMOS is bad at passing 0s, we use complementary pairs (CMOS). PMOS pulls up to VDDV_{DD} (Strong 1), and NMOS pulls down to GND (Strong 0).

Deriving Boolean Functions

In static CMOS, the function is determined by the connection of transistors. The construction rule is to use PUN/PDN:

  • PDN (Pull-Down Network): Connects output to GND.

    • A OR B -> A and B in parallel

    • A AND B -> A and B in series

  • PUN (Pull-Up Network): Dual/The exact complement of the PDN. Connects output to VDDV_{DD}.

To derive the CMOS logic,

  • Look at the PDN: Write the boolean equation based on the NMOS connections.

    • If A and B are in series: ABA \cdot B

    • If A and B are in parallel: A+BA + B

  • Invert the Overall Expression: The physical output of a CMOS gate is always inverted (NAND, NOR, NOT).

    • Y=PDN ExpressionY = \overline{\text{PDN Expression}}

Transistor Sizing & Resistance

We size transistors to achieve Equal Worst-Case Resistance for both pull-up and pull-down paths. This ensures the rise time (tpLHt_{pLH}) and fall time (tpHLt_{pHL}) are approximately equal.

Physics

We start from the mobility ratio. Electrons (NMOS) are faster than holes (PMOS).

  • μn2μp\mu_n \approx 2 \mu_p

  • So, the resistivity ratio is ρp:ρn2:1\rho_p : \rho_n \approx 2 : 1

As the resistance formula is:

R=ρLA=ρLH×WR = \frac{\rho L}{A} = \frac{\rho L}{H \times W}
  • LL (Length) and HH (Height/Thickness) are fixed by the technology process.

  • We control WW (Width) to adjust Resistance.

This is also why sizing usually refers to adjusting the width.

Sizing for Symmetry

To achieve Rp=RnR_p = R_n (Equal Resistance):

  • Since PMOS is 2x more resistive per unit width, we must make it 2x wider.

  • Ratio: Wp:Wn=2:1W_p : W_n = 2 : 1 and Wp:Wn=1:2\sum W_p:\sum W_n=1:2.

Definitions

Some other definitions that we might encounter

  • INV1X: A standard unit inverter where Rp=RnR_p = R_n. We treat the NMOS resistance as "1 unit RR". So, for the resistance

    • Pull-Up (RpR_p) = RR (1 Unit Resistance)

    • Pull-Down (RnR_n) = RR (1 Unit Resistance)

    • During the calculation, the pull-up result and the pull-down result should finally be simplified to ρW\frac{\rho}{W} assuming that ρ\rho is for NMOS.

  • In INV4x, the inverter that is 4 times larger (in terms of transistor width) than the standard INV1X. Thus, for the resistance.

    • Pull-Up (RpR_p) = R4\frac{R}{4} (0.25 Unit Resistance)

    • Pull-Down (RnR_n) = R4\frac{R}{4} (0.25 Unit Resistance)

    • For an INV4X inverter, the equivalent worst-case resistance for both the pull-up and pull-down networks simplifies to: ρ4W\frac{\rho}{4W}.

  • Area Estimation: Total Width Sum (W\sum W) is an indicator of the total silicon area required.

Propagation Delay

Delay is the time required for the output to switch states.

  • tpLHt_{pLH} (Low-to-High): Time to charge output to VDDV_{DD}. Requires PMOS to conduct.

  • tpHLt_{pHL} (High-to-Low): Time to discharge output to GND. Requires NMOS to conduct.

Calculation

We model the transistor as a resistor (RR) and the load as a capacitor (CC).

tp0.69ReqCLt_p \approx 0.69 \cdot R_{eq} \cdot C_L

Input Pattern

Delay depends on which and how many transistors are ON. For example, in the following figure, we can see that

  1. A=B=1->0 will charge the fastest

  2. Then is A=1->0, B=1 because only CL needs to be charged.

  3. A=1, B=1->0 is the slowest because both CL and Cint need to be charged.

This will give us a tip for circuit optimizing

Place the transistor controlled by the latest signal closer to the Output node (rather than the supply rail). This minimizes the capacitance that the late signal needs to charge/discharge, speeding up the final transition.

Advanced Circuit Structures

Pass Transistor Logic

Pass Transistor uses transistors as switches to pass data signals (not just VDDV_{DD}/GND).

For example, we can use pass transistor logic to build a multiplexer as follows:

Multiplexer using pass transistor logic

Transmission Gate

Transmission gate combines NMOS and PMOS together and it can pass both strong 0s and strong 1s. Thus, XOR gate and multiplexer can be built using transmission gate.

XOR gate using transmission gate

Level Restoration Circuit

When using Pass Transistors (specifically NMOS-only), the "Weak 1" can be problematic.

To solve it, we can use a "Level Restorer" (a weak PMOS feedback loop) to pull the node back up to full VDDV_{DD}.

In a restorer circuit, the main driver (NMOS) must be stronger than the feedback keeper (PMOS) to toggle the state.

More on NMOS

NMOS passes weak 1.

  • If the voltage at drain is Vdd, voltage at the source is Vdd-Vtn maximum.

  • If the voltage at drain is smaller than Vdd-Vtn, voltage at the source is equal to the voltage at the drain maximum.

Below are two very important applications:

Last updated