Skip to content

GDSII

GDSII (Graphic Data System II) is the de-facto industry standard for IC mask layout data exchange. Originally developed by Calma Company in the 1970s, it uses a binary format with hierarchical cell structures.

Format Summary

PropertyValue
Extensions.gds, .gdsii
EncodingBinary
Import
Export
LicenseBasic
HierarchyFull cell hierarchy with SREFs and AREFs
LayersNumeric layers (0–65535) with datatypes (0–65535)

Import Options

OptionDescriptionDefault
Ignore text elementsSkip TEXT records during importOff
Font sizeSize for imported text elementsAuto
Font size unitsUnits for the font size valueMicron

Supported Features

  • All GDSII record types (BOUNDARY, PATH, SREF, AREF, TEXT, NODE, BOX)
  • Full hierarchy preservation with cell references
  • Layer numbers and datatypes
  • Text labels with positioning
  • Path elements with end treatments (flush, half-round, extended)
  • Array references (AREF) with row/column expansion
  • Custom properties and attributes

Export Options

OptionDescriptionDefault
Database unitsInternal coordinate resolution1 nm
User unitsDisplay units written to the GDSII header1 µm
PrecisionCoordinate resolution1 nm
Flatten hierarchyExpand all cell referencesOff
Explode textConvert text to polygonsOff
Split polygonsMaximum vertices per polygon (GDSII limit: 8191)8191
Pad to boundaryPad output to even byte boundaryOn

Common Workflows

GDSII → DXF

Standard IC-to-mechanical conversion. Set DXF output units to match your target CAD system (typically millimeters or inches).

GDSII → Gerber

Convert IC mask data to photoplotter format for PCB-style fabrication.

GDSII → CIF

Convert to the human-readable CIF format for academic or legacy tool chains.

GDSII → GDS-TXT

Produce a text representation for manual inspection, scripting, or diff.

Technical Notes

  • GDSII coordinates are stored as 32-bit integers in database units
  • Database unit resolution is typically 1 nm (nanometer)
  • Maximum polygon vertex count per element is 8191
  • Layer numbers range from 0 to 65535; datatypes from 0 to 65535
  • File size limit: none (streaming I/O)
  • Timestamps in GDSII headers are preserved during round-trip conversion

CLI / Command-File Options

These option keys can be used on the command line or in command files.

Import

KeyTypeDescription
GdsInIgnoreTextflagIgnore text elements
GdsInIgnoreDataTypesflagIgnore GDSII data types
GdsInFontSizeUnitsintFont size unit enum (see Units)
GdsInFontSizeValuefloatFont size value

Export

KeyTypeDescription
GdsOutDbScalingUnitsintDatabase scaling unit enum (see Units); default: Nanometer
GdsOutDbScalingValuefloatDatabase scaling value
GdsOutFontSizeValuefloatExport font size multiplier
GdsOutPadflagZero-pad output records