electronics engineering
Course handbook · Fifth year · Edition with space for notes
Microelectronics
- 8Topics
- 0Solved exercises
- 17Formula sheet
Free handbook generated from the lessons of the site and updated often, every time a lesson or an exercise changes: the latest version is always at www.electronics-engineering.com/handbook/microelectronics. Links work in the PDF too.
1Fabrication and yield
A modern processor contains tens of billions of transistors on a few square centimetres of silicon, with features a few nanometres across, and is produced in millions of units. The Electronic Devices lesson on CMOS logic introduced fabrication. Here we look at it more closely: the process steps, lithography and its resolution limit, the structures of modern transistors, and yield, with the proof of the Poisson model and its effect on the cost of a chip, which explains why large chips are now split into chiplets.
The process steps
One starts from a wafer, a disc of ultra-pure single-crystal silicon 300 mm in diameter. Circuits are built on it layer by layer, repeating a few basic operations hundreds of times:
- oxidation and deposition of insulating, conducting and semiconducting layers;
- lithography: a light-sensitive resist is spread, exposed through a mask carrying the layer’s pattern, and developed;
- etching, chemical or by plasma, removing the material not protected by the resist;
- doping by ion implantation, followed by rapid annealing that repairs the lattice and activates the dopant atoms;
- metallisation: copper interconnects, up to 15-20 stacked levels separated by low-dielectric-constant insulators, made with the damascene process (trenches are dug in the insulator, filled with copper and everything is planarised by chemical-mechanical polishing).
The lower part, with the transistors, is called the front end; the upper part, with the interconnects, the back end. At the end the circuits are tested on the wafer, which is diced into individual dies, then packaged.
Lithography
The minimum size that can be printed is limited by the diffraction of light. The Rayleigh criterion gives the resolution
![]()
with
the wavelength,
the numerical aperture of the optics and
a process factor, which the most refined techniques push towards the theoretical limit of 0.25. For years 193 nm ultraviolet light was used, improved with immersion in water (which raises
above 1) and with multiple patterning (splitting a dense pattern over two or four masks). Today the finest layers are printed with extreme ultraviolet (EUV) at 13.5 nm, produced by tin droplets hit by a laser and focused with mirrors, because at that wavelength no material is transparent. EUV machines are among the most complex instruments ever built.
Process names (“3 nm”, “2 nm”) no longer correspond to a physical dimension: they are commercial labels for a generation. The minimum distance between transistor gates is a few tens of nanometres.
Modern transistors
The planar MOSFET can no longer control the channel when it is too short (lesson on the nanometre MOSFET). Since 2011 the FinFET has been used: the channel is a thin vertical silicon “fin”, wrapped by the gate on three sides, which controls it much better. The most recent generations move to gate-all-around (nanosheet) transistors, with the channel made of thin stacked horizontal layers completely surrounded by the gate. The gate insulator is no longer silicon dioxide but a high-dielectric-constant material, with a metal gate, to obtain strong coupling without tunnelling leakage currents.
Yield
Not all the dies on a wafer work: dust particles, crystal defects, lithography errors ruin some circuits. The fraction of good dies is the yield, and it is decisive for cost.
Theorem. If fatal defects are distributed randomly and independently over the wafer, with mean density
per unit area, the yield of a die of area
is
![]()
Proof. With independent, uniform defects, the number of defects falling in an area
follows a Poisson distribution with mean
: the probability of finding exactly
is
. The die works if it contains none:
. ∎

