View Library Table of Contents Previous Next Open PDF to print book Email Comments Help Using Documentation Shut Down Cadence Documentation Server


LEF 5.8 C/C++ Programming Interface (Open Licensing Program)


Contents

Preface

What's New

Related Documents

Typographic and Syntax Conventions

1

Introduction

Overview

LEF Reader Working Modes

Comparison Utility

Compressed LEF Files

Orientation Codes

2

LEF Reader Setup and Control Routines

Calling the API Routines

LEF API Routines

lefrInit
lefrInitSession
lefrClear
lefrGetUserData
lefrPrintUnusedCallbacks
lefrRead
lefrRegisterLef58Type
lefrReset
lefrSetCommentChar
lefrSetRegisterUnusedCallbacks
lefrSetShiftCase
lefrSetUserData
lefrSetVersionValue
Examples

3

LEF Reader Callback Routines

Callback Function Format

Callback Type
LEF_Data
User Data

Callback Types and Setting Routines

Examples

User Callback Routines

lefrDensityCbkFnType
lefrDoubleCbkFnType
lefrIntergerCbkFnType
lefrLayerCbkFnType
lefrMacroCbkFnType
lefrMacroForeignCbkFnType
lefrMacroNumCbkFnType
lefrMacroSiteCbkFnType
lefrMaxStackViaCbkFnType
lefrNonDefaultCbkFnType
lefrObstructionCbkFnType
lefrPinCbkFnType
lefrPropCbkFnType
lefrSiteCbkFnType
lefrSpacingCbkFnType
lefrStringCbkFnType
lefrUnitsCbkFnType
lefrUseMinSpacingCbkFnType
lefrViaCbkFnType
lefrViaRuleCbkFnType
lefrVoidCbkFnType
Examples

4

LEF Reader Classes

Introduction

Callback Style Interface

Retrieving Repeating LEF Data

Deriving C Syntax from C++ Syntax

C++ Syntax
C Syntax

LEF Reader Classes

Layer Classes

lefiAntennaModel
lefiAntennaPWL
lefiInfluence
lefiLayer
lefiLayerDensity
lefiOrthogonal
lefiParallel
lefiSpacingTable
lefiTwoWidths

Macro Data Classes

lefiDensity
lefiMacro
lefiMacroForeign
lefiMacroSite
lefiPoints
Macro Examples

Macro Obstruction Class

lefiObstruction
Macro Obstruction Examples

Macro Pin Classes

lefiPin
lefiPinAntennaModel
lefiGeometries
lefiGeomEnum
lefiGeomRect
lefiGeomRectIter
lefiGeomPath
lefiGeomPathIter
lefiGeomPolygon
lefiGeomPolygonIter
lefiGeomVia
lefiGeomViaIter
Macro Pin Examples

Maximum Via Stack Class

lefiMaxStackVia

Miscellaneous Class

lefiUserData

Nondefault Rule Class

lefiNonDefault
Nondefault Rule Examples

Property Definition Classes

lefiProp
lefiPropType
Property Definition Examples

Same-Net Spacing Class

lefiSpacing
Same-Net Spacing Examples

Site Classes

lefiSite
lefiSitePattern
Site Examples

Units Class

lefiUnits
Units Examples

Use Min Spacing Class

lefiUseMinSpacing

Via Classes

lefiVia
lefiViaLayer
Via Examples

Via Rule Classes

lefiViaRule
lefiViaRuleLayer
Via Rule Examples

5

LEF Writer Callback Routines

Callback Function Format

Callback Type
User Data

Callback Types and Setting Routines

6

LEF Writer Routines

LEF Writer Setup and Control

lefwInit
lefwEnd
lefwCurrentLineNumber
lefwNewLine
lefwPrintError
Setup Examples

Bus Bit Characters

lefwBusBitChars
Bus Bit Characters Example

Clearance Measure

lefwClearanceMeasure

Divider Character

lefwDividerChar
Divider Character Examples

Extensions

lefwStartBeginext
lefwEndBeginext
lefwBeginextCreator
lefwBeginextDate
lefwBeginextRevision
lefwBeginextSyntax
Extensions Examples

Layer (Cut, Masterslice, Overlap, Implant)

