Implementation Technologies - CMOS Gates and Technology Parameters
In questa pagina 5
Logic gates so far were symbols with ideal behaviour. Here we see how they are built in integrated circuits and which parameters limit their performance. It is a quick overview: device details belong to electronics courses.
Integrated circuits and CMOS
An integrated circuit (IC) is a thin rectangle of single-crystal silicon (chip) on which gates, flip-flops, memories, the clock tree and supply lines are built and interconnected; the chip is mounted in a package with tens or hundreds of pins. Characteristics are in the manufacturer's datasheet.
Digital circuits are almost always built in CMOS (Complementary Metal Oxide Semiconductor) technology, dominant since the 1980s. The basic component is the MOSFET, in two types, nMOS and pMOS, with terminals gate (G), source (S) and drain (D). An nMOS conducts if (with ), a pMOS if (with ).
Law (Moore). The number of transistors per chip grows exponentially, roughly doubling every two years.
Example. Doubling every years gives times more transistors in years.
Switch model
Definition (switch model of MOSFETs). In the simplified treatment MOSFETs are switches controlled by the logic value at the gate: open (OFF) means no signal between source and drain, closed (ON) means conduction. The physics is ignored and only the logical behaviour is kept.
transistor gate gate nMOS OFF ON pMOS ON OFF
Static CMOS gates
Inverter. A pMOS between and the output and an nMOS between the output and ground, gates tied to the input :
- : pMOS ON, nMOS OFF, so (connected to );
- : nMOS ON, pMOS OFF, so (connected to ground).
Definition (static CMOS gate: pull-up and pull-down). A generic gate has a pull-up network (PUN), made of only pMOS, between and the output, and a pull-down network (PDN), made of only nMOS, between the output and ground. PUN and PDN are dual: for every input combination one is ON and the other OFF:
- PUN ON, PDN OFF: output ;
- PUN OFF, PDN ON: output .
The output swings between and : the wide swing gives large 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.
Property (2-input CMOS NAND and NOR). NAND: PDN with two nMOS in series (conducts only if and ); PUN with two pMOS in parallel (conducts if or ). NOR, the dual: PDN with two nMOS in parallel; PUN with two pMOS in series.
NAND: pMOS ON NAND: nMOS ON NAND: NOR: pMOS ON NOR: nMOS ON NOR: 0 0 2 0 1 2 0 1 0 1 1 1 1 1 1 0 1 0 1 1 1 1 1 0 1 1 0 2 0 0 2 0
Formula (transistor count). An -input NAND or NOR has transistors ( pMOS and nMOS); an inverter has 2; an AND ( NAND inverter) has . This is why AND and OR cost more than NAND and NOR, which are also faster, and circuits are usually built with NAND/NOR.
Exam-style example. 3-input CMOS NAND with : the pMOS with gate 0 are on ( and : 2) and the nMOS with gate 1 are on (that of : 1); the series of nMOS does not conduct, the PUN (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; for more inputs use several gates in a tree. Example: an 8-input AND from two 4-input NANDs followed by a 2-input NOR, .
- Fan-out: number of gates that can be driven by one gate output without degrading performance (delay). Measured in standard loads: a minimum-size inverter is one unit load; a gate driving minimum inverters has fan-out 6.
- Noise margin (V): the largest external noise on an input that does not cause an unwanted output change.
- Propagation delay (s): time for a signal change to travel from input to output ( for , for ). The maximum clock frequency of a synchronous circuit is inversely proportional to the sum of worst-case delays, i.e. it depends on the slowest path (Timing of Sequential Systems - Setup, Hold and Maximum Clock FrequencyA flip-flop stores the right value only if its input is stable for the setup time before and the hold time after the clock edge, and its output changes after the propagation delay. In a synchronous circuit the clock period must satisfy T >= t_pd,FF + t_COMB + t_s,FF + t_slack, which fixes the maximum frequency; slowing the clock cures setup violations but not hold violations, which require t_pd,FF,min + t_COMB,min >= t_h. Clock skew modifies both constraints.Timing of Sequential Systems - Setup, Hold and Maximum Clock Frequency →).
- Power dissipation (W): becomes heat and limits operating temperature; in battery systems it fixes the autonomy. In CMOS the 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 the silicon area (number and size of transistors and wires) and to the technology node. IC costs split into:
- non-recurring engineering costs (NRE): one-off (design, verification, test, masks), amortised over large volumes;
- production costs: incurred per wafer (materials, labour, energy).
At small volumes NRE dominates. The cost per transistor keeps falling with new nodes. Programmable devices, which avoid custom masks, are in Programmable Logic Devices - ROM, PLA, PAL and FPGAProgrammable logic devices (PLD) have logic structures configurable by the manufacturer or the user, which is hardware configuration and not software programming. ROM: 2^k words of n bits, a decoder followed by programmable ORs, so a physical truth table; PLA: programmable AND and OR arrays with product terms shared between outputs; PAL: programmable ANDs and fixed ORs, no sharing; FPGA: programmable logic blocks with look-up tables and flip-flops, programmable routing and I/O, with a volatile or non-volatile configuration memory. Programming is irreversible (fuse, anti-fuse, mask) or reconfigurable (SRAM, floating gate).Programmable Logic Devices - ROM, PLA, PAL and FPGA →.
Versione ripasso
- CMOS: MOSFETs nMOS and pMOS, modelled as switches: nMOS ON for gate 1, pMOS ON for gate 0. Moore's law: doubling about every 2 years ( in 10 years).
- Static gate: PUN (only pMOS, to ) and dual PDN (only nMOS, to ground); one ON and the other OFF. Output swing gives high noise margins; no DC current, low static power. Inverter: gives , gives .
- NAND: nMOS in series, pMOS in parallel. NOR: nMOS in parallel, pMOS in series. -input NAND/NOR has transistors, inverter 2, AND/OR ; NAND/NOR cheaper and faster.
- Example: 3-input NAND with : 2 pMOS and 1 nMOS on, .
- Parameters: fan-in (typically at most 5, otherwise tree; 8-input AND = 2 NAND4 + NOR2); fan-out in standard loads; noise margin; delays (clock frequency ); power ().
- Cost: proportional to silicon area; NRE (one-off) vs production (per wafer); small volumes are NRE-dominated.