Lef, Def & Lib
Lef, Def & Lib
November 2, 2017
By signoff-scribe
For every technology the layer and the via statements are different. So for the layer and via, the type of the layer (layer m
slice or overlap), width/pitch and spacing, direction, resistance, capacitance, and antenna factor are defined.
Unit Definition
UNITS
END UNITS
Manufacturing grid
This is defined for the geometry alignment, once it is specified, then the cells are placed in location which is aligned to the m
This syntax defines the Implant layer in the design. For each layer, name, space and width are defined. Space and width are
legal cell placement.
LAYER layerName
TYPE{MASTERSLICE| OVERLAP} ;
This defines the masterslice (non routing) or overlap layers in the design. Master slice layers are basically polysilicon la
MACROS are present on Polysilicon these layers are used.
VIA
for signal routers the VIA statement defines via’s. By default via is using three layers
1. cut layers.
2. Routing
3. Masterslice.
The routing and the master slice layers touch the cut layers.
In order to generate the via arrays, via rule generator defines the formulas.VIARULE GENERATE statement can be used to def
is explicitly not defined in VIARULE statement.
https://signoffsemiconductors.com/lef-def-lib/ 2/8
3/1/22, 2:37 PM LEF, DEF & LIB – signoffsemiconductors
Same-Net Spacing
SITE
Site specifies the region of the block like PAD and CORE, under this syntax, symmetry is also defined w.r.t. X, Y or R90 (Rotate by
This syntax defines the detail about Macros like name, PAD detail, class size, location of endcap cells (like topright, bottom
obstruction detail.
Defines the pins for the Macros. For each macro, Pin statements are required (all I/O pins, VDD , VSS).
MustJoin pin
The OBS defines the group of obstruction on macros, normally this blocks the routing but in case of obstruction on pin it allow
https://signoffsemiconductors.com/lef-def-lib/ 3/8
3/1/22, 2:37 PM LEF, DEF & LIB – signoffsemiconductors
The DEF file basically contains the placement information of macros , standard cells, I/O pins and other physical entities.
place and route tool and takes the physical design data from place and route tool in form of DEF. The logical design
Home Services Solutions Domains Insights Careers Company
connectivity, grouping information, and physical constraints and the physical design data contains routing geometry dat
orientation. DEF is used as an input for various stages.Floorplan DEF is given at the import design stage to provide informatio
ports and block shape, SCANDEF is given at the import design stage for scan chain reordering which contains the connectiv
and it is also an input of scan tracing stage, DEF generated by PnR is used in Star RC extraction.
In detail it contains:
Die Area
Tracks
Components (macros)
I/O Pins
Nets
Blockages
Halo
Scan Chain
Vias
Slots
Fills
Region
Row
Metal layers
https://signoffsemiconductors.com/lef-def-lib/ 4/8
3/1/22, 2:37 PM LEF, DEF & LIB – signoffsemiconductors
.lib is basically a timing model contains cell delays, transition, setup and hold time requirements. CCS and NLDM technique
files. In CCS (composite current source) current source is used for driver modeling, CCS has 20 variables to account input
Home Services Solutions Domains Insights Careers Company
where as, NLDM uses the voltage source for driver modeling and it has only 2 variables which are not sufficient for mode
circuit. So CCS is more accurate than NLDM. Because of the difference in number of variables used in both the models, size o
than the NLDM file. Also the run time for CCS is more when compared to NLDM.
The design needs to be tested for certain PVT (process voltage and temperature) corners. But for every PVT corner, the timi
Hence there is a .lib file for every PVT corner.
Time unit
Voltage unit
Current unit
Leakage power unit
Capacitive load unit
Slew rate : Lower and upper limit values are defined in terms of percentage for both rise and fall time
Input threshold at rise and fall time
Output threshold for rise and fall time
Look Up table templates are defined for different parameters like delay, hold, passive energy, recovery, removal, setup, with d
Area of cell
Leakage power
Capacitance
Rise and fall capacitance
Properties such as capacitance, direction of the pin etc. for each pin (input and output) will be defined. Further different v
matrix form, as shown in the below example.
https://signoffsemiconductors.com/lef-def-lib/ 5/8
3/1/22, 2:37 PM LEF, DEF & LIB – signoffsemiconductors
fall_transition(delay_template_5x5) {
values ( \
Output fall transition is characterized based on output capacitance and input transition. Index_1 represents output
represents input transition . In the above example, 5 values are specified in each indexes, if a given value is not there in th
transition by intrapolation or extrapolation. If the value is in between the given values of an index we go for intrapolation or e
Like “fall transition” other parameter also calculated which are as follows:
Rise transition
Internal Power
Fall power
Rise power
Cell fall
Cell rise
Below an another example of D flip flop characterization table is given, which shows the hold falling, and setup falling is als
above attributes. Index_1 is corresponds to related pin transition and index_2 corresponds to constrained pin transition.
timing_type : hold_falling;
https://signoffsemiconductors.com/lef-def-lib/ 6/8
3/1/22, 2:37 PM LEF, DEF & LIB – signoffsemiconductors
rise_constraint(hold_template_3x5) {
index_1 (“0.06, 0.3, 0.6”); Home Services Solutions Domains Insights Careers Company
values ( \
timing_type : setup_falling;
rise_constraint(setup_template_3x5) {
values ( \
Let’s Talk! [email protected]
(Headquarter)
https://signoffsemiconductors.com/lef-def-lib/ 7/8
3/1/22, 2:37 PM LEF, DEF & LIB – signoffsemiconductors
Write to us now 100 ft Road, HRBR Layout 1st Avenue Suits 110, PMB 1157,
Block, Banswadi, Bangalore- San Jose CA 95119
[email protected]
Home Services Solutions 560043,
Domains Insights
India. Careers Company
Canada
Yonge St Unit #
MAILBOX Thornhill, ON
L4J 8J2 Canada
https://signoffsemiconductors.com/lef-def-lib/ 8/8