S330 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 e−D0A. Dies per wafer are π(d/2)2A−πd2A (the second term is the partial dies lost at the edge).
  • At small areas cost grows about in proportion to area; past 1/D0 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²)?

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 T−0.3−tsetup for the logic inside; an output with a 0.2 ns external requirement must be ready by T−0.2.

The physical flow

  1. 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).
  2. Placement of the standard cells in rows, optimized for timing and wire length.
  3. Clock-tree synthesis: buffered trees for low skew (lesson 46).
  4. Routing on many metal layers, then hold fixing (lesson 16).
  5. 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.
  6. Tapeout: the masks are made from the final layout.

Cost

  • Dies per wafer of diameter d: π(d/2)2A−πd2A.
  • Poisson yield: Y=e−D0A (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, NREcFPGA−cASIC.

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
  1. Dies per wafer. The wafer's area over the die's, less the partial dies around the edge: N=π×1502100−π×300200=706.9−66.6=640
  2. Yield. The die is 1 cm²: e−0.1×1=0.905 so about 579 good dies.
  3. Cost per good die. 10,000579=17.26dollars 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
  1. Break-even volume. The ASIC saves 45 − 5 = 40 dollars a unit: 2million40=50,000units Below that the FPGA is cheaper, with no mask risk and a design that can still change.
  2. Core area. 1.80.7=2.57mm2
  3. 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
  1. Input to register. 1−0.3−0.05=0.65ns
  2. Register to output. The output must be ready by 1−0.2=0.8 ns and leaves 0.08 ns after the edge: 0.8−0.08=0.72ns
  3. 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°.

Explain why

Why does the cost of a chip rise faster than its area?

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.