Updated 3 min readNetlists
CDL netlist format vs SPICE and Verilog
CDL netlist format explained with examples: subcircuits, device lines, PININFO, globals, and how CDL differs from SPICE, Spectre and Verilog netlists for LVS.
By the SkyCadEda engineering teamHow these notes are written
On this page
A custom IC block usually exists as three netlists: SPICE or Spectre for simulation, CDL for LVS, and structural Verilog for digital integration. CDL is SPICE syntax trimmed to connectivity and device parameters, with LVS directives written as special comments. Most netlist bugs come from small differences between these views: pin order, bus brackets, global supplies and device names.
The same inverter in three formats
CDL, as an LVS tool such as Calibre reads it:
*.SCALE METER
.SUBCKT inv A Y VDD VSS
*.PININFO A:I Y:O VDD:B VSS:B
MP1 Y A VDD VDD pch W=1u L=0.1u
MN1 Y A VSS VSS nch W=0.5u L=0.1u
.ENDSDevice lines are name, terminals (drain, gate, source, bulk for a MOSFET), model or device name, parameters. *.PININFO records pin directions (I, O, B) and *.SCALE METER tells the reader that dimensions are in meters; both are comments to a simulator.
Spectre native syntax for simulation, which needs model files included separately:
subckt inv A Y VDD VSS
MP1 (Y A VDD VDD) pch w=1u l=0.1u
MN1 (Y A VSS VSS) nch w=0.5u l=0.1u
ends invHSPICE uses the same .SUBCKT syntax as the CDL above, with a model library added in the testbench, for example .lib 'models.lib' tt. Structural Verilog sees only the cell boundary:
module inv (A, Y, VDD, VSS);
input A;
output Y;
inout VDD, VSS;
endmodule
// instantiation in a top-level netlist
inv u_inv0 (.A(n1), .Y(n2), .VDD(VDD), .VSS(VSS));What each format is for
| Format | Main consumer | Carries |
|---|---|---|
| CDL | LVS (Calibre, Pegasus, PVS, IC Validator) | Connectivity, device names and LVS-compared parameters, pin directions |
| SPICE / Spectre | Simulators (Spectre, HSPICE, Eldo, ngspice) | Connectivity plus models, sources, analyses, options |
| Structural Verilog | Digital integration, P&R, STA, mixed-signal simulation | Cell and port connectivity, no device detail |
Three classic breakages
- Pin order. SPICE and CDL connect subcircuit instances by position. If a symbol's pin order and the subcircuit header disagree, the netlist is wrong without any error. Verilog with named connections (
.A(n1)) avoids this; positional Verilog does not. - Bus notation. Virtuoso writes bus bits as
A<0>; Verilog usesA[0]. Translators and LVS options have to map one to the other consistently, or every bus pin mismatches. - Global supplies. A schematic that uses the global net
vdd!produces a netlist with no supply ports on the subcircuit, while the layout or the Verilog wrapper has explicitVDDpins. Decide per library whether supplies are globals or ports, and set LVS options to match (in Calibre,LVS GLOBALS ARE PORTS).
Smaller ones: device names that differ between the simulation view and the auCdl view, parameters netlisted in different units, and .INCLUDE paths pointing at one engineer's home directory.
Generating CDL from Virtuoso
Interactively, CDL comes from the CIW export (CDL Out). The same netlister can also run in batch from the command line with saved settings, which makes the export repeatable and scriptable. The PDK's auCdl views and CDF parameters decide which device name and parameters appear on each line, so a PDK update can change the CDL without any schematic edit. Archive the netlister settings with the design and diff the generated netlist after every PDK or library change.
On the LVS side, statements such as Calibre's LVS BOX (treat a cell as a black box) and the global-net options above have to agree with how the netlist was written. A mismatch here produces long lists of false LVS errors.
Checks worth automating
- Top cell present and unique; no duplicate subcircuit definitions.
- Pin order of every subcircuit matches its symbol or Verilog module.
- Global net policy applied consistently (globals or ports, not a mix).
- Every device name is one the LVS rule deck recognises.
- All include and model paths resolve on the farm, not only on a workstation.
- Bus notation consistent within each netlist.
A short Python or Perl script can run these on every exported netlist before it reaches simulation or LVS. SkyCadEda supports these workflows with EDA scripting, physical verification knowledge and CAD infrastructure experience, and our Scheture schematic capture tool handles netlist translation between these formats.
Frequently asked questions
What is a CDL netlist?
CDL (Circuit Description Language) is a SPICE-like text netlist used mainly as the source netlist for LVS. It uses SPICE .SUBCKT and device-line syntax, plus comment-style directives such as *.PININFO and *.SCALE that LVS tools read. In Virtuoso it is written by the CDL netlister (CDL Out, or the same netlister in batch), usually from the auCdl views of the PDK devices.
What is the difference between CDL and SPICE netlists?
Both describe transistor-level connectivity with subcircuits and device lines. A simulation SPICE netlist also carries model libraries, sources, analyses and simulator options; a CDL netlist carries only connectivity and the device parameters LVS compares, plus LVS directives hidden in comments. A simulator can usually read a CDL file, but an LVS tool will not use the simulation setup.
What causes most netlist translation failures?
Pin order that differs between a symbol and its subcircuit, bus notation (<0> versus [0]), global supplies (vdd!) versus explicit supply ports, device or model names that differ between the simulation and LVS views, parameter units, and include paths that only exist on one machine.
Related reading
- productScheture schematic capture and netlist translation
- noteLayout versus schematic checks
- noteDebugging LVS shorts and opens
- servicePhysical verification services
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.