Salta al contenuto
Note per Studenti CMOS Gates and Technology Parameters Report

CMOS Gates and Technology Parameters

In questa pagina 6

Logic gates in diagrams are ideal symbols. Here we see how they are built in integrated circuits and which parameters make a real gate differ from the ideal one. Device details belong to electronics courses.

Integrated circuit and CMOS

An integrated circuit (IC) is a thin rectangle of monocrystalline silicon (chip) holding gates, flip-flops, memories, clock tree and supply lines, interconnected; it is mounted in a package with tens or hundreds of pins. Characteristics are in the manufacturer's datasheet. The first IC dates to 1958.

Digital circuits are almost always CMOS (Complementary Metal Oxide Semiconductor), dominant since the 1980s. The basic component is the MOSFET, of two types, nMOS and pMOS, with terminals gate (G), source (S), drain (D). An nMOS conducts if VGS>VTnV_{GS}>V_{Tn} (VTn>0V_{Tn}>0), a pMOS if VGS<VTpV_{GS}<V_{Tp} (VTp<0V_{Tp}<0).

Moore's law: the number of transistors per chip grows exponentially, roughly doubling every two years. In 1010 years: 210/2=322^{10/2}=32 times.

Switch model

MOSFETs are treated as switches controlled by the logic value at the gate:

transistor gate =0=0 gate =1=1
nMOS OFF (open) ON (closed)
pMOS ON (closed) OFF (open)

Static CMOS gates

Inverter. A pMOS between VddV_{dd} and the output, an nMOS between output and ground, gates tied to input AA: A=0A=0 gives pMOS ON, nMOS OFF, Q=1Q=1; A=1A=1 gives nMOS ON, pMOS OFF, Q=0Q=0.

General gate. A pull-up network (PUN, only pMOS) between VddV_{dd} and the output and a pull-down network (PDN, only nMOS) between the output and ground. They are dual: for every input combination one is ON and the other OFF: PUN ON, PDN OFF ⇒\Rightarrow output 1; PUN OFF, PDN ON ⇒\Rightarrow output 0.

The output swings between VddV_{dd} and 00: the wide swing gives high noise margins. The two networks are never both on in steady state, so no DC current flows from supply to ground and static consumption is minimal.

2-input NAND: PDN = two nMOS in series (conduct only if A=1A=1 and B=1B=1); PUN = two pMOS in parallel (conduct if A=0A=0 or B=0B=0). 2-input NOR, dual: PDN = two nMOS in parallel; PUN = two pMOS in series.

Number of transistors ON, with inputs A,BA,B:

AA BB pMOS ON nMOS ON NAND QQ NOR QQ
0 0 2 0 1 1
0 1 1 1 1 0
1 0 1 1 1 0
1 1 0 2 0 0

NAND with A=B=1A=B=1: nMOS series closed, pMOS parallel open, Q=0Q=0. NOR with a single input at 1: the pMOS series is open and the nMOS parallel closed, Q=0Q=0.

Transistor count. A NAND or NOR with nn inputs has 2n2n transistors (nn pMOS and nn nMOS); an inverter has 2; an AND (== NAND + inverter) has 2n+22n+2. So AND/OR cost more than NAND/NOR, which are also faster: circuits are usually built with NAND/NOR.

Exam example. 3-input CMOS NAND with A=0,B=0,C=1A=0,B=0,C=1: ON are the pMOS with gate 0 (AA and BB: 2) and the nMOS with gate 1 (CC: 1). The nMOS series does not conduct, the pMOS parallel does: Q=1Q=1. Answer: 2 pMOS and 1 nMOS ON.

Technology parameters

  • Fan-in: number of inputs of a gate. In high-speed circuits the maximum is typically 5; more inputs are obtained with trees of gates. 8-input AND: two 4-input NAND followed by a 2-input NOR, AND8=x1x2x3x4‾+x5x6x7x8‾‾\mathrm{AND}_8=\overline{\overline{x_1x_2x_3x_4}+\overline{x_5x_6x_7x_8}}.
  • Fan-out: number of gates connectable to an output without degrading performance (delay), measured in standard loads: a minimum-size inverter is one unit load.
  • Noise margin (V): maximum noise on an input that does not cause an unwanted output change.
  • Propagation delay (s): time for a change to propagate from input to output (tpHLt_{pHL} for 1→01\to0, tpLHt_{pLH} for 0→10\to1). The maximum clock frequency of a synchronous circuit is inversely proportional to the sum of the worst-case delays, i.e. it depends on the slowest path.
  • Power dissipation (W): becomes heat and limits operating temperature; sets battery life. In CMOS dynamic power grows with frequency and with the square of the supply voltage: P≈αCVdd2fP\approx\alpha CV_{dd}^2f.

Cost of an integrated circuit

The cost of a gate is its contribution to chip cost, proportional to silicon area (number and size of transistors and wires) and dependent on the technology node. IC design costs split into non-recurring engineering (NRE: design, verification, test, masks; amortized over volume) and production costs (per wafer). At low volumes NRE dominates. Cost per transistor keeps falling with new nodes.

Common mistakes

  • Forgetting the inverting logic of the pMOS (ON with gate 0).
  • Swapping series and parallel between NAND and NOR (NAND = nMOS in series).
  • Counting nn transistors for an nn-input NAND (it is 2n2n).
  • Saying PUN and PDN are both ON: they are always complementary.
  • Confusing fan-in (inputs of the gate) with fan-out (gates driven).

Versione ripasso

  • CMOS: MOSFETs as switches: nMOS ON if gate =1=1, pMOS ON if gate =0=0. Inverter: pMOS to VddV_{dd}, nMOS to ground; A=0⇒Q=1A=0\Rightarrow Q=1, A=1⇒Q=0A=1\Rightarrow Q=0.
  • Static gate: PUN (only pMOS, to VddV_{dd}) and PDN (only nMOS, to ground), dual: always one ON, one OFF. Full swing, high noise margins, no DC current.
  • NAND (2 in): PDN series nMOS, PUN parallel pMOS. NOR: PDN parallel nMOS, PUN series pMOS.
  • Transistors: NAND/NOR with nn inputs: 2n2n; inverter 2; AND 2n+22n+2.
  • Exam example: 3-input NAND with A=B=0A=B=0, C=1C=1: 2 pMOS and 1 nMOS ON, Q=1Q=1.
  • Fan-in: inputs per gate (typically ≤5\le5); AND8_8 = two 4-input NAND + one 2-input NOR. Fan-out: standard loads drivable.
  • Delay: tpHLt_{pHL}, tpLHt_{pLH}; max clock frequency ∝1/\propto1/(sum of worst-case delays).
  • Power: P≈αCVdd2fP\approx\alpha CV_{dd}^2f.
  • Cost: proportional to silicon area; NRE (design, masks, dominant at low volume) plus production cost per wafer. Moore's law: doubling every ~2 years.
  • Mistakes: pMOS vs nMOS logic; series/parallel swapped; nn instead of 2n2n; PUN and PDN both ON; fan-in vs fan-out.

Teoria collegata