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 (), a pMOS if ().
Moore's law: the number of transistors per chip grows exponentially, roughly doubling every two years. In years: times.
Switch model
MOSFETs are treated as switches controlled by the logic value at the gate:
| transistor | gate | gate |
|---|---|---|
| nMOS | OFF (open) | ON (closed) |
| pMOS | ON (closed) | OFF (open) |
Static CMOS gates
Inverter. A pMOS between and the output, an nMOS between output and ground, gates tied to input : gives pMOS ON, nMOS OFF, ; gives nMOS ON, pMOS OFF, .
General gate. A pull-up network (PUN, only pMOS) between 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 output 1; PUN OFF, PDN ON output 0.
The output swings between and : 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 and ); PUN = two pMOS in parallel (conduct if or ). 2-input NOR, dual: PDN = two nMOS in parallel; PUN = two pMOS in series.
Number of transistors ON, with inputs :
| pMOS ON | nMOS ON | NAND | NOR | ||
|---|---|---|---|---|---|
| 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 : nMOS series closed, pMOS parallel open, . NOR with a single input at 1: the pMOS series is open and the nMOS parallel closed, .
Transistor count. A NAND or NOR with inputs has transistors ( pMOS and nMOS); an inverter has 2; an AND ( NAND + inverter) has . 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 : ON are the pMOS with gate 0 ( and : 2) and the nMOS with gate 1 (: 1). The nMOS series does not conduct, the pMOS parallel does: . 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, .
- 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 ( for , for ). 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: .
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 transistors for an -input NAND (it is ).
- 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 , pMOS ON if gate . Inverter: pMOS to , nMOS to ground; , .
- Static gate: PUN (only pMOS, to ) 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 inputs: ; inverter 2; AND .
- Exam example: 3-input NAND with , : 2 pMOS and 1 nMOS ON, .
- Fan-in: inputs per gate (typically ); AND = two 4-input NAND + one 2-input NOR. Fan-out: standard loads drivable.
- Delay: , ; max clock frequency (sum of worst-case delays).
- Power: .
- 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; instead of ; PUN and PDN both ON; fan-in vs fan-out.