Electronics and Communication Engineering‹⌂ 0:00 studied

Module 13 · 13 min read · Free chapter

VLSI design flow and testing: design styles, timing, scan, BIST and yield

In short

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).

What are you preparing for? We show the practice and previous year questions of your exam.

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 kk-input LUT is a tiny memory of 2k2^k bits that can implement any function of kk 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 2n2^n minterms) and a programmable OR plane. Any function of nn 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 2n2^n-to-1 MUX implements any function of nn variables, or n+1n + 1 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 23=82^3 = 8 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.

  1. Specification and architecture: functions, performance, power and area targets, and the division into blocks.
  2. RTL design: the behaviour is written at the register-transfer level in Verilog or VHDL, describing registers and the logic between them.
  3. Functional verification: simulations and formal checks confirm the RTL behaves as specified. Verification often takes more effort than design.
  4. 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.
  5. Design-for-test insertion: scan chains and BIST are added (see the testing section).
  6. Floorplanning: big blocks, input–output pads and power distribution are placed on the die.
  7. Placement: standard cells are arranged in rows.
  8. Clock-tree synthesis: a balanced tree of buffers delivers the clock to every flip-flop with minimum skew.
  9. Routing: metal layers connect everything.
  10. Static timing analysis (STA): every path is checked for setup and hold without simulation vectors.
  11. 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.
  12. 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 tcqt_{cq}, passes through logic with delay tcombt_{\text{comb}}, and must arrive a setup time tsetupt_{\text{setup}} before the next edge. The setup condition sets the minimum clock period:

T≥tcq+tcomb,max+tsetup+tskewT \geq t_{cq} + t_{\text{comb,max}} + t_{\text{setup}} + t_{\text{skew}}

The hold condition requires that new data does not arrive so fast that it corrupts the value being captured:

tcq+tcomb,min≥thold+tskewt_{cq} + t_{\text{comb,min}} \geq t_{\text{hold}} + t_{\text{skew}}

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 tcq=100t_{cq} = 100 ps, tcomb=700t_{\text{comb}} = 700 ps and tsetup=50t_{\text{setup}} = 50 ps, Tmin⁡=850T_{\min} = 850 ps, so fmax⁡≈1.18f_{\max} \approx 1.18 GHz. Splitting the logic into two 350 ps stages gives Tmin⁡=500T_{\min} = 500 ps and fmax⁡=2f_{\max} = 2 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 nn lines has 2n2n 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 AA stuck at 0, apply A=1A = 1, B=1B = 1. The good gate gives 0; the faulty gate sees A=0A = 0 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 2n2^n 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 DD per unit area, a simple Poisson model gives the yield of a die of area AA as

Y=e−ADY = e^{-AD}

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 D=0.5D = 0.5 defects per cm², a 1 cm² die has Y=e−0.5≈61%Y = e^{-0.5} \approx 61\%, while a 2 cm² die has Y=e−1≈37%Y = e^{-1} \approx 37\%.

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:

  1. Compare design styles and implement functions with ROM, PLA, PAL or multiplexers.
  2. Describe the ASIC design flow from RTL to tape-out.
  3. Calculate maximum clock frequency from setup timing and explain pipelining.
  4. Explain fault models, test generation, scan design, BIST and boundary scan.

Practice questions (our own, not previous-year questions).

  1. Compare full-custom, standard-cell and FPGA design styles. When is an FPGA preferred to an ASIC? (10 marks)
  2. 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)
  3. 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 AA stuck at 1: apply A=0A = 0, B=1B = 1. 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: T≥tcq+tcomb+tsetupT \geq t_{cq} + t_{\text{comb}} + t_{\text{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: 2n2n for nn lines; test must control and observe.
  • DFT: scan chains, BIST (LFSR and MISR), boundary scan JTAG (TDI, TDO, TCK, TMS).
  • Yield Y=e−ADY = e^{-AD}; copper and low-k interconnect; DIP, QFP, BGA, flip-chip.

Check yourself

Exam-style questions on this chapter. Pick an answer to see the explanation. 0 of 12 answered

  1. In a PLA, which arrays are programmable?

  2. A ROM used to implement logic functions has:

  3. Compared with an ASIC, an FPGA generally has:

  4. In the VLSI flow, the step that converts RTL code into a gate-level netlist is:

  5. Layout versus schematic (LVS) checking verifies that:

  6. A path has tcq=50t_{cq} = 50 ps, logic delay 400 ps and setup time 50 ps, with no skew. The maximum clock frequency is:

  7. A hold-time violation is best fixed by:

  8. Pipelining a datapath mainly increases its:

  9. To detect input A stuck at 0 in a two-input NAND gate, the test vector (A, B) is:

  10. A circuit has 50 signal lines. The number of single stuck-at faults is:

  11. In BIST, test patterns are typically generated by a:

  12. With a defect density of 1 per cm², the Poisson yield of a 0.5 cm² die is about:

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

Frequently asked questions

What is the difference between PLA and PAL?

A PLA has both AND and OR arrays programmable, so product terms can be shared; a PAL has a programmable AND array and a fixed OR array, making it faster and cheaper.

How is maximum clock frequency found from timing?

The minimum period is clock-to-Q delay plus worst logic delay plus setup time and skew; its reciprocal is the maximum frequency.

What is a stuck-at fault?

A fault model in which one line is permanently 0 or 1; a circuit with n lines has 2n single stuck-at faults, and a test must activate the fault and propagate it to an output.

What does scan design do?

It links the chip's flip-flops into shift-register chains in test mode, so any internal state can be shifted in and results shifted out, turning sequential testing into combinational testing.

More in this module: VLSI basics

Official sources

Facts in this chapter were checked against these official sources.

  1. MPSC syllabus, Deputy Superintendent of Police / Assistant Commissioner of Police, Communication and Information Technology Department: VLSI technology, processing, lithography, interconnects, packaging, testing, VLSI design principles, MUX/ROM/PLA-based design, Moore and Mealy circuits, pipelining, design for testability