Skip to content

CIF

CIF (Caltech Intermediate Format) is a human-readable text format for IC layout data, widely used in academic and research environments.

Format Summary

PropertyValue
Extensions.cif
EncodingASCII
Import
Export
LicenseBasic
HierarchySymbol definitions (DS/DF) with calls (C)
LayersNamed layers (L command)

Import Options

Units

OptionDescriptionDefault
CIF standard1/100 micronsSelected
CADENCE1/1000 microns

Text

OptionDescriptionDefault
Ignore textSkip 94-extension text recordsOff
Text sizeDefault text height in CIF units1000
Vertical alignmentTop, Middle, Base Line, BottomMiddle
Horizontal alignmentLeft, Center, RightCenter

Export Options

CIF Dialect

LinkCAD can produce CIF output compatible with specific tools:

DialectDescription
CADENCECADENCE Virtuoso compatibility
CompassCompass Design Automation
CleWinCleWin layout editor (supports donuts/scaling)
ElectricElectric VLSI Design System
IE3DZeland IE3D electromagnetic simulator
L-EditTanner L-Edit
CustomUser-defined settings

Geometry

OptionDescriptionDefault
Arc segmentsSegments per 360° for circle approximation72
Box records (B)Write rectangular shapes as CIF boxesOn
Wire records (W)Write polylines as CIF wiresOn
Roundflash (R)Write circles as roundflash recordsOn
Vertex limitSplit polygons exceeding vertex countOff
FlattenRemove symbol hierarchyOff

Format

OptionDescriptionDefault
CIF unitsStandard (1/100 µm) or CADENCE (1/1000 µm)Standard
Line endingsDOS/Windows or UNIXDOS
Max layer name lengthTruncate layer namesUnlimited
Header textCustom comment in file header
Space after DSAdd space after symbol definition keywordDialect-dependent
Space after LAdd space after layer keywordDialect-dependent

Common Workflows

GDSII → CIF

Convert binary GDSII to human-readable CIF for academic tool chains or manual inspection.

CIF → GDSII

Convert CIF designs to GDSII for commercial fabrication.

CIF → DXF

Convert CIF layout data to DXF for viewing in general-purpose CAD tools.

Technical Notes

  • CIF is a purely text-based format — files can be edited with any text editor
  • Coordinates are integers in the chosen unit system
  • Symbol hierarchy uses DS (Define Symbol) and DF (End Definition) commands
  • Cell references use the C (Call) command with optional transformation
  • The 94-extension adds text support (not part of the original CIF specification)

CLI / Command-File Options

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

Import

KeyTypeDescription
CifInUnitsCentsflagUse centimicrons (CADENCE mode)
CifInIgnoreTextflagIgnore text primitives
CifInFontSizeUnitsintFont size unit enum (see Units)
CifInFontSizeValuefloatFont size value
CifInFontAnchorHintFont horizontal anchor — 0=left, 1=center, 2=right
CifInFontAnchorVintFont vertical anchor — 0=top, 1=middle, 2=baseline, 3=bottom

Export

KeyTypeDescription
CifOutFlavourintCIF dialect (0=Custom, 1=CADENCE, …)
CifOutUnitsCentsflagUse centimicrons
CifOutFlattenflagFlatten hierarchy
CifOutCleModeflagCLE mode output
CifOutUseBoxflagUse box primitive
CifOutUseWireflagUse wire primitive
CifOutUseRoundflagUse round flash
CifOutSplitPolygonsflagSplit polygons at vertex limit
CifOutPolygonLimitintMaximum vertices per polygon
CifOutNoGlobalCellflagDo not create global cell
CifOutLinefeedflagAdd linefeeds to output
CifOutHeaderstringFile header comment
CifOutLayerNameLengthintMax layer name length
CifOutScaleDSflagScale DS command
CifOutSpaceDSflagSpace after DS command
CifOutSpaceLflagSpace after L command