Skip to main content

Updated 4 min readPhysical Verification

DRC vs LVS: checks, flow and debug tips

DRC vs LVS in one place: what each check proves, where they sit in ASIC and custom IC flows, how to set up runs, and how to debug failures fast.

By the SkyCadEda engineering teamHow these notes are written

  • Physical Verification
  • DRC
  • LVS
  • Calibre

ShareLinkedInX

On this page

DRC checks that layout geometry obeys the foundry's manufacturing rules. LVS checks that the devices and connections extracted from that layout match the schematic or netlist. They answer different questions, so a design needs both to be clean on the same layout before tapeout. This post covers what each check covers, how to run them through a project, and the debug habits that save the most time.

What each check covers

DRCLVS
InputLayout (GDSII/OASIS or OpenAccess) and the DRC deckLayout, source netlist (CDL/SPICE or Verilog) and the LVS deck
QuestionCan this geometry be manufactured?Is this the intended circuit?
Typical errorsWidth, spacing, enclosure, density, antenna, multi-patterning colouringShorts, opens, missing or extra devices, wrong W/L/nfin/nf, pin mismatches
OutputResults database with markers per ruleComparison report plus an extracted netlist and cross-reference database

At FinFET and GAA nodes the DRC deck grows (fin and gate grids, cut layers, colouring rules, more density windows) and LVS compares discrete parameters such as fin count and number of fingers instead of a continuous width. The checks themselves stay the same in kind.

Setting up a run

Foundry decks are written to be included, not edited. Keep a small per-design wrapper that sets the inputs and outputs and pulls in the foundry deck unchanged. For Calibre DRC:

// drc_top.svrf
LAYOUT PATH    "top.oas"
LAYOUT PRIMARY "TOP"
LAYOUT SYSTEM  OASIS

DRC RESULTS DATABASE "top.drc.results" ASCII
DRC SUMMARY REPORT   "top.drc.summary"
DRC MAXIMUM RESULTS  1000

INCLUDE "/pdk/xyz/calibre/drc/calibre.drc"

The LVS wrapper adds the source netlist and the report:

// lvs_top.svrf
LAYOUT PATH    "top.oas"
LAYOUT PRIMARY "TOP"
LAYOUT SYSTEM  OASIS
SOURCE PATH    "top.cdl"
SOURCE PRIMARY "TOP"
SOURCE SYSTEM  SPICE

LVS REPORT          "top.lvs.report"
MASK SVDB DIRECTORY "svdb" QUERY

INCLUDE "/pdk/xyz/calibre/lvs/calibre.lvs"
calibre -drc -hier -turbo drc_top.svrf > drc.log
calibre -lvs -hier -turbo lvs_top.svrf > lvs.log

Pegasus and IC Validator follow the same pattern with their own run files. Keep the wrapper, the deck version and the command line in revision control next to the design, so any result can be regenerated. For how foundry decks are structured, see anatomy of a DRC deck and the Calibre SVRF and TVF guide.

Sequencing DRC and LVS through a project

  • While building a block, run DRC on the cell or on selected rule checks (DRC SELECT CHECK in Calibre) after each editing session. Scoped runs are fast, but they only clear that scope.
  • Run LVS as soon as a block is wired. Early LVS finds swapped pins and missing taps while the layout is still easy to change.
  • After any repair, rerun both. A via added to fix an open can create a spacing error; widening a wire to fix a DRC error can short it to a neighbour. The two checks are coupled through the same geometry.
  • At integration, check what block runs cannot see: boundary interactions, top-level routing, power connections, fill and density on the assembled chip.
  • For signoff, run full DRC (including antenna and density) and LVS on one frozen layout, one netlist and one deck version. A clean result on an older layout says nothing about the current one.

Read the log before the results

A results database with zero violations is only meaningful if the run did what you think. Before reading markers, check the transcript and summary for: the right top cell and deck version; layers the deck expected but found empty (often a layer-map problem); rule checks that were deselected or skipped; and a run that stopped early. An empty layer can make a whole family of rules pass trivially. In LVS, read the extraction warnings before the comparison: unrecognised devices and soft-connection warnings usually explain the mismatches that follow.

Debugging LVS: fix shorts first

One short merges two nets, and every device on both nets then looks wrong, so a single short can produce hundreds of apparent mismatches. Isolate and fix shorts before reading the rest of the report: Calibre can be set to report the shapes that join the shorted nets, which you can then highlight from RVE in the layout editor. Then work through opens, then device and parameter mismatches. Two other frequent causes:

  • Labels. A text label on the wrong shape, or two labels with different names on one net, produces a short that does not exist in the geometry. A label that misses its shape produces an open.
  • Structures the schematic does not have: antenna diodes, well taps, guard rings, decap. Either add them to the schematic or handle them with the deck's documented filtering options, and record the decision.

The walk-through in debugging LVS shorts and opens goes further, and LVS setup and practice covers extraction settings and design-for-LVS habits.

Debugging DRC: group by rule and by cell

Sort results by rule and by the cell that contains them before fixing anything. Thousands of markers on one rule inside one repeated cell are one fix. A violation that appears only at top level usually comes from an interaction between blocks or with fill. Fix systematic causes in the generator or PCell rather than in each instance. For rules that genuinely do not apply, use a reviewed waiver with an owner and a recorded reason, not a deck edit; the baseline and waiver post describes how to track them, and antenna checks are covered separately.

If you need runset development or help closing a stubborn block, see our physical verification services.

Frequently asked questions

What is the difference between DRC and LVS?

DRC (design rule check) checks layout geometry against the foundry rules: width, spacing, enclosure, density, antenna and so on. LVS (layout versus schematic) extracts devices and nets from the layout and compares them with the source netlist. DRC says the layout can be manufactured; LVS says it is the circuit you meant. Neither implies the other.

Should DRC or LVS run first?

Run quick DRC on each block as it is built and run LVS as soon as the block is connected, then repeat both after every significant edit. At the end, run the full signoff DRC and LVS on the same frozen layout. Fix gross DRC problems such as missing vias or overlapping shapes before trusting an LVS result, because they can create false shorts and opens.

Can LVS pass while DRC fails?

Yes. A layout can be connected exactly as the schematic says and still have spacing, density or antenna violations. The reverse is also common: a DRC-clean layout with two nets swapped or a missing well tie fails LVS.

Which tools are used for DRC and LVS?

The main signoff tools are Siemens Calibre (SVRF/TVF rule decks), Cadence Pegasus (PVL), and Synopsys IC Validator (PXL). Older Cadence flows use Assura and PVS. The foundry qualifies specific tools and deck versions for each process.

More engineering notes

Working through a problem like this?

Tell us about your flow: the tools, the PDK, what is failing and when it needs to be clean.