Module 13 · 13 min read · Free chapter
VLSI design flow and testing: design styles, timing, scan, BIST and yield
A ROM has a fixed AND and programmable OR plane, a PLA both programmable and a PAL programmable AND. The flow runs from RTL through synthesis, placement, clock tree, routing, timing analysis and DRC/LVS to tape-out. The clock period must exceed clock-to-Q plus logic plus setup. Scan chains and BIST make chips testable, and yield is e^(−AD).
Start from zero: how a chip gets designed
A modern chip holds billions of transistors. Nobody draws them one by one. Engineers describe the behaviour in a hardware description language, and software tools turn that description into a layout that a fabrication plant can manufacture.
This VLSI (very large scale integration) design flow takes months and teams of hundreds, and a mistake found after manufacture can cost crores and months of delay. So the flow is full of checks, and chips are designed from the start to be testable.
This chapter covers the design styles and programmable logic, the steps of the design flow, timing and pipelining, manufacturing tests and design for testability, and yield, interconnect and packaging.
It builds on CMOS design basics, sequential circuits and state machines and IC fabrication.
Why it matters. Design styles, PLA and ROM design, timing, stuck-at faults, scan and BIST are standard ESE and state-service questions.
Design styles and programmable logic
Chips are built in several design styles, trading performance against cost and design time:
| Style | What is customised | Strengths | Typical use |
|---|---|---|---|
| Full custom | every transistor and wire | best speed, area and power | processor cores, analogue blocks, memories |
| Standard cell | placement and wiring of pre-designed cells | good results, automated | most ASICs |
| Gate array | only the metal wiring over a fixed array | faster turnaround | older and low-volume designs |
| FPGA | configuration bits, no fabrication | instant, reprogrammable | prototypes, low-volume products |
An FPGA (field-programmable gate array) contains thousands to millions of configurable logic blocks, each built around small look-up tables (LUTs) and flip-flops, connected by programmable routing. A -input LUT is a tiny memory of bits that can implement any function of variables. FPGAs avoid the high one-time (NRE) cost of masks, but each unit costs more and uses more power than an ASIC, so ASICs win at high volumes.
Simple logic can also be made from regular programmable arrays that implement sum-of-products expressions:
- A ROM has a fixed AND plane (a full decoder producing all minterms) and a programmable OR plane. Any function of inputs fits, but size doubles with each input.
- A PLA (programmable logic array) has both planes programmable, so only the needed product terms are built and shared among outputs.
- A PAL has a programmable AND plane and a fixed OR plane, giving each output a set number of product terms; it is faster and cheaper than a PLA.
A multiplexer is also a universal building block: a -to-1 MUX implements any function of variables, or variables if the last variable and its complement are fed to the data inputs.
Worked example. A 3-input, 2-output function in a ROM needs words of 2 bits, 16 bits in all. A PLA for the same function needs only as many product terms as the minimised expressions use, perhaps four.
Why it matters. Comparing design styles, and identifying which planes are programmable in ROM, PLA and PAL, are frequent questions; PLA and ROM implementation problems appear in written papers.
The ASIC design flow
A chip design moves through three views, often drawn as the Y-chart: behavioural (what it does), structural (which blocks and gates) and physical (where they sit on silicon). The flow converts one view into the next, with checks at each step.
- Specification and architecture: functions, performance, power and area targets, and the division into blocks.
- RTL design: the behaviour is written at the register-transfer level in Verilog or VHDL, describing registers and the logic between them.
- Functional verification: simulations and formal checks confirm the RTL behaves as specified. Verification often takes more effort than design.
- Logic synthesis: a tool maps the RTL onto gates from a standard-cell library, optimising for the timing, area and power constraints, and produces a gate-level netlist.
- Design-for-test insertion: scan chains and BIST are added (see the testing section).
- Floorplanning: big blocks, input–output pads and power distribution are placed on the die.
- Placement: standard cells are arranged in rows.
- Clock-tree synthesis: a balanced tree of buffers delivers the clock to every flip-flop with minimum skew.
- Routing: metal layers connect everything.
- Static timing analysis (STA): every path is checked for setup and hold without simulation vectors.
- Physical verification: DRC (design rule check) confirms the layout obeys the process rules, LVS (layout versus schematic) confirms it matches the netlist, and electrical checks look for problems such as antenna effects.
- Tape-out: the final layout, in GDSII or OASIS format, is sent to the foundry for mask making.
After fabrication, chips are tested, packaged and tested again.
Why it matters. The order of the flow and the meaning of synthesis, STA, DRC and LVS are frequent short questions.
Timing and pipelining
Almost all digital chips are synchronous: flip-flops capture data on clock edges, and combinational logic between them must settle within one clock period.
For a path from one flip-flop to the next, data leaves after the clock-to-Q delay , passes through logic with delay , and must arrive a setup time before the next edge. The setup condition sets the minimum clock period:
The hold condition requires that new data does not arrive so fast that it corrupts the value being captured:
Setup violations are fixed by a slower clock or faster logic; hold violations do not depend on clock period and are fixed by adding delay to short paths.
Pipelining breaks a long combinational path into stages separated by registers. Each stage is shorter, so the clock can be faster, and a new input can enter every cycle. Throughput rises, but each result takes several cycles to emerge, so latency increases, and the extra registers cost area and power. Processors, DSP filters and graphics units all rely on deep pipelines.
Control logic is designed as finite state machines, either Moore machines, whose outputs depend only on the state, or Mealy machines, whose outputs also depend on the inputs and can respond a cycle earlier.
Worked example. With ps, ps and ps, ps, so GHz. Splitting the logic into two 350 ps stages gives ps and GHz, with a latency of two cycles.
Why it matters. Maximum clock frequency from setup timing and the effect of pipelining on throughput and latency are standard numericals.
Testing and design for testability
Every manufactured chip must be tested, because tiny defects such as dust particles, shorts and opens break some dies. Testing does not prove the design is correct; that is verification. It checks that each copy was made correctly.
Physical defects are represented by fault models. The most widely used is the single stuck-at fault model: one line is assumed stuck at 0 (s-a-0) or stuck at 1 (s-a-1). A circuit with lines has such faults.
To detect a fault, a test vector must do two things:
- Control (activate) it: drive the faulty line to the value opposite to the stuck value.
- Observe (propagate) it: set other inputs so the difference reaches an output.
Example. For a two-input NAND gate with input stuck at 0, apply , . The good gate gives 0; the faulty gate sees and gives 1, so the fault is detected.
Automatic test pattern generation (ATPG) tools find vectors for millions of faults, and fault coverage is the percentage of modelled faults the vectors detect; production tests aim for 95–99% or more. Exhaustive testing with all input combinations is impossible for large circuits, and sequential circuits are harder still, because internal flip-flops are hard to set and read.
Design for testability (DFT) adds circuitry to make chips easier to test:
- Scan design: each flip-flop gets a multiplexer at its input. In test mode, the flip-flops are linked into a long shift register (a scan chain). A test state is shifted in through scan-in, one clock cycle of normal operation is applied, and the captured result is shifted out through scan-out. This turns the sequential testing problem into a combinational one.
- Built-in self-test (BIST): an on-chip LFSR (linear-feedback shift register) generates pseudo-random patterns, and a MISR (multiple-input signature register) compresses the outputs into a short signature compared with the expected value. BIST is common for memories and can test a chip in the field.
- Boundary scan (JTAG, IEEE 1149.1): a scan chain around the chip's pins, controlled through the TDI, TDO, TCK and TMS signals, tests the connections between chips on a circuit board without physical probes.
Why it matters. Stuck-at test vectors, controllability and observability, scan, BIST and JTAG are standard ESE topics.
Yield, interconnect and packaging
Not every die on a wafer works. Yield is the fraction of good dies. If defects are scattered at random with density per unit area, a simple Poisson model gives the yield of a die of area as
Large dies therefore have much lower yield, which is one reason big processors are now built from several smaller chiplets joined in one package.
As transistors shrink, wires become the bottleneck. A wire's resistance rises as its cross-section shrinks, and closely packed wires have more capacitance, so interconnect RC delay grows even while gate delay falls. Chips moved from aluminium to copper wiring in the late 1990s, use low-k dielectrics between wires to cut capacitance, and stack ten or more metal layers, with thick upper layers for long global wires and power.
Long wires get repeaters (buffers) to keep delay linear in length rather than quadratic. Electromigration, the slow drift of metal atoms under high current density, limits how thin power wires can be.
Fabrication itself, with lithography, etching, deposition and doping, was covered in IC fabrication.
Finally the die is packaged to protect it, connect it to the board and remove heat:
- DIP (dual in-line): two rows of through-hole pins; cheap, few pins.
- QFP (quad flat pack): leads on all four sides for surface mounting.
- BGA (ball grid array): solder balls in a grid under the package, giving hundreds or thousands of connections.
- Flip-chip: the die is turned over and bonded face-down with solder bumps, giving short connections and good heat paths; used for processors.
India's first OSAT (assembly, testing and packaging) plants and its first commercial fab, at Dholera in Gujarat, are being built under the India Semiconductor Mission.
Worked example. With defects per cm², a 1 cm² die has , while a 2 cm² die has .
Why it matters. The yield formula, copper and low-k interconnect and package types are asked as short questions in ESE and technology sections.
Descriptive lens
Written papers ask about this topic in four ways:
- Compare design styles and implement functions with ROM, PLA, PAL or multiplexers.
- Describe the ASIC design flow from RTL to tape-out.
- Calculate maximum clock frequency from setup timing and explain pipelining.
- Explain fault models, test generation, scan design, BIST and boundary scan.
Practice questions (our own, not previous-year questions).
- Compare full-custom, standard-cell and FPGA design styles. When is an FPGA preferred to an ASIC? (10 marks)
- A path has clock-to-Q delay 80 ps, logic delay 920 ps and setup time 40 ps. Find the maximum clock frequency, and the new frequency if the logic is pipelined into two equal stages. (10 marks)
- Explain the stuck-at fault model. What is scan design and how does it improve testability? Find a test for input A stuck at 1 in a two-input AND gate. (12 marks)
Answer plan for question 3.
- Define s-a-0 and s-a-1 faults and the need to control and observe a fault.
- Describe scan flip-flops, the scan chain, shift-in, capture and shift-out.
- For an AND gate with stuck at 1: apply , . The good gate gives 0, the faulty gate gives 1.
- Conclude that scan makes every flip-flop a pseudo-input and pseudo-output, so combinational ATPG can be used.
Quick revision
- Styles: full custom, standard cell, gate array, FPGA (LUTs, no fabrication delay, higher unit cost).
- ROM: fixed AND, programmable OR; PLA: both programmable; PAL: programmable AND, fixed OR.
- Flow: spec, RTL (Verilog/VHDL), simulation, synthesis, DFT, floorplan, placement, clock tree, routing, STA, DRC/LVS, tape-out.
- Setup: ; hold fixed by adding delay, not by slowing the clock.
- Pipelining raises throughput and clock rate, adds latency.
- Moore outputs from state; Mealy from state and inputs.
- Stuck-at faults: for lines; test must control and observe.
- DFT: scan chains, BIST (LFSR and MISR), boundary scan JTAG (TDI, TDO, TCK, TMS).
- Yield ; copper and low-k interconnect; DIP, QFP, BGA, flip-chip.