vlsiNote EN 中文
Author verified by published 2026-11-07 02:28 UTC updated 2026-11-07 02:28 UTC 44 views

A small digital block, end to end: from synthesized netlist to GDS

Other languages 中文 (original)English
The block I worked on is a slow control module: 320 kHz, 935 instances, about 17,600 square microns, a single clock domain, six ports.

The block I worked on is a slow control module: 320 kHz, 935 instances, about 17,600 square microns, a single clock domain, six ports. The process is a three-metal 150 nm BCD, so the only routing layers are M1 (horizontal), M2 (vertical) and the thick top metal TM (horizontal). The goal was modest: clean DRC, closed timing, and GDS / DEF / SPEF plus two Verilog netlists out the door. It looks like a small job, but from the ICT file to a GDS you can hand over, almost none of the trouble was in writing the flow. It was in a handful of defaults that are wrong for this process, or for this version of the tool.

Things worth checking before you start

The first is the layer map. I assumed the top metal’s GDS layer number could be inferred from the standard cell library’s GDS, and it cannot: the cells only use M1, CT and GT, so the top metal never appears there at all. I carried over layer 129 from the previous generation of the process, and every TM route, power ring segment and port in the output landed on 129, which in this PDK is a different ultra-thick metal. The real top metal is 97. The tool reports nothing at all for this mistake; the only way to catch it is to open the PDK’s layermap, copy layer and datatype per layer into the streamOut map, and then histogram the layer numbers of the GDS you produced. So: find <pdk>/<process>.layermap first, and do not guess.

The second is where the parasitics come from. The process ships an ICT stack file, and the normal path is to convert it into a capacitance table, but that conversion needs a 2D field solver executable which this tool installation does not have; the command simply reports that it cannot find the solver and exits. The way out was to parse the ICT myself, take conductor heights, thicknesses and dielectric constants, compute each layer’s area capacitance density with a parallel-plate-in-series-dielectrics formula, derive sheet resistance as resistivity over thickness, and borrow the shape of the fringe and coupling terms from the previous generation’s table by scaling it per layer. The result is a table with only the basic section. The tool reads it, prints one warning about the missing extended section, and extraction works normally. The lesson here is not “you can just compute it yourself” but verify early that the parasitic source actually runs — if you only discover at the end of routing that extraction is unavailable, every timing number before that point was meaningless.

The third is tool-version behaviour. The same ccopt_design call now refuses the current database outright and tells you to use clock_opt_design instead; after switching, that command wants to create a few default routing route types, but this process has only three metal layers and the LEF contains no non-default rules at all, so it tries to build the types with empty layer names and throws a string of parameter errors. The fix is to create those three route types yourself before CTS, pointing the top at TM and the bottom at M2. verifyGeometry, likewise, no longer exists in this version; it is verify_drc now. None of this shows up in an older project’s flow script, so before copying an old script, check that its commands still exist.

The fourth is how the ports get placed. I first used the interactive command with a range, and the tool ignored both the range and the spacing, spreading the six ports evenly across the whole edge, with two of them landing outside the power ring. What worked was writing an io file with coordinates, layer and size per port and loading it with loadIoFile, after which the positions are exactly what I asked for. There is a detail attached to this: the ports go on M2 while the bottom edge of the power ring runs on M1, so a signal leaving a port upward crosses the ring on a different layer and nothing collides.

The fifth is how rows get created. An old script had one line setting row spacing and type, with 2 as the second argument. It looks harmless and it is not: it makes the tool create a row every other site, which halves the row count, so every density number is wrong and placement packs the design to nearly a hundred percent. Remove the line, keep the default single-row pitch, and the row count comes out right.

The die size is computed, not guessed

Once the die height is fixed at 115 µm, the width is derived from the density target: total cell area divided by the target density gives the usable row area, divided by the number of rows and the row height gives the core width, and adding the margin on both sides gives the die width. One detail is easy to miss: the power ring sits on the die boundary and eats about 4.8 µm from the outside in (two 2 µm rings plus 0.6 µm of spacing plus a 0.2 µm offset), so the core-to-die margin must not go below 5.5 µm, or the ring lands on the first row of cells.

The requirement later changed the height to 135 µm and I walked the width from 220 down to 205, four versions of the same netlist:

die (width x height) rows density after route worst timing slack
220 x 135 37 71.0% +746 ns
210 x 135 37 74.6% +746 ns
205 x 135 37 76.6% +746 ns

Every 10 µm narrower buys three to four points of density, and timing does not move at all: the period here is one microsecond, and the physical difference is nowhere near what it would take to affect that. What is worth noting is the 205 version. Early global routing estimated vertical congestion in the thirties of a percent, yet detail routing still closed and DRC came back zero. Three metal layers still have headroom in the mid seventies of density; pushing further means watching congestion and DRC on every attempt rather than watching the density number alone.

Where the time actually went

Placement and optimisation took almost no time, and neither did CTS: one clock, a hundred and seventy-six sinks, the tool relaxed the skew target from 500 ps to 592 ps by itself, and after buffering the setup slack was still over seven hundred nanoseconds. What needed attention was hold time after the clock tree. With a one microsecond period, hold violations come from skew between the tree and the data paths, and after the optimiser inserted a batch of delay cells the hold slack settled at 0.5 ns.

DRC came back clean on the first full run, but that rests on one premise: antenna diode insertion was enabled during routing, and two real diode cells appeared in the netlist as a result. That changes what “no physical cells” should mean at handover: those diodes still belong in that netlist, because they are connected devices. Only fillers, well taps and decoupling cells should be filtered out.

Metal density is a different kind of problem. Every metal layer in this process has a minimum density rule checked over a 100 x 100 µm sliding window. After the skeleton flow, M1 was fine while M2 and TM sat in the low teens and twenties, far below 30%. Adding fill turned up a counter-intuitive behaviour: the filler evaluates density globally, so on a die a little over a hundred microns tall it believes the job is done, yet sliding the window around still leaves fractions of a percent missing. What finally worked was two global passes, then cutting the die into tiles at the check-window coordinates and filling each tile once more, which pushed every window above 30%.

This version ended up without any metal fill, by request, with the density check removed from the flow. That is a product decision rather than a technical one, but if the design ever goes to the foundry for sign-off, the fill step has to come back, and the recipe is the one above.

Checks after export

Do not stop at “the command did not error” after streaming out the GDS. I wrote a few dozen lines of parser over the output: count shapes per layer, confirm M1, M2, TM, V1 and TV are all present and that the top metal is 97 rather than 129; then count structure names and references and confirm every referenced standard cell has a matching structure in the file. Seventy structures, more than eight thousand references, nothing missing — only then is the merge trustworthy. This is precisely the check that caught the layer-number mistake.

Extract parasitics before inserting metal fill, because fill is floating metal, and extracting first then filling keeps the SPEF clean. One SPEF per corner, three of them, and two netlists: one with physical cells and power/ground ports, one with functional cells only.

What I deliberately did not do

Metal fill, as described above. The QRC technology file was skipped by project decision, so timing runs on the capacitance table. LVS has not run, because the top level has no pads and the power ring never reaches a top-level power port; that step has to happen before LVS can pass. Antenna rules have no sign-off check either, only the router’s automatic diode insertion. All of this belongs to “the flow works but it is not sign-off grade yet”, and the handover document keeps it in its own section.

If I started over: six things I would do first

Copy the PDK layermap into the streamOut map and verify the output GDS layer numbers once; prove that the ICT-to-capacitance-table path runs, and fix it first if it does not; confirm the actual command names for CTS and the DRC check in this tool version; place ports with an io file rather than interactive commands; confirm that the row-spacing setting does not halve the row count; and work out the density-to-die-size relation on paper instead of by trial.

All of that is under two hours of work, and what it buys is not having to redo a flow at the very end because some default near the beginning was wrong.

APRInnovus数字后端版图签核

Credibility

How far would you trust this note? 0-10.

How this note earned its label

Author verified bill2026 2026-11-07 02:28 UTC

Comments (0)

No comments yet.
Markdown source RSS Share card: light · dark The author checked this note line by line.