Skip to main content

Updated 3 min readCadence Virtuoso

Virtuoso schematic automation with SKILL

Automate Cadence Virtuoso schematics with SKILL: place instances with schCreateInst, set CDF parameters, add pins, run schCheck, and script ADE Assembler setup.

By the SkyCadEda engineering teamHow these notes are written

  • Cadence Virtuoso
  • SKILL
  • Schematic Automation
  • EDA Automation

ShareLinkedInX

On this page

Virtuoso schematic automation is SKILL that creates and edits schematic views: placing PDK devices, setting their CDF parameters, adding pins and wires, then checking and saving. It pays off for structures that follow a rule, such as bias trees, device arrays, unit-cell banks and test benches generated for many cells at once.

Why schematic automation matters

Hand-built schematics of repetitive structures drift: a finger count differs on one device, a pin is named vbias in one cell and VBIAS in the next, a dummy is missing. Generating them from a script, with the rule in one place, removes that class of error and makes the next revision a rerun instead of an edit session.

A minimal SKILL example

This creates a schematic with four NMOS devices in a row, sets their width through CDF, checks and saves. Library, cell and parameter names depend on your PDK.

let((cv nch inst)
  cv   = dbOpenCellViewByType("myLib" "nArray4" "schematic" "schematic" "a")
  nch  = dbOpenCellViewByType("pdkLib" "nch" "symbol")
  unless(cv && nch error("cannot open cellviews"))

  for(i 0 3
    inst = schCreateInst(cv nch sprintf(nil "M%d" i) list(i*1.0 0) "R0")
    cdfGetInstCDF(inst)~>w~>value = "1u")   ; parameter name is PDK-specific

  ; pins (schCreatePin) and wires (schCreateWire) are added here;
  ; check their argument lists in the SKILL reference for your release

  schCheck(cv)
  dbSave(cv)
  dbClose(cv))

Setting a CDF value this way does not run the parameter's callback (see the FAQ), so for PDK devices with derived parameters, either set them all or call the callbacks, and compare the generated netlist with a hand-placed reference device.

Core automation use cases

  • Generating arrays, bias trees and unit-cell banks from a table of sizes.
  • Bulk parameter edits: changing a device model, finger count or multiplier across a library.
  • Pin and label audits: pins that are missing, have the wrong direction, or differ between schematic and symbol.
  • Library audits: instances whose master comes from the wrong library or an old PDK version (inst~>libName, inst~>cellName).
  • Running schCheck and a netlist on every cell in a library before a release.

SKILL, CDF, and PDK integration

Each PDK device's CDF defines its parameters, defaults, units and callbacks. Scripts should read parameter names from the CDF (cdfGetInstCDF(inst)~>parameters~>name) rather than assume them, check that every placed master exists in the expected library, and stop with a clear message when a library or device is missing instead of skipping it. Log every change so a designer can see what the script did to their cell.

Simulation and netlisting workflows

Current Virtuoso releases manage simulation setup in ADE Explorer and ADE Assembler (maestro views). Their SKILL API (the mae-prefixed functions in the Virtuoso ADE SKILL reference) covers opening a maestro setup and setting design variables and corners, so setup for many test benches can be scripted. The older ADE L state files are a legacy mechanism; prefer maestro views for new work.

Before handing a generated cell to simulation, check for floating pins, unconnected supplies and unset parameters. These checks are cheap compared with a failed overnight corner run.

Practices for maintainable flows

  • Keep database edits, checks, reporting and form or menu code in separate functions.
  • Use an uppercase project prefix for function names (SkyBuildArray) so they cannot collide with Cadence's lowercase prefixes.
  • Wrap edits in errset and save only when the edit succeeded.
  • Test on small reference cells, keep the code in Git, and release it with a version number.

For layout-side SKILL, see Virtuoso layout automation with SKILL. We write this kind of code as part of our Cadence SKILL scripting services.

Frequently asked questions

Which SKILL functions create schematic objects?

The sch* family: schCreateInst places an instance of a symbol, schCreateWire draws wires, schCreatePin adds a pin using a pin symbol from the basic library, and schCheck runs the connectivity and rule check that Check and Save performs. Open and save the cellview with dbOpenCellViewByType and dbSave as for any other view.

Does setting a CDF parameter from SKILL run its callback?

No. Assigning cdfGetInstCDF(inst)~>w~>value changes the value but does not fire the parameter callback the form would run, so dependent parameters (finger width, area, perimeter) can be left stale. Either set every dependent parameter yourself or invoke the PDK callbacks explicitly, and check the result with a netlist.

Can schematic automation reduce tape-out risk?

It catches a class of errors early: wrong library or device names, missing pins, floating nets, unset parameters, inconsistent naming. Running schCheck and a netlist on every generated cell before it reaches simulation or layout is the simplest version.

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.