Skip to main content

Updated 5 min readPDK & Verification

PDK setup guide: foundry kit to Virtuoso

Step-by-step foundry PDK setup for Virtuoso: cds.lib and techfile, layer map checks, CDF and models, DRC/LVS deck hookup, extraction files and QA regressions.

By the SkyCadEda engineering teamHow these notes are written

  • PDK & Verification
  • Custom IC
  • Foundry Enablement

ShareLinkedInX

On this page

Setting up a foundry PDK for Virtuoso means binding the foundry's technology library through cds.lib, pointing simulation at the right model files and corners, hooking the DRC, LVS and extraction decks to the same layer map, and then proving all of it with a small regression before any designer opens the kit. Most PDK problems are not in the foundry data itself. They come from the glue: a layer number that differs between the stream map and the rule deck, a model path left over from the previous release, or a startup file that loads the wrong kit.

What is in a foundry PDK

  • Technology library: the ASCII techfile compiled into the library's tech.db, with layer-purpose pairs, vias, rules and the display resources (display.drf).
  • Device models: Spectre, HSPICE or Eldo model files with process corners and statistical sections.
  • Rule decks: DRC, LVS, antenna and fill decks, usually Calibre SVRF, plus Pegasus, PVS, IC Validator or Assura variants where the foundry supports them.
  • Extraction files: StarRC nxtgrd (built from ITF with grdgenxo), Quantus qrcTechFile, or Calibre xRC rules, each with its own layer mapping file.
  • Device library: symbols, CDF parameters and callbacks, and PCells for every supported device.
  • Stream layer map for GDSII/OASIS export, and documentation with the supported tool versions.

Step 1: directory layout and environment

Install each PDK release read-only, under a path that contains the release ID, and never edit it in place. Project setup scripts then select one release. Virtuoso finds site customisation through CDS_SITE (site .cdsinit and .cdsenv), finds libraries through the cds.lib chain, and reads whatever PDK variables the foundry's setup script exports. A project cds.lib normally includes the PDK's file and defines only project libraries:

-- project cds.lib
SOFTINCLUDE $CDSHOME/share/cdssetup/cds.lib
INCLUDE /tools/pdk/xyz28/rel_1.3/cds.lib
DEFINE  ana_top   ./libs/ana_top
DEFINE  ana_cells ./libs/ana_cells

The most common environment fault is a stale variable or DEFINE from a personal .cshrc, .bashrc or .cdsenv that silently points at an older kit. Print the resolved library paths at startup (the Library Path Editor shows them, or log them from .cdsinit) and make the setup script refuse to continue if a second PDK root is on any path.

Step 2: technology library and display

Design libraries attach to the foundry technology library rather than carrying their own copy, so a techfile update reaches every library at once. tech.db is the compiled technology database, not a cache: to change it you load a new ASCII techfile through the Technology File Manager (Load, in Replace or Merge mode) or swap in the foundry's new tech library, then reopen open cellviews. Check that every layer-purpose pair in the layer palette has a matching packet in display.drf; a layer that draws as an unfilled outline in the same colour as another is a layout error waiting to happen.

Step 3: devices and models

Point ADE Explorer/Assembler (or PrimeWave in a Synopsys flow) at the model files and section names for every corner the foundry ships, and check them against the release notes, not against last year's setup. Then place each device in a test schematic, netlist it, and simulate it at nominal and at the corners. This catches CDF parameters that do not reach the netlist, callbacks that error, and model sections that were renamed between releases.

Step 4: verification decks and the layer map

Every tool has its own view of the layers: the techfile, the stream layer map used at export, the SVRF LAYER MAP statements in the rule deck, and the extraction layer mapping file. The foundry does not guarantee your local copies agree, especially after partial updates. A short script that compares them is worth more than any amount of manual review. This one lists stream layer/datatype pairs that the Calibre deck never maps:

#!/usr/bin/env python3
# usage: check_map.py <stream.layermap> <deck.svrf>
import re, sys

