S3 · Lesson 30 · Synthesis and the ASIC flow
From RTL to gates to layout, timing constraints, and what a chip costs
Between a Verilog file and a packaged chip lies a long chain of tools. Synthesis turns the RTL into a netlist of cells from a foundry's standard-cell library, meeting timing constraints the designer writes. Placement puts each cell on the die, clock-tree synthesis builds the clock network, routing draws the metal, and sign-off checks timing, power, design rules and that the layout matches the netlist before the masks are made. The masks cost millions, so a design is checked over and over before tapeout. Cost also follows area much more steeply than linearly, because a bigger die both fits fewer times on a wafer and is more likely to catch a defect.
- Cost per working die against die area, for a 300 mm wafer with Poisson yield . Dies per wafer are (the second term is the partial dies lost at the edge).
- At small areas cost grows about in proportion to area; past the yield falls off and cost climbs exponentially. Raise the defect density, as in a new process, and big dies become unaffordable first.
- This is why large chips are increasingly split into several smaller dies (chiplets) in one package.
Predict
A 100 mm² die costs about 17 dollars to make. Roughly what does a 400 mm² die cost in the same process (0.1 defects per cm²)?
About 104 dollars. Four times the area fits only 143 dies on the wafer against 640 (the edge wastes more), and the yield falls from 90% to 67%. Together that's six times the cost for four times the area. At 600 mm² it would be about 200 dollars.
Name it
Synthesis
Synthesis reads RTL, builds generic logic, optimizes it, and maps it onto library cells (NAND2, NOR2, AOI, flip-flops, each in several drive strengths) to meet the constraints with the least area and power. Design size is often quoted in NAND2-equivalent gates: total cell area over the area of one NAND2.
Constraints are written in SDC (Synopsys Design Constraints):
create_clock -period 1.0 [get_ports clk]
set_input_delay 0.3 -clock clk [get_ports din]
set_output_delay 0.2 -clock clk [get_ports dout]
An input arriving 0.3 ns after the clock leaves for the logic inside; an output with a 0.2 ns external requirement must be ready by .
The physical flow
- Floorplanning: die size, I/O, large blocks and power grid. Core area = cell area / target utilization (often 60 to 80%, leaving room for routing and buffers).
- Placement of the standard cells in rows, optimized for timing and wire length.
- Clock-tree synthesis: buffered trees for low skew (lesson 46).
- Routing on many metal layers, then hold fixing (lesson 16).
- Sign-off: STA at every process, voltage and temperature corner; IR drop and electromigration; design-rule checks (DRC); layout versus schematic (LVS); equivalence checking between RTL and netlist.
- Tapeout: the masks are made from the final layout.
Cost
- Dies per wafer of diameter d: .
- Poisson yield: (other models, such as Murphy's, are a little kinder to big dies).
- Cost per good die: wafer cost / (dies per wafer × Y), plus test and packaging.
- NRE (masks, tools, engineering) is millions of dollars in an advanced node, so an ASIC beats an FPGA only above a break-even volume, .
Worked example
A 300 mm wafer costs 10,000 dollars and the defect density is 0.1 per cm². What does a working 100 mm² die cost?
Show the solution
- Dies per wafer. The wafer's area over the die's, less the partial dies around the edge:
- Yield. The die is 1 cm²: so about 579 good dies.
- Cost per good die. before test and packaging.
Answer about 17.26 dollars per working die, before test and packaging.
Worked example
An ASIC needs 2 million dollars of NRE and costs 5 dollars a unit; the FPGA that would do the same job costs 45 dollars. At what volume does the ASIC win? And how big is the ASIC's core if synthesis reports 1.8 mm² of cells at 70% utilization?
Show the solution
- Break-even volume. The ASIC saves 45 − 5 = 40 dollars a unit: Below that the FPGA is cheaper, with no mask risk and a design that can still change.
- Core area.
- Gate count. With 0.5 µm² per NAND2, 1.8 mm² of cells is 3.6 million NAND2-equivalent gates.
Answer the ASIC wins above 50,000 units, and its core is 2.57 mm².
Worked example
A design is constrained with a 1 ns clock, a 0.3 ns input delay and a 0.2 ns output delay; its flip-flops have 0.08 ns clock-to-Q and 0.05 ns setup. How much time does the logic get from an input to a register, and from a register to an output?
Show the solution
- Input to register.
- Register to output. The output must be ready by ns and leaves 0.08 ns after the edge:
- Where the delays come from. The external delays come from the neighbors' timing; getting them wrong either wastes speed or ships a chip that fails at the board level.
Answer 0.65 ns from an input to a register, and 0.72 ns from a register to an output.
Check
How many 150 mm² dies fit on a 300 mm wafer, by the formula with the edge correction?
Check
With 0.2 defects per cm², what's the Poisson yield of an 80 mm² die?
Check
A 300 mm wafer costs 5000 dollars and has 0.3 defects per cm². What does a working 80 mm² die cost, in dollars?
Check
An ASIC needs 3 million dollars of NRE and costs 3 dollars a unit; an FPGA doing the same job costs 60 dollars. Above what volume is the ASIC cheaper?
Check
Synthesis reports 2.5 mm² of cells. At 0.6 utilization, what core area is needed?
Check
The clock period is 1.6 ns, an input arrives 0.2 ns after the clock edge (set_input_delay), and the capturing flip-flop needs 0.1 ns of setup. How much time is left for logic?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
A block has 2 mm² of standard cells, and a NAND2 is 0.4 µm². About how many million NAND2-equivalent gates is it?
Check
A 200 mm wafer costs 15000 dollars and carries 25 mm² dies at a defect density of 0.5 per cm².
(a)
About how many dies fit on it?
(b)
What is the Poisson yield?
(c)
What does each good die cost, in dollars?
Check
An ASIC costs N in NRE and a per unit; the FPGA alternative costs b per unit (b > a).
Step 1
At what volume do they cost the same?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What does each ASIC cost, NRE included, at volume V?
Step 3
What does the ASIC save in total at volume V?
Explain why
Why does the cost of a chip rise faster than its area?
Two effects multiply. A larger die fits fewer times on a wafer, and the loss is worse than proportional because more of the wafer's round edge is wasted on partial dies. And each die has to be free of defects to work: if defects land randomly at some density, the chance a die escapes them falls exponentially with its area. The cost of a working die is the wafer cost divided by the number of dies that fit times the fraction that work, so both the shrinking count and the shrinking yield push it up. Past an area of about one over the defect density, the yield term dominates and cost climbs steeply, which is why very large designs are often split into chiplets.
Practice
Keep practicing
11 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.