---
title: The IC design flow
heading: The path from a specification to a chip, the digital flow of RTL, synthesis, place and route and timing sign-off, the analog flow of schematics, simulation and hand layout, the checks before tapeout, and the economics of die cost, yield and non-recurring engineering
eyebrow: D7 · Lesson 1 · The IC design flow
xp: 40
---

::: hook
Designing a chip is unlike designing a circuit board in one crucial way: you can't fix it after it's built. A mask set for an advanced process costs millions of dollars and a turn through the fab takes months, so every part of the design is checked, simulated and verified before tapeout, the moment the layout goes to the foundry. The design flow is the sequence of tools and checks that makes a first-pass success likely, and the economics of wafers and yield explain why chips are designed the way they are.
:::

::: play
- The cost of each working die from a 300 mm wafer, against the die's area, for a wafer cost W and a defect density $D_0$ (defects per cm²).
- Bigger dies mean fewer per wafer, and each is more likely to catch a defect: yield $Y = e^{-AD_0}$. The cost per good die grows faster than the area.
- That's why big chips are increasingly split into smaller **chiplets** in one package.
:::

```sim plot
view: graph
x: A = 10..800
y: C = 0..400
slider: W = 3000..20000 step 500 = 10000
slider: D = 0.02..0.5 step 0.01 = 0.1
plot: W/((pi*150^2/A - pi*300/sqrt(2*A))*exp(-A/100*D)) | samples: 400 | label: cost per good die, dollars (A in mm²)
readout: good dies from a wafer at 100 mm² = (pi*150^2/100 - pi*300/sqrt(200))*exp(-D) | digits: 4
readout: cost per good 100 mm² die, dollars = W/((pi*150^2/100 - pi*300/sqrt(200))*exp(-D)) | digits: 4
```

::: predict
## A wafer costing 10,000 dollars holds 640 dies of 100 mm². With 0.1 defects per cm², what does each working die cost?

- [ ] 15.63 dollars
- [x] About 17.26 dollars
- [ ] About 100 dollars
- [ ] 10,000 dollars

::: reveal
Each 1 cm² die catches a defect with probability $1 - e^{-0.1}$, so the yield is 90.5% and 579 dies work: 10,000/579 = 17.26 dollars each. A 400 mm² die gets only 143 sites and 67% yield, so 104 dollars each: four times the area costs six times as much.
:::
:::

::: nameit
## The digital flow

1. **Specification and architecture**: what the chip must do, its blocks and interfaces.
2. **RTL design** in Verilog or VHDL (D10), verified by simulation (lesson 6).
3. **Logic synthesis** maps the RTL onto a library of standard cells (gates and flip-flops) to meet timing.
4. **Place and route** positions millions of cells and wires them, building the clock tree.
5. **Static timing analysis**, power analysis and **physical verification**: design-rule checks (DRC), layout-versus-schematic (LVS) and extraction of parasitic resistance and capacitance.
6. **Tapeout**: the final layout goes to the foundry.

## The analog flow

Analog and mixed-signal blocks (amplifiers, data converters, PLLs) are drawn as transistor schematics, simulated across process, voltage and temperature corners, laid out largely by hand with careful matching (lesson 2), then checked by the same DRC, LVS and extraction.

## Economics

- **Die cost** = wafer cost/(dies per wafer × yield), with Poisson yield $Y = e^{-AD_0}$ for area A and defect density $D_0$.
- **Non-recurring engineering (NRE)**: design effort, tools and masks, paid once. Unit cost is $\text{NRE}/N + \text{die cost}$ for N units, so ASICs pay off only at volume.
- An FPGA (D10) has no NRE but costs more per unit; the **break-even** volume is NRE divided by the difference in unit cost.
:::

::: example
## An ASIC needs 2 million dollars of NRE and costs 12 dollars per unit; the equivalent FPGA costs 50 dollars. Where's the break-even, and what does each ASIC cost at 100,000 units?

::: solution
1. **Break-even volume.** The NRE is paid back by the 38 dollars the ASIC saves on each unit:
   $$\frac{2\,000\,000}{50 - 12} \approx 52\,600\ \text{units}$$
2. **ASIC cost at 100,000 units.** Spread the NRE over the units and add the unit cost:
   $$\begin{aligned} &\frac{2\,000\,000}{100\,000} + 12 \\ &= 32\ \text{dollars} \end{aligned}$$
   still well below the FPGA.

**Answer:** the break-even is about 52,600 units, and at 100,000 units each ASIC costs 32 dollars, against 50 for the FPGA.
:::
:::

::: example
## How does yield change between a 100 mm² and a 400 mm² die at 0.1 defects per cm²?

::: solution
1. **The 100 mm² die.** Its area is 1 cm²:
   $$e^{-1 \times 0.1} = 90.5\%$$
2. **The 400 mm² die.** Its area is 4 cm²:
   $$e^{-4 \times 0.1} = 67.0\%$$
3. **Chiplets.** Splitting the big die into four 100 mm² chiplets brings each back to 90.5%, and bad chiplets are discarded before packaging.

**Answer:** the yield falls from 90.5% for the 100 mm² die to 67.0% for the 400 mm² die.
:::
:::

::: example
## A processed 300 mm wafer costs 10,000 dollars and holds 640 dies of 100 mm² at 90.5% yield. What does each good die cost?

::: solution
1. **Good dies.**
   $$640 \times 0.905 = 579$$
2. **Cost per good die.**
   $$\frac{10\,000}{579} = 17.3\ \text{dollars}$$
   before testing and packaging.
3. **A bigger die.** A 400 mm² die at 67% yield on the same wafer would cost several times as much per die, which is the economics behind chiplets.

