Design Exchange Format (DEF): 7 Essential Concepts in VLSI Physical Design

The Design Exchange Format (DEF) is a standard file format used in VLSI physical design to describe the physical implementation of an integrated circuit. It contains information about the placement of standard cells, locations of pins, routing, rows, blockages, and other physical design objects.
DEF is commonly used alongside the Library Exchange Format (LEF). LEF describes physical and abstract cell information, such as cell dimensions and routing layer definitions, while DEF describes how design instances are placed and connected in a particular physical layout[1].
Understanding DEF is important for engineers working in physical design, place and route, static timing analysis, and design implementation.
What Is Design Exchange Format (DEF)?
Design Exchange Format is a text-based format used to exchange physical design information between electronic design automation (EDA) tools.
During physical design, a logical netlist is transformed into a physical implementation. DEF represents important details of that implementation, including the locations of cells and the physical routing of nets.
A DEF file can contain information about:
-
Design name and units
-
Die and core area
-
Placement rows and tracks
-
Standard-cell and macro placement
-
Pins and terminals
-
Nets and routing
-
Placement and routing blockages
-
Special nets, such as power and ground
-
Design constraints and physical attributes supported by the format
The exact content depends on the design stage and the DEF version being used.
Why Is DEF Important in VLSI?
DEF helps physical design tools exchange implementation data without requiring every tool to use the same internal database.
For example, a place-and-route tool can write a DEF file containing the placement of standard cells. Another compatible tool can read that information and continue with routing, optimization, or physical verification.
The main benefits of DEF include:
-
Tool interoperability: Supports data exchange between compatible EDA tools.
-
Placement representation: Records the physical locations and orientations of instances.
-
Routing representation: Can describe routed connections between design components.
-
Design visualization: Helps engineers inspect physical implementation information.
-
Debugging: Supports investigation of placement and routing issues.
-
Implementation tracking: Allows physical design data to be exchanged at different stages.
-
Automation: Enables scripts and tools to process physical design information.
What Information Does a DEF File Contain?
A DEF file is organized into sections. Each section represents a particular category of physical design data.
|
DEF Section |
Purpose |
|---|---|
|
|
Specifies the DEF format version |
|
|
Defines the design name |
|
|
Specifies database distance units |
|
|
Defines the die boundary |
|
|
Describes placement rows |
|
|
Defines routing track patterns |
|
|
Lists cell and macro instances and their placement |
|
|
Describes top-level pins |
|
|
Describes signal connectivity and, when present, routing |
|
|
Describes special connections, commonly power and ground |
|
|
Defines placement or routing restrictions |
|
|
Marks the end of the design description |
Not every DEF file contains every section. Some sections may be omitted or contain incomplete information depending on the export stage and tool settings.
DEF File Example
The following simplified example illustrates the general structure of a DEF file.
VERSION 5.8 ;
DIVIDERCHAR "/" ;
BUSBITCHARS "[]" ;
DESIGN example_design ;
UNITS DISTANCE MICRONS 1000 ;
DIEAREA ( 0 0 ) ( 100000 80000 ) ;
COMPONENTS 2 ;
- U1 AND2_X1 + PLACED ( 10000 12000 ) N ;
- U2 OR2_X1 + PLACED ( 25000 12000 ) N ;
END COMPONENTS
PINS 1 ;
- OUT + NET n1
+ DIRECTION OUTPUT
+ PORT
+ LAYER metal2 ( 0 0 ) ( 1000 1000 )
+ PLACED ( 40000 30000 ) N ;
END PINS
NETS 1 ;
- n1 ( U1 Z ) ( U2 A ) ;
END NETS
END DESIGN
This is an illustrative example, not a complete production-ready DEF file. Real files must follow the syntax and consistency requirements of the applicable DEF specification and the target EDA tool.
Understanding the Example
-
DESIGNidentifies the design. -
UNITSspecifies how database coordinates map to physical distances. -
DIEAREAdefines the die boundary. -
COMPONENTSlists instances and their placement coordinates. -
PINSdescribes a top-level pin. -
NETSdescribes logical connections between pins and instances.
In DEF, coordinates are generally represented in database units. In this example, 1,000 database units correspond to one micron.
The example is intended to demonstrate the main sections. In an actual design, instance pin names, pin geometry, net connectivity, and placement information must match the corresponding libraries and netlist.
DEF vs LEF
DEF and LEF are closely related formats, but they serve different purposes.
|
Feature |
DEF |
LEF |
|---|---|---|
|
Full form |
Design Exchange Format |
Library Exchange Format |
|
Main purpose |
Describes a design’s physical implementation |
Describes physical and abstract library information |
|
Cell placement |
Yes |
Generally describes cell geometry, not the design’s instance placement |
|
Routing |
Can describe design routing |
Defines routing layers and related physical rules |
|
Standard-cell dimensions |
References library cells |
Describes cell dimensions and physical abstracts |
|
Design connectivity |
Describes nets and connections |
Provides library-level pin information |
|
Typical use |
Placement, routing, and implementation exchange |
Floorplanning, placement, and routing setup |
In simple terms, LEF describes the physical building blocks, while DEF describes how those building blocks are arranged and connected in a design.
How DEF Is Used in the Physical Design Flow
DEF is used at different points in the physical implementation flow, depending on the EDA tool and project methodology.
A simplified flow is:
RTL Design → Logic Synthesis → Gate-Level Netlist → Floorplanning → Placement → Clock Tree Synthesis → Routing → Physical Verification
During these stages, tools may import or export DEF files to exchange physical implementation data.
For example:
-
Floorplanning: DEF can represent the die, core, rows, pins, and blockages.
-
Placement: It can record the positions and orientations of standard cells and macros.
-
Clock tree synthesis: It can represent physical clock-related cells and nets.
-
Routing: It can contain routing geometry and connectivity information.
-
Physical verification: DEF data may be used as an input to downstream checks or converted into other required representations.
DEF is not itself a place-and-route tool. It is a data format used by tools that perform physical design operations.
Common DEF-Related Issues in VLSI
Engineers may encounter several issues when reading, writing, or exchanging DEF files.
1. Incorrect Units
Coordinate values must be interpreted using the declared database units. A mismatch can lead to incorrect geometry or coordinate interpretation.
2. Placement Problems
Instances may have missing, incomplete, or unexpected placement information. Placement status and coordinates should be checked when debugging the design.
3. LEF and DEF Mismatches
A DEF file may reference a cell or routing layer that is not available in the corresponding library data. The relevant LEF and technology information must be consistent.
4. Missing or Inconsistent Connectivity
Net names and instance pin references must agree with the design and library definitions. Inconsistent connectivity can cause import or implementation errors.
5. Routing Data Differences
An intermediate DEF file may not contain final detailed routing. Engineers should confirm whether the file was exported before or after routing and what routing information the tool included.
6. Unsupported Format Features
Different EDA tools and versions may support different features or extensions. When transferring DEF between tools, confirm that both tools support the relevant version and sections.
Frequently Asked Questions
What is DEF in VLSI?
DEF stands for Design Exchange Format. It is a text-based format used to represent and exchange physical design information, including cell placement, pins, nets, and routing.
What is the difference between DEF and a netlist?
A netlist primarily describes logical connectivity between circuit components. DEF adds physical implementation information, such as component locations and physical routing geometry.
What is the difference between DEF and LEF?
LEF describes physical library information, including cell abstracts, dimensions, pins, and routing-layer properties. DEF describes the physical implementation of a particular design using those library definitions.
Is DEF used during placement and routing?
Yes. DEF can represent placement and routing information and is used to exchange implementation data between compatible EDA tools.
Can a DEF file be edited manually?
Yes, a DEF file is text-based and can be inspected or edited manually. However, edits must preserve syntax, coordinate consistency, connectivity, and compatibility with the relevant libraries and tools.
Does every DEF file contain detailed routing?
No. The contents depend on the design stage and export settings. A DEF file created after placement may not include the final detailed routing.
Conclusion
Design Exchange Format is an important part of the VLSI physical design flow. It provides a standardized way to exchange information about design boundaries, placement, pins, nets, blockages, and routing between compatible EDA tools.
Understanding DEF alongside LEF, netlists, and the physical design flow helps engineers troubleshoot implementation issues and understand how a logical circuit becomes a physical layout.
References
- C. H. Tan, “Automation of Tessent-based Scan Layout Aware Database generation and mismatches debug using Perl”, in 2023 IEEE International Symposium on the Physical and Failure Analysis of Integrated Circuits (IPFA), IEEE, Jul. 2023, pp. 1–4. doi: 10.1109/ipfa58228.2023.10249107.