In reality defects tend to cluster and the Poisson model is somewhat pessimistic for large dies; variants are used (Murphy, negative binomial), but the exponential trend remains.
Example. A 300 mm wafer holds about 640 dies of 1 cm² and about 143 dies of 4 cm² (the edges waste more space with large dies). With
per cm² the yields are 90.5 % and 67 %: the good dies are about 580 and about 96. The 4 cm² chip has four times the area but costs about six times as much. That is why the largest processors are now built from several chiplets: small high-yield dies, tested separately and assembled together on a substrate or a silicon interposer with very dense connections. Different processes can also be mixed, the most advanced for logic and a cheaper one for the interfaces.
2The nanometre MOSFET
The square-law MOSFET model (Electronic Devices lesson on the MOSFET) describes transistors a few micrometres long well. In today’s transistors, with channels a few tens of nanometres long, new effects appear that change the rules of digital and analogue design. In this lesson we look at velocity saturation, short-channel effects, subthreshold conduction with the proof of the 60 mV per decade limit, its consequences on the supply voltage, and variability.
Velocity saturation
In the classic model electrons in the channel move with a velocity proportional to the electric field,
. But the field in a 20 nm channel with 0.8 V is tens of kilovolts per centimetre, and beyond about
V/cm the velocity stops growing: it saturates at about
cm/s, because the electrons give their energy to the lattice. The current no longer grows with the square of the gate drive, but roughly linearly:
![]()
with
the gate capacitance per unit area. The consequence is that shortening the channel further no longer increases the current as before, and the gain of analogue circuits, linked to transconductance, suffers too.
Short-channel effects
When the channel is short, the drain voltage influences the potential barrier near the source, which should be controlled by the gate alone. This gives rise to:
- drain-induced barrier lowering (DIBL): the threshold voltage drops as
increases, and the off-state current grows; - channel-length modulation: in saturation the current keeps growing with
, and the transistor’s output resistance is low. The intrinsic gain
, which was a few hundred in micrometre transistors, drops to 10-20.
The remedy is to give the gate stronger control over the channel: high-dielectric-constant insulators, and above all FinFET and gate-all-around structures (lesson on the process).
Subthreshold conduction
Below the threshold voltage the transistor is not completely off: electrons that overcome the barrier by thermal agitation produce a current that grows exponentially with the gate voltage, as in a diode.
Theorem. The subthreshold slope, i.e. the increase of
needed to multiply the current by ten, is
![]()
with
, and therefore it cannot go below 60 mV per decade at room temperature.
Proof. The subthreshold current is dominated by electrons with enough energy to overcome the barrier between source and channel. By Boltzmann statistics their density is proportional to
, where
is the surface potential of the channel. The gate controls
through a capacitive divider between the oxide capacitance and that of the depletion region, so
varies as
, with
. The current is then
. Multiplying it by 10 requires
to increase by
, i.e.
. With
mV at 300 K,
mV. ∎

The end of voltage scaling
The result has an enormous consequence. An off transistor must conduct much less than an on one: typically 5-6 decades of on-to-off current ratio are needed. With 60-80 mV per decade, the threshold voltage cannot go below 0.3-0.4 V, and the supply below 0.7-0.8 V. Every 60-80 mV less of threshold multiplies the leakage current by ten, which in a chip with billions of transistors becomes static power (Computer Architecture lesson on energy). That is why the supply voltage, which fell from 5 V to about 1 V between 1990 and 2005, has been almost stuck since then, and Dennard scaling has ended.
Beating 60 mV per decade would require a mechanism other than the thermal barrier: tunnel field-effect transistors and negative-capacitance transistors are the subject of research, but not yet of production.
Variability
In a 20 nm by 20 nm transistor there are a few tens of dopant atoms in the channel, and their number and position change from one transistor to another: the threshold voltage varies randomly even between identical neighbouring transistors. To this are added the irregularities of the edges drawn by lithography and the thickness of the layers. Variability forces design with margins: SRAM memories, which use the smallest possible transistors, must work even with the worst transistor among billions, and in analogue circuits the matching between transistors becomes a design parameter (lesson on noise and matching).
3Delays and logical effort
How fast is a logic gate, and how should the transistors be sized to drive a large load in the shortest time? Simulations give precise answers, but design needs simple models that point in the right direction. In this lesson we look at the Elmore delay of RC networks, the logical effort model of gate delay, the proof of how to minimise the delay of a path by sharing the effort equally, and an example with a chain of inverters.
The Elmore delay
A switching gate charges or discharges the downstream capacitances through the resistance of its transistors and interconnects: an RC network. For a tree network driven by a step, a widely used estimate of the delay to node
is the Elmore delay
![]()
where the sum runs over all the capacitances
of the network and
is the resistance of the portion of path shared between the path from the source to node
and that from the source to node
. For a chain of
segments, with resistances
and capacitances
, it becomes
: each capacitance is charged through all the resistances preceding it.
The idea is that each capacitance, to charge, passes its charge through the resistances it shares with the observed path, and each produces a drop there that delays the node. Mathematically the Elmore delay is the first moment of the network’s impulse response, and it is an upper bound on the 50 % delay: imprecise in the details, but simple, additive and almost always in the right direction, perfect for comparing alternatives.
The logical effort model
The delay of a gate, measured in units of
(the delay of an ideal inverter driving an identical inverter), is written
![]()
is the electrical effort (electrical fan-out): how much load it drives relative to its own input capacitance;
is the logical effort: how much worse the gate is than an inverter at producing current for the same input capacitance. It is 1 for the inverter, 4/3 for a two-input NAND, 5/3 for a two-input NOR, because series transistors must be widened to give the same current;
is the parasitic delay, due to the output’s own capacitance: about 1 for the inverter, 2 for the two-input NAND.
The product
is the stage effort.
The minimum delay of a path
For a path of
stages the path effort is defined as
, the product of the total logical effort
, the total electrical effort
and a branching factor
.
does not depend on how the intermediate gates are sized: it is fixed by the final load, the allowed input capacitance and the logic.
Theorem. The delay of an
-stage path with path effort
is minimum when all stages have the same effort
![]()
and it is then
.
Proof. The delay is
, and the second term does not depend on sizing. The product of the stage efforts is fixed:
, because the intermediate loads cancel between one stage and the next. By the inequality between arithmetic and geometric means,
, with equality only if all the
are equal. So
is minimum, equal to
, when each stage has effort
. ∎
The number of stages can also be chosen: minimising
with respect to
one finds that the optimal stage effort is about 3.6, in practice between 3 and 5. Adding inverters to a path that is too short makes it faster, and so does removing them from one that is too long.
An example