Defining Masterslice and Overlap Layers
Defining Cut Layers
Defining Implant Layers
lefwStartLayer
lefwEndLayer
lefwLayerACCurrentDensity
lefwLayerACCutarea
lefwLayerACFrequency
lefwLayerACTableEntries
lefwLayerAntennaAreaFactor
lefwLayerAntennaAreaRatio
lefwLayerAntennaCumAreaRatio
lefwLayerAntennaCumDiffAreaRatio
lefwLayerAntennaCumDiffAreaRatioPwl
lefwLayerAntennaDiffAreaRatio
lefwLayerAntennaDiffAreaRatioPwl
lefwLayerAntennaModel
lefwLayerArraySpacing
lefwLayerCutSpacing
lefwLayerCutSpacingAdjacent
lefwLayerCutSpacingArea
lefwLayerCutSpacingCenterToCenter
lefwLayerCutSpacingEnd
lefwLayerCutSpacingLayer
lefwLayerCutSpacingParallel
lefwLayerCutSpacingSamenet
lefwLayerCutSpacingTableOrtho
lefwLayerDCCurrentDensity
lefwLayerDCCutarea
lefwLayerDCTableEntries
lefwLayerEnclosure
lefwLayerEnclosureLength
lefwLayerEnclosureWidth
lefwLayerPreferEnclosure
lefwLayerResistancePerCut
lefwLayerWidth
Layer Examples

Layer (Routing)

lefwStartLayerRouting
lefwEndLayerRouting
lefwDensityCheckStep
lefwDensityCheckWindow
lefwFillActiveSpacing
lefwLayerACCurrentDensity
lefwLayerACFrequency
lefwLayerACTableEntries
lefwLayerACWidth
lefwLayerAntennaAreaDiffReducePwl
lefwLayerAntennaAreaFactor
lefwLayerAntennaAreaMinusDiff
lefwLayerAntennaAreaRatio
lefwLayerAntennaCumAreaRatio
lefwLayerAntennaCumDiffAreaRatio
lefwLayerAntennaCumDiffAreaRatioPwl
lefwLayerAntennaCumDiffSideAreaRatio
lefwLayerAntennaCumDiffSideAreaRatioPwl
lefwLayerAntennaCumSideAreaRatio
lefwLayerAntennaCumRoutingPlusCut
lefwLayerAntennaDiffAreaRatio
lefwLayerAntennaDiffAreaRatioPwl
lefwLayerAntennaDiffSideAreaRatio
lefwLayerAntennaDiffSideAreaRatioPwl
lefwLayerAntennaGatePlusDiff
lefwLayerAntennaModel
lefwLayerAntennaSideAreaFactor
lefwLayerAntennaSideAreaRatio
lefwLayerDCCurrentDensity
lefwLayerDCTableEntries
lefwLayerDCWidth
lefwLayerRouting
lefwLayerRoutingArea
lefwLayerRoutingCapacitance
lefwLayerRoutingCapMultiplier
lefwLayerRoutingDiagMinEdgeLength
lefwLayerRoutingDiagPitch
lefwLayerRoutingDiagPitchXYDistance
lefwLayerRoutingDiagSpacing
lefwLayerRoutingDiagWidth
lefwLayerRoutingEdgeCap
lefwLayerRoutingHeight
lefwLayerRoutingMaxwidth
lefwLayerRoutingMinenclosedarea
lefwLayerRoutingMinimumcut
lefwLayerRoutingMinimumcutConnections
lefwLayerRoutingMinimumcutLengthWithin
lefwLayerRoutingMinimumcutWithin
lefwLayerRoutingMinsize
lefwLayerRoutingMinstep
lefwLayerRoutingMinstepMaxEdges
lefwLayerRoutingMinstepWithOptions
lefwLayerRoutingMinwidth
lefwLayerRoutingOffset
lefwLayerRoutingOffsetXYDistance
lefwLayerRoutingPitch
lefwLayerRoutingPitchXYDistance
lefwLayerRoutingProtrusion
lefwLayerRoutingResistance
lefwLayerRoutingShrinkage
lefwLayerRoutingSpacing
lefwLayerRoutingSpacingEndOfLine
lefwLayerRoutingSpacingEOLParallel
lefwLayerRoutingSpacingEndOfNotchWidth
lefwLayerRoutingSpacingLengthThreshold
lefwLayerRoutingSpacingNotchLength
lefwLayerRoutingSpacingRange
lefwLayerRoutingSpacingRangeInfluence
lefwLayerRoutingSpacingRangeRange
lefwLayerRoutingSpacingRangeUseLengthThreshold
lefwLayerRoutingSpacingSameNet
lefwLayerRoutingStartSpacingtableInfluence
lefwLayerRoutingStartSpacingInfluenceWidth
lefwLayerRoutingStartSpacingtableParallel
lefwLayerRoutingStartSpacingtableParallelWidth
lefwLayerRoutingStartSpacingtableTwoWidths
lefwLayerRoutingStartSpacingtableTwoWidthsWidth
lefwLayerRoutingEndSpacingtable
lefwLayerRoutingThickness
lefwLayerRoutingWireExtension
lefwMaxAdjacentSlotSpacing
lefwMaxCoaxialSlotSpacing
lefwMaxEdgeSlotSpacing
lefwMaximumDensity
lefwMinimumDensity
lefwSlotLength
lefwSlotWidth
lefwSlotWireLength
lefwSlotWireWidth
lefwSplitWireWidth
Routing Layer Examples