**Answer:** each good die costs about 17.3 dollars.
:::
:::

::: check
given: A = 50 | 100 | 300 | 600; D = 0.05 | 0.1 | 0.2
answer: 100*exp(-A/100*D)
tolerance: 0.5%

## A die of {A} mm² is made with {D} defects per cm². What percentage of dies work?

::: right
Right. $e^{-AD_0}$ = {answer}%.
:::

::: misses
- [100*exp(-A*D)] Convert the area to cm² first.
- [any] Not yet. Poisson yield.
:::
:::

::: check
given: W = 5000 | 10000 | 17000; n = 200 | 600; y = 0.6 | 0.9
answer: W/(n*y)
tolerance: 0.5%

## A wafer costing {W} dollars has {n} die sites and a yield of {y}. What does each working die cost, in dollars?

::: right
Right. $W/(nY)$ = {answer} dollars.
:::

::: misses
- [W/n] Only the working dies carry the wafer's cost.
- [any] Not yet. Wafer cost over good dies.
:::
:::

::: check
given: N = 1 | 5; c = 5 | 15; f = 40 | 80
answer: N*1e6/(f - c)
tolerance: 0.5%

## An ASIC needs {N} million dollars of NRE and costs {c} dollars per unit; an FPGA doing the same job costs {f} dollars. Above what volume is the ASIC cheaper?

::: right
Right. NRE/(FPGA cost − ASIC cost) = {answer} units.
:::

::: misses
- [N*1e6/c] Compare against the FPGA's price: divide by the difference.
- [any] Not yet. Volume where the totals are equal.
:::
:::

::: check
given: N = 1 | 3 | 10; v = 10000 | 100000 | 1000000; c = 4 | 15
answer: N*1e6/v + c
tolerance: 0.5%

## A chip has {N} million dollars of NRE and a die cost of {c} dollars. What does each unit cost, in dollars, if {v} are made?

::: right
Right. NRE/N + die cost = {answer} dollars.
:::

::: misses
- [any] Not yet. Spread the NRE over the volume.
:::
:::

::: check
kind: parts
given: N = 0.5 | 2 | 10; a = 5 | 12 | 30; f = 40 | 80

## An ASIC needs {N} million dollars of NRE and {a} dollars per unit; an FPGA doing the same job costs {f} dollars.

::: part
answer: N*1e6/(f - a)
unit: units
tolerance: 0.5%

### Where is the break-even volume?

::: misses
- [any] NRE ÷ (FPGA price − ASIC unit cost).
:::
:::

::: part
answer: N*1e6/1e5 + a
tolerance: 0.5%

### What does each ASIC cost, in dollars, at 100,000 units?

::: misses
- [any] NRE spread over the units, plus the unit cost.
:::
:::
:::

::: check
kind: parts
given: A = 50 | 100 | 400; D = 0.05 | 0.1 | 0.3

## A die of {A} mm² is made at {D} defects per cm².

::: part
answer: exp(-A/100*D)*100
unit: %
tolerance: 0.5%

### What yield does the Poisson model give?

::: misses
- [exp(-A*D)*100] Convert mm² to cm² first.
- [any] $e^{-AD}$.
:::
:::

::: part
answer: exp(-A/400*D)*100
unit: %
tolerance: 0.5%

### And for each of four chiplets of a quarter the area?

::: misses
- [any] Use A/4.
:::
:::
:::

::: check
kind: parts
given: W = 10000 | 17000; n = 300 | 640 | 1200; y = 60 | 80 | 95

## A wafer costs {W} dollars and holds {n} dies with {y}% yield.

::: part
answer: n*y/100
unit: dies
tolerance: 0.5%

### How many good dies does it give?

::: misses
- [any] Dies × yield.
:::
:::

::: part
answer: W/(n*y/100)
tolerance: 0.5%

### What does each good die cost, in dollars?

::: misses
- [W/n] Only good dies can be sold.
- [any] Wafer cost ÷ good dies.
:::
:::
:::

::: check
kind: parts
given: d = 200 | 300; A = 25 | 100 | 400

## A {d} mm wafer is cut into {A} mm² dies.

::: part
answer: pi*(d/2)^2/A
tolerance: 0.5%

### How many dies would fit if the edge cost nothing?

::: misses
- [any] Wafer area ÷ die area.
:::
:::

::: part
answer: pi*d/sqrt(2*A)
tolerance: 0.5%

### How many does the edge cost, by the usual estimate $\pi d/\sqrt{2A}$?

::: misses
- [any] $\pi d/\sqrt{2A}$.
:::
:::
:::

::: explain
## Why does the cost of a working die grow faster than its area?

::: model
A larger die takes more of the wafer, so fewer fit, which on its own makes cost proportional to area, and the round wafer wastes more at its edge with larger rectangles. On top of that, defects land randomly across the wafer, and a die is ruined if any defect falls inside it, so the chance that a die is defect-free falls exponentially with its area. The cost per working die is the wafer cost divided by the number of working dies, so it rises with area both because there are fewer dies and because a smaller fraction of them work. That's why very large chips are expensive and why designers now split them into smaller chiplets.
:::
:::

::: practice

::: check
given: A = 5 | 900; D = 0.01 | 0.5
answer: 100*exp(-A/100*D)
tolerance: 0.5%

## Yield, %: {A} mm², {D} defects/cm²?

::: misses
- [any] $e^{-AD_0}$.
:::
:::

::: check
given: W = 2000 | 25000; n = 50 | 3000; y = 0.3 | 0.98
answer: W/(n*y)
tolerance: 0.5%

## Cost per good die, in dollars: {W}-dollar wafer, {n} sites, yield {y}?

::: misses
- [any] $W/(nY)$.
:::
:::
:::