A signal with input capacitance
must drive a load
, for instance a long bus or an output pad. With a single inverter the delay is
. With a chain of inverters the path effort is
; with
stages the optimal effort of each is
, and each inverter must be four times larger than the previous one: 1, 4, 16, 64. The total delay is
, almost thirteen times less. That is why output buffers and clock drivers are chains of progressively larger inverters, and why an experienced designer, looking at a critical path, first looks for stages whose effort is very different from the others.
4Interconnects
In the first integrated circuits interconnects were “free”: all the delay was in the transistors. With scaling, transistors became faster while wires became thinner and more resistive, and today in a large chip delay, power and most design problems lie in the interconnects. In this lesson we look at the resistance and capacitance of wires, the proof that the delay of a wire grows with the square of its length, repeaters with the proof that they make delay linear, crosstalk, supply drops and electromigration.
Resistance and capacitance of a wire
A copper wire of length
, width
and thickness
has resistance
![]()
In the lowest levels wires have cross-sections a few tens of nanometres on a side, and copper’s effective resistivity rises above its bulk value because electrons scatter off the surfaces and grain boundaries; moreover part of the cross-section is taken by the barrier that prevents copper from diffusing. A minimum wire can have hundreds of ohms per micrometre. The capacitance to neighbouring wires and to the layers above and below is about 0.1-0.2 fF per micrometre, almost independent of dimensions because width and spacings scale together.
The delay of a long wire
A wire is a distributed RC network: each segment has its own resistance and capacitance.
Theorem. The delay of a wire not driven by repeaters grows with the square of its length.
Proof. With resistance
and capacitance
per unit length, divide the wire into
segments, each with resistance
and capacitance
. By the Elmore delay (lesson on delays), the capacitance of segment
is charged through
resistances:
, which for large
tends to
. In any case the delay is proportional to
, because doubling the length doubles both the resistance and the capacitance. ∎
The more precise 50 % delay of a distributed line is
. A 1 mm wire with 100 Ω/µm and 0.2 fF/µm has
ns: unacceptable in a processor working with 250 ps cycles.
Repeaters
The solution is to break the wire into
segments, each driven by a repeater (an inverter or a buffer).
Theorem. With an optimal number of repeaters the delay of a wire becomes proportional to its length.
Proof. Each segment has length
and delay
, where
is the repeater delay and
a constant. The total is
. Differentiating with respect to
and setting it to zero:
, i.e.
. Substituting, the two terms are equal and
: proportional to
. ∎