Macro

lefwStartMacro
lefwEndMacro
lefwMacroClass
lefwMacroEEQ
lefwMacroForeign
lefwMacroForeignStr
lefwMacroOrigin
lefwMacroSite
lefwMacroSitePattern
lefwMacroSitePatternStr
lefwMacroSize
lefwMacroSymmetry
lefwStartMacroDensity
lefwMacroDensityLayerRect
lefwEndMacroDensity
Macro Examples

Macro Obstruction

lefwStartMacroObs
lefwEndMacroObs
lefwMacroObsDesignRuleWidth
lefwMacroObsLayer
lefwMacroObsLayerPath
lefwMacroObsLayerPolygon
lefwMacroObsLayerRect
lefwMacroObsLayerWidth
lefwMacroObsVia
Macro Obstruction Examples

Macro Pin

lefwStartMacroPin
lefwEndMacroPin
lefwMacroPinAntennaDiffArea
lefwMacroPinAntennaGateArea
lefwMacroPinAntennaMaxAreaCar
lefwMacroPinAntennaMaxCutCar
lefwMacroPinAntennaMaxSideAreaCar
lefwMacroPinAntennaModel
lefwMacroPinAntennaPartialCutArea
lefwMacroPinAntennaPartialMetalArea
lefwMacroPinAntennaPartialMetalSideArea
lefwMacroPinDirection
lefwMacroPinGroundSensitivity
lefwMacroPinMustjoin
lefwMacroPinNetExpr
lefwMacroPinShape
lefwMacroPinSupplySensitivity
lefwMacroPinTaperRule
lefwMacroPinUse
Macro Pin Examples

Macro Pin Port

lefwStartMacroPinPort
lefwEndMacroPinPort
lefwMacroPinPortDesignRuleWidth
lefwMacroPinPortLayer
lefwMacroPinPortLayerPath
lefwMacroPinPortLayerPolygon
lefwMacroPinPortLayerRect
lefwMacroPinPortLayerWidth
lefwMacroPinPortVia
Macro Pin Port Examples

Manufacturing Grid

lefwManufacturingGrid

Maximum Via Stack

lefwMaxviastack

Nondefault Rule

lefwStartNonDefaultRule
lefwEndNonDefaultRule
lefwNonDefaultRuleHardspacing
lefwNonDefaultRuleLayer
lefwNonDefaultRuleMinCuts
lefwNonDefaultRuleStartVia
lefwNonDefaultRuleEndVia
lefwNonDefaultRuleUseVia
lefwNonDefaultRuleUseViaRule
Nondefault Rules Example

Property

lefwIntProperty
lefwRealProperty
lefwStringProperty
Property Example

Property Definitions

lefwStartPropDef
lefwEndPropDef
lefwIntPropDef
lefwRealPropDef
lefwStringPropDef
Property Definitions Examples

Same-Net Spacing

lefwStartSpacing
lefwEndSpacing
lefwSpacing
Same-Net Spacing Examples

Site

lefwSite
lefwEndSite
lefwSiteRowPattern
lefwSiteRowPatternStr
Site Examples

Units

lefwStartUnits
lefwEndUnits
lefwUnits
lefwUnitsFrequency
Units Examples

Use Min Spacing

lefwUseMinSpacing

Version

lefwVersion
Version Examples

Via

lefwStartVia
lefwEndVia
lefwViaLayer
lefwViaLayerPolygon
lefwViaLayerRect
lefwViaResistance
lefwViaViarule
lefwViaViaruleOffset
lefwViaViaruleOrigin
lefwViaViarulePattern
lefwViaViaruleRowCol
Via Examples

Via Rule

lefwStartViaRule
lefwEndViaRule
lefwViaRuleLayer
lefwViaRuleVia
Via Rule Examples

Via Rule Generate

lefwStartViaRuleGen
lefwEndViaRuleGen
lefwViaRuleGenDefault
lefwViaRuleGenLayer
lefwViaRuleGenLayer3
lefwViaRuleGenLayerEnclosure
Via Rule Generate Examples

7

LEF Compressed File Routines

lefGZipOpen
lefGZipClose
Example

8

LEF File Comparison Utility

lefdefdiff
Example

A

LEF Reader and Writer Examples

LEF Reader Program

LEF Writer Program


Return to top of page

View Library Table of Contents Previous Next Open PDF to print book Email Comments Help Using Documentation Shut Down Cadence Documentation Server

For support, see Cadence Online Support service.

Copyright © 2016, Cadence Design Systems, Inc.
All rights reserved.