Skip to main content

Updated 4 min readCustom IC

Custom IC design automation

Custom IC design automation in practice: SKILL for Virtuoso data, OCEAN for simulation, Python for reports, with examples and rules for trustworthy scripts.

By the SkyCadEda engineering teamHow these notes are written

  • Custom IC
  • EDA Automation
  • Analog Design
  • SKILL
  • Python

ShareLinkedInX

On this page

Custom IC design automation means scripting the repetitive work around analog, RF and mixed-signal design (testbench setup, corner sweeps, device arrays, verification launch, report collection) while the circuit and layout decisions stay with engineers. In a Cadence flow that usually means SKILL inside Virtuoso, OCEAN for batch simulation, and Python or shell around them.

Where manual custom IC flows break down

Manual flows look fine for one block and become fragile across corners, derivatives and node migrations. Testbenches get copied and edited by hand, layouts are renamed manually, DRC runs on a few selected cells, and results end up in spreadsheets. The cost is not only time: setups drift between designers, PDK assumptions go stale, corners get missed, and when a tape-out review asks how a number was produced nobody can regenerate it.

Map the manual flow before scripting

The most common automation failure is scripting a broken process. Write down the current flow end to end: which tool opens which view, which settings are typed from memory, which checks run in which order. The expensive steps are rarely the simulations themselves; they are the surrounding choreography of copying testbenches, renaming cells, reconciling netlist views and exporting results. The map also shows the decisions that genuinely need a human. Automate the mechanical steps and present the decisions, instead of hiding both inside one script.

Pick the layer for each task

  • Anything that reads or writes the design database (instances, shapes, CDF parameters, labels, constraints) belongs in the tool-native language: SKILL/SKILL++ in Virtuoso, Tcl in Synopsys Custom Compiler.
  • Simulation setup and batch runs: OCEAN (SKILL-based) or the ADE Assembler/Explorer setup, with the netlist and results directories under version control.
  • Files, reports, schedules and dashboards: Python and shell, talking to the tools through plain files (CSV, JSON, the PSF results exported to text).

Keeping database edits in SKILL and file processing in Python means a tool upgrade does not break your report parser and a Python refactor cannot corrupt a layout generator.

SKILL: audit device parameters in a schematic

A read-only check is a safe first script. This one lists every instance with its W and L CDF values. Parameter names (w, l) vary by PDK; check them in the device CDF first.

; List W/L of every device in a schematic (read-only)
procedure(SkListDeviceSizes(lib cell)
    let((cv cdf)
        cv = dbOpenCellViewByType(lib cell "schematic" nil "r")
        unless(cv error("Cannot open %s/%s/schematic" lib cell))
        foreach(inst cv~>instances
            cdf = cdfGetInstCDF(inst)
            when(cdf && cdf~>w && cdf~>l
                printf("%-12s %-12s w=%L l=%L\n"
                    inst~>name inst~>cellName cdf~>w~>value cdf~>l~>value)))
        dbClose(cv)
        t))

SkListDeviceSizes("myLib" "opamp")

More SKILL patterns (database queries, forms, PCells) are in the Cadence SKILL tutorial.

OCEAN: a batch AC run

OCEAN scripts replay a simulation without the GUI, which makes them easy to put in a regression. Paths, the model file and the output net are placeholders:

simulator('spectre)
design("./sim/opamp_tb/spectre/schematic/netlist/netlist")
resultsDir("./sim/opamp_tb/spectre/schematic")
modelFile('("/path/to/pdk/models/spectre/models.scs" "tt"))
desVar("vdd" 1.8)
analysis('ac ?start 1 ?stop 1e9 ?dec 20)
run()
selectResult('ac)
ocnPrint(?output "ac_gain.txt" dB20(VF("/out")))

Run it with ocean -nograph < ac_run.ocn, loop over corners in OCEAN or from a shell wrapper, and let a Python script read the text output and produce the corner table designers actually look at.

Layout automation for analog blocks

Analog layout cannot be automated like digital place and route, but the repetitive parts can: matched device arrays, dummies, wells and guard rings, repetitive pin routing, common-centroid patterns and label naming. In Virtuoso that is SKILL utilities plus Modgen and constraints in Layout XL; PCells cover the device level. Intent checks for the result are covered in constraint-driven analog layout review.

Make every script check its own work

  • Check inputs: library, cell, view and technology files exist and follow naming conventions.
  • Check outputs: a generated layout passes the expected DRC subset, a generated netlist matches its schematic, a measurement export contains every expected signal and no empty values.
  • Print a short summary of what was verified, and exit nonzero when something could not be verified.
  • Offer a dry-run mode for anything that writes to the database, and document the manual way to do the same step for when the script cannot be used.

Version the flow, not just the design

Most teams version schematics and layout through a design management system but leave scripts in shared directories or home areas. When a measurement shifts between tape-outs, the first question is whether the design or the flow changed, and without script history that cannot be answered. Keep scripts, configuration and measurement baselines in a repository, review changes, tag versions at milestones, and write the flow version into every run report. Pin tool versions through one environment setup script, and never depend on a user's shell state or .cdsinit customizations. See design data management in custom IC flows for the design-data side.

A sensible order

Start with narrow, frequent pain points: a simulation regression launcher, a DRC/LVS wrapper with a report parser, a pin naming audit, a PDK parameter validator. Give each tool an owner, usage examples and a way to roll back. Larger generators come after the team trusts the small tools.

We write SKILL, OCEAN and Python automation for custom IC teams; see layout automation services.

Frequently asked questions

Which custom IC tasks are worth automating first?

High-frequency mechanical work: testbench and corner setup, simulation regression launch and result collection, matched device arrays and guard rings, pin and label naming audits, PDK parameter checks, DRC/LVS launch and report parsing, and release packaging.

Should custom IC teams use SKILL, Tcl, or Python?

Usually all of them. SKILL (and SKILL++) is the native language of Cadence Virtuoso and is the right layer for anything that touches the design database. Tcl is the scripting language of Synopsys Custom Compiler and most implementation and verification tools. Python is best for orchestration, parsing and reporting outside the tools.

How do you stop automation scripts from failing silently?

Validate inputs before starting, check outputs against expected invariants afterwards, print a short summary of what was actually verified, and exit nonzero when a check could not be completed. A script that cannot verify its result should never report success.

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.