Modern processors contain millions of repeaters, which consume area and power. Long interconnects are routed in the upper metal levels, thicker and wider, with much lower resistance; and architectures are organised so that global signals are few, with data processed locally (Computer Architecture lesson on caches).
Crosstalk
Two close parallel wires form a capacitor: when one switches, it injects a disturbance into the other through the coupling capacitance, which in the lower levels is the largest part of the total capacitance. Two effects arise:
- noise on a quiet wire, which can exceed a gate’s threshold and cause an error;
- delay variations: if the neighbour switches in the opposite direction, the coupling capacitance sees twice the voltage change and it is as if it doubled (Miller effect); if it switches in the same direction, it is as if it vanished. The delay of a wire therefore depends on what its neighbours do, and timing analysis (lesson on the design flow) must take this into account.
It is fought by spacing critical wires, shielding them with ground wires, and alternating wire directions between one level and the next.
Supply and electromigration
The power network is also made of resistive wires: tens of amperes flowing through it produce voltage drops (IR drop), and rapidly changing currents produce inductive drops (
) in the package. If the supply drops locally by 10 %, transistors slow down and timing no longer closes. Dense power grids, thousands of contacts with the package and on-chip decoupling capacitors are used.
Electromigration is the movement of metal atoms dragged by the flow of electrons at high current density: over the years voids form that break the wire and hillocks that short it to its neighbour. The mean lifetime follows Black’s law, inversely proportional to a power of the current density and decreasing exponentially with temperature. Design rules set the maximum current density in every wire.
5Integrated operational amplifiers
Inside almost every chip, even digital ones, there are analogue circuits: voltage references, converters, regulators, radio receivers. Their main building block is the integrated operational amplifier, designed with rules different from those of the discrete op-amp seen in Applied Electronics, because every transistor can be sized but intrinsic gains are low and parasitic capacitances are everywhere. In this lesson we look at the two-stage CMOS op-amp, its gain, Miller compensation with the proof of the gain-bandwidth product, the second pole and the phase margin, the right-half-plane zero and higher-gain circuits.
The two-stage op-amp
The most classic structure has:
- a differential first stage (Applied Electronics lesson on the differential pair): an input transistor pair with a current-mirror active load, converting the input voltage difference into current with transconductance
into an output resistance
; - a common-source second stage, with transconductance
and output resistance
, providing the rest of the gain and the output swing.
The DC gain is
![]()
With intrinsic gains
of 20-50 per stage in modern processes (lesson on the nanometre MOSFET), 60-70 dB is reached.

Miller compensation
Each stage has a pole, and two close poles would give, in feedback, a poorly damped or unstable system. So a capacitor
is connected between the input and the output of the second stage. Because of the Miller effect, seen from the intermediate node the capacitor looks multiplied by the second stage’s gain,
: a huge capacitance, which creates a low-frequency dominant pole.
Theorem. With Miller compensation the amplifier’s gain-bandwidth product is
![]()
independent of the second stage and of the output resistances.
Proof. The dominant pole is at the intermediate node, with resistance
and effective capacitance
(neglecting the 1 compared with the gain):
. The gain-bandwidth product is the DC gain times the dominant pole frequency:
![]()
and dividing by
gives the formula in hertz. ∎
The result is convenient: the output resistances, which vary a lot with process and temperature, cancel, and the crossover frequency depends only on a transconductance and a capacitor, both well controlled. Example. With
mS and
pF,
MHz.
The second pole and phase margin
Compensation also has a less obvious effect: at high frequencies
shorts the second stage, which behaves like a diode of conductance
, and the second pole moves up, to about
![]()
(this is “pole splitting”). For the amplifier used as a follower to be stable with a good phase margin (lesson on the Nyquist criterion), the second pole must lie beyond the gain-bandwidth product: with
the margin is about 60°. The design rule follows:
: the second stage must have a large transconductance, and therefore consume current, all the more the heavier the capacitive load.
The right-half-plane zero
Capacitor
also offers a direct path from the intermediate node to the output, which at high frequencies carries the signal with the opposite sign to that of the second stage. This produces a right-half-plane zero at
, adding phase lag like that of the boost converter (Power Electronics lesson on converter control). It is moved or eliminated with a nulling resistor in series with
, of value about
, or by isolating the direct path with a follower.
Higher-gain amplifiers
When 60-70 dB is not enough, for instance in precision converters, the following are used:
- the cascode (lesson on current mirrors): a series transistor that multiplies the output resistance by its intrinsic gain, bringing a single stage to 60 dB. The telescopic and folded-cascode op-amps thus achieve high gains with a single stage, compensated by the load capacitance itself, but they have a reduced output swing, because many series transistors use up voltage headroom;
- gain boosting: a small auxiliary amplifier that regulates the cascode, for gains of 100 dB and more.
With 0.8-1 V supplies the signal swing keeps shrinking, and analogue design in advanced processes has become a balancing act between gain, speed, noise and available voltages. Many functions then move into the digital domain, where small transistors are an advantage: this is the trend of oversampled converters with digital processing (Digital Signal Processing lesson on multirate processing).
6Noise and mismatch
In an integrated analogue circuit two random phenomena limit precision: noise, which varies in time, and mismatch, which makes two components drawn identically different, and stays fixed. Both are fought with the same currency: area and power. In this lesson we look at the thermal noise of a sampler with the proof of the kT/C result and its energy cost, transistor noise, Pelgrom’s law for mismatch with its justification, and the layout techniques that reduce systematic errors.
kT/C noise
Every circuit that samples a voltage onto a capacitor (analogue-to-digital converters, switched-capacitor filters) uses a switch, a transistor with an on-resistance
. The thermal noise of this resistance (Signal Theory lesson on random processes) reaches the capacitor, and when the switch opens the instantaneous value of the noise is frozen together with the signal.

Theorem. The RMS noise voltage on the capacitor is
![]()
regardless of the value of the resistance.
Proof. The resistance has a noise voltage spectral density
(in V²/Hz). This noise passes through the RC low-pass filter, with
. The variance of the voltage on the capacitor is the integral over all frequencies:
![]()
using
with
. The resistance cancels: a larger resistance makes more noise, but over a narrower bandwidth. ∎
Example. With
pF at 300 K:
µV. A 12-bit converter with 1 V full scale has a 244 µV step, and kT/C noise is acceptable; for 16 bits (15 µV step) a capacitor of tens of picofarads would be needed.
The consequence is a direct link between precision and energy: halving the noise requires a capacitor four times larger, and charging it at the same speed requires four times the current. Every extra bit of resolution in a converter limited by thermal noise costs about four times the energy per conversion.
Transistor noise
- The thermal noise of a MOSFET channel in saturation is represented as a current of density
, with
between 2/3 and 1 and above in short transistors. Referred to the input it is a voltage of density
: reducing it requires a large transconductance, i.e. current. - Flicker (1/f) noise, due to the trapping and release of charges in oxide traps, has a density that grows as frequency decreases and is inversely proportional to the gate area. It dominates at low frequencies, below the corner frequency, which ranges from kilohertz to megahertz. It is reduced with large transistors, or eliminated with chopper and auto-zero techniques, which move the signal to a higher frequency before amplifying it and bring it back afterwards.
Mismatch
Two transistors drawn identically and close together are not equal: threshold voltage and current factor differ by a random amount (lesson on the nanometre MOSFET). In a current mirror or a differential pair this produces current errors and offset voltages.
Pelgrom’s law. The standard deviation of the threshold difference between two identical transistors is
![]()
where
is a process constant, typically a few mV·µm.
Justification. The threshold depends on the number of fixed charges (dopant atoms, charges in the oxide) under the gate. These are distributed randomly and independently: their number in an area
has a mean proportional to the area and, as for a Poisson distribution, a standard deviation proportional to the square root of the area. The threshold is proportional to the charge density, i.e. the number divided by the area: its relative fluctuation goes as
. The difference between two independent transistors has a standard deviation
times that of one, absorbed into the constant. ∎
Example. With
mV·µm, a 1 µm × 1 µm input pair has
mV, and 99.7 % of circuits have an offset within ±9 mV. To get down to a 1 mV standard deviation transistors nine times larger are needed, with more capacitance and hence less speed. Precision amplifiers therefore use trimming after production or auto-zero techniques.
Layout for matching
Besides random errors there are systematic errors: doping, thickness and temperature gradients across the chip, mechanical stress from the package. Layout cancels them with a few rules:
- common centroid: the transistors to be matched are split into parts arranged symmetrically around the same centre (for instance ABBA, or a checkerboard), so that a linear gradient affects them equally;
- interdigitation of the transistors’ fingers;
- dummy devices at the edges of arrays, because edge devices see a different environment during lithography and etching;
- same orientation, distance from heat sources and from the corners of the chip, where stress is greatest.
7Design flow and low power
A modern processor is not drawn transistor by transistor: billions of devices are obtained from a high-level description through a chain of electronic design automation (EDA) programs. Every step transforms the design and every step must be verified, because an error discovered after manufacturing costs millions and months. In this lesson we look at the digital design flow from the RTL description to the file for the fab, static timing analysis, physical verification, and low-power design techniques with the proof of the power-gating break-even time.
The flow

- Specification and architecture: what the chip must do, with what performance, power and cost.
- RTL: the logic is described at the register-transfer level in a language such as Verilog or VHDL (Digital Systems Electronics lesson on FPGAs and Verilog).
- Functional verification: simulations with millions of test cases generated randomly and in a directed way, assertions, and formal verification that mathematically proves some properties. In large projects verification employs more engineers than design itself.
- Logic synthesis: a program translates the RTL into a network of gates taken from a standard cell library of the process, optimising for area, speed and power.
- Placement and routing: cells are placed on the chip and connected with the metal levels; the clock tree is built, which carries the clock to millions of registers with almost equal delays.
- Timing closure and physical verification, seen below.
- Tape-out: the final layout, in GDS format, goes to the fab for mask production.
Static timing analysis
Instead of simulating all possible signals, impossible for billions of gates, static timing analysis (STA) computes for each path between two registers the maximum and minimum delay, adding up the delays of the cells and of the interconnects extracted from the physical layout (lessons on delays and interconnects). For each path it checks the setup condition (the data arrives in time before the clock edge) and the hold condition (it does not change too soon after), already seen in the Digital Systems Electronics lesson on timing. The slack of a path is the time to spare; negative slack is a violation to be fixed by resizing cells, adding repeaters or changing the logic.
The analysis is repeated at all process, voltage and temperature corners: slow transistors at low voltage and high temperature for setup, fast ones for hold. With the variability of modern processes statistical analyses are also used.
Physical verification
- DRC (design rule check): does the layout respect the thousands of geometric rules of the process, minimum spacings and widths, metal densities?
- LVS (layout versus schematic): does the circuit extracted from the layout coincide with the intended one, transistor by transistor and connection by connection?
- Parasitic extraction: resistances and capacitances of all interconnects, for timing analysis and analogue simulations.
- Power analysis: voltage drops, electromigration (lesson on interconnects).
Low-power design
Dynamic power is
and static power comes from leakage currents (Computer Architecture lesson on energy and lesson on the nanometre MOSFET). The main techniques:
- clock gating: the clock tree alone consumes 30-40 % of dynamic power, because it switches every cycle. The clock of registers that need not change is stopped, reducing the activity factor;
- multiple thresholds: high-threshold cells, slower but with ten times less leakage, on paths with slack; low-threshold cells only on critical ones;
- voltage islands and DVFS: blocks supplied at different voltages, adjusted to the load;
- power gating: a switch removes the supply from an idle block, eliminating leakage too.
Switching off has a cost, though: the state must be saved, and at power-up all the block’s capacitances must be charged.
Theorem. If switching a block off and on costs energy
and the block, on but idle, dissipates leakage power
, power gating saves energy only if the idle period exceeds the break-even time
![]()
Proof. Leaving the block on for a time
costs
; switching it off costs
(neglecting the small residual leakage of the switch). Switching off pays if
, i.e.
. ∎
The chip’s power controller estimates how long the idle period will last and decides accordingly; in phones blocks are switched off and on thousands of times a second.
Analogue and mixed-signal design
Analogue blocks (lessons on the integrated op-amp and on noise) are still largely designed by hand, with transistor-level simulations at all corners and Monte Carlo statistical analyses of mismatch, and are laid out carefully. Integration with the digital part requires isolating sensitive circuits from the noise digital circuits inject into the substrate and supplies (Electromagnetic Compatibility lessons). Automatic generation programs and machine learning techniques are entering this field too, but the designer’s experience still counts a great deal.
8Testing and reliability
Every chip produced must be tested: yield is never 100 % (lesson on the process), and a faulty chip that ends up in a car or a pacemaker can cost much more than the chip itself. But a circuit with billions of transistors cannot be tested on all input combinations: fault models and dedicated design structures are needed. In this lesson we look at the stuck-at fault model, coverage and the resulting quality with an example, scan chains, built-in self-test with linear feedback shift registers and the proof of their maximum period, and the main reliability mechanisms.
Fault models
A physical defect (a broken connection, a short between two wires) is represented by a logical fault model. The most widely used is the stuck-at fault: a circuit node stays fixed at 0 or 1. To detect it, it must be activated (driving the node to the opposite value) and propagated (making the difference reach an observable output). Automatic test pattern generation (ATPG) programs search, for each fault, an input combination that reveals it.
Coverage
is the fraction of modelled faults revealed by the test sequence. Delay fault models (a transition that is too slow) are also used, indispensable in modern processes where many defects slow a path down without blocking it.
Product quality
A chip that passes the test can still be faulty, if it has an uncovered defect. The fraction of faulty chips among those shipped is the defect level (DL), measured in parts per million. A classic model (Williams and Brown) relates it to the yield
and to coverage:
![]()
Example. With yield
: with 99 % coverage,
, i.e. about 2200 ppm; with 99.9 %, about 220 ppm. The automotive industry asks for levels below 1 ppm: coverages extremely close to 100 % and several types of fault models are needed. Every extra decimal of coverage costs test time, and testers cost millions.
Scan chains
In a sequential circuit the internal state cannot be seen from outside nor imposed directly: generating tests would be prohibitive. The solution is design for testability (DFT) with scan chains: each flip-flop receives an input multiplexer that, in test mode, connects it to the previous flip-flop instead of the logic.

In test mode all the flip-flops form a long shift register: the desired state is shifted in serially, one clock is given in normal mode so that the combinational logic computes the new state, and it is shifted out serially to be compared with the expected one. The sequential problem becomes combinational, and ATPG reaches very high coverages. The price is a little area and delay for the multiplexers. To reduce test time many chains in parallel and compression of test data are used.
Built-in self-test
In BIST (built-in self-test) the chip tests itself: an internal generator produces the inputs, and a compactor summarises the outputs into a signature to be compared with the expected one. The most used generator is the linear feedback shift register (LFSR):
flip-flops in a row, with the input of the first equal to the XOR of some chosen outputs.
Theorem. An
-bit LFSR has a period of at most
.
Proof. The state is the sequence of the
bits, so there are
possible states. The all-zero state is a fixed point: the XOR of zeros is zero, and the register never leaves it. Starting from a non-zero state, the register can never reach zero: the update is linear and invertible (the previous state can be derived from the next one), and the zero state already has itself as predecessor.
non-zero states remain; since each state determines the next, the sequence, after at most
steps, must repeat a state and from then on it is periodic. ∎
With the feedback taps chosen according to a primitive polynomial the period is exactly
: the register goes through all the non-zero states in a sequence with statistical properties similar to randomness. A 32-bit LFSR generates more than four billion different vectors with very little hardware. The same principle generates the pseudo-random sequences of spread-spectrum communications and CRC codes (Electrical Communications lessons). Memories have dedicated BIST, which writes and reads back patterns designed for their typical faults, and often spare rows and columns that replace faulty ones: repair greatly raises the yield of large memories.
Reliability
Once tested, the chip must work for years. The failure rate over time follows the bathtub curve: high at the start (early failures of weak chips), low and constant over the useful life, high again with wear-out. Early failures are fought with burn-in: chips intended for critical applications run for hours at high temperature and voltage, and the weak ones fail before shipment. The main wear-out mechanisms are electromigration in interconnects (lesson on interconnects), gate oxide degradation and transistor ageing, which slowly shifts thresholds.
Two risks concern inputs and outputs. Electrostatic discharges (ESD) from a person or a machine, thousands of volts, would destroy the extremely thin oxides: every pin has protection circuits with diodes and transistors that divert the discharge. Latch-up is the triggering of a parasitic thyristor formed by the doped regions of neighbouring n and p transistors, which short-circuits the supply; it is prevented with guard rings and frequent substrate contacts.
∑Formula sheet
Fabrication and yield
Lithography
![]()
Yield
![]()
The nanometre MOSFET
Velocity saturation
![]()
Subthreshold conduction
![]()
Delays and logical effort
The Elmore delay
![]()
The logical effort model
![]()
The minimum delay of a path
![]()
Interconnects
Resistance and capacitance of a wire
![]()
Integrated operational amplifiers
The two-stage op-amp
![]()
Miller compensation
![]()
![]()
The second pole and phase margin
![]()
Noise and mismatch
kT/C noise
![]()
![]()
Mismatch
![]()
Design flow and low power
Low-power design
![]()
Testing and reliability
Product quality
![]()