drawn = set()
for line in open(sys.argv[1]):
    f = line.split()
    # Virtuoso map line: layer purpose gdsLayer gdsDatatype
    if len(f) >= 4 and not line.startswith("#"):
        drawn.add((int(f[2]), int(f[3])))

mapped, whole = set(), set()
for line in open(sys.argv[2]):
    m = re.match(r"\s*LAYER\s+MAP\s+(\d+)\s+DATATYPE"
                 r"\s+(\d+)\s+\d+", line, re.I)
    if m:
        mapped.add((int(m[1]), int(m[2])))
        continue
    m = re.match(r"\s*LAYER\s+\w+\s+(\d+)\s*$", line, re.I)
    if m:
        whole.add(int(m[1]))

missing = sorted(p for p in drawn
                 if p not in mapped and p[0] not in whole)
for lay, dt in missing:
    print(f"not in deck: {lay};{dt}")
sys.exit(1 if missing else 0)

It ignores datatype ranges and include files, so treat its output as a list to review, not a verdict. The same idea applies to the extraction mapping file. After the maps agree, run a golden layout: a test cell with known intentional violations next to known-clean structures. If the deck misses an intentional error or flags a clean area, the configuration is wrong. The test takes about 30 minutes and can save weeks of debugging later.

Step 5: extraction

StarRC, Quantus and Calibre xRC each need the technology file that matches the PDK release and a mapping from deck layers to extraction layers. Extract a small reference structure (a resistor, a MOM capacitor, a routed net of known length) and compare against the values the foundry documents. A mapping error usually shows up as a missing or doubled capacitance, which is easy to see on a structure you understand.

Version mismatches and partial updates

Foundries sometimes ship a fixed rule deck or a model update without changing the overall PDK version. If you update the techfile but not the deck, or the models but not the extraction files, results become inconsistent in ways that are hard to trace. Track each component's revision separately, record them in a manifest next to the install, and rerun the regression after any partial update. The process for rolling updates into live projects is covered in handling foundry PDK updates.

Release management at scale

With several nodes or design sites, keep development kits separate from qualified kits and publish a compatibility matrix that lists which Virtuoso, Spectre, Calibre and extraction versions each PDK release was validated with. Keep old releases installed for projects that are still active, deploy new ones to all sites from one validated install, and commit every setup-script change (a variable, a map edit, a deck path) to version control so a designer's PDK issue can be traced to the change that caused it.

SkyCadEda specializes in PDK setup and development for custom IC teams, and with automation scripts and a defined process we cut setup from weeks to days. See our PDK setup services.

Frequently asked questions

What is a PDK in semiconductor design?

A Process Design Kit (PDK) is the set of files a foundry ships so EDA tools can use its process: a technology file with layers and rules, device models with corners, DRC/LVS/antenna rule decks, extraction technology files, CDF data, symbols and PCells for the supported devices, and documentation.

How long does PDK setup typically take?

Manual PDK setup for a new technology node can take 2-4 weeks when done from scratch, including techfile configuration, display setup, tool integration and validation. With automation scripts and a defined process, the same setup can be completed in 1-2 days, and recurring foundry updates take hours instead of days.

Can one PDK serve multiple EDA tool vendors?

Partly. Foundries usually ship separate Cadence, Synopsys and Siemens variants built from the same process data. Interoperable PDKs (iPDKs) go further: they use the OpenAccess database, PyCells and Tcl-based CDF so one kit runs in Virtuoso, Custom Compiler and other OpenAccess editors. Either way, the CAD team must check that layer maps and device names agree across the techfile, rule decks and extraction files.

Does SkyCadEda provide PDK setup services?

Yes. We configure techfiles, build validation scripts, automate PDK deployment across your infrastructure and maintain PDKs through foundry update cycles. Our services cover TSMC, GlobalFoundries, Samsung and other major foundries across nodes from 180nm to advanced FinFET.

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.