Home Knowledge Base LEF (Library Exchange Format)

LEF (Library Exchange Format) is an ASCII file format that describes the physical properties of standard cells and technology rules — providing the place-and-route tool with the information needed to place cells and route interconnects without requiring full cell layout.

Why LEF Exists

LEF File Types

Technology LEF (tech.lef):

Cell LEF (cells.lef):

Example LEF Snippet

MACRO INV_X1
  CLASS CORE ;
  ORIGIN 0.000 0.000 ;
  SIZE 0.48 BY 2.40 ;
  PIN A
    DIRECTION INPUT ;
    PORT LAYER M1 ;
      RECT 0.12 0.60 0.24 0.90 ;
    END
  END A
  PIN Z
    DIRECTION OUTPUT ;
    PORT LAYER M1 ;
      RECT 0.28 0.60 0.40 0.90 ;
    END
  END Z
END INV_X1

Relationship to GDS

LEF is the physical interface between IP/standard cell libraries and the P&R tool — proper LEF characterization is essential for correct placement, DRC-clean routing, and accurate parasitic extraction in the sign-off flow.

lef fileabstract layouttechnology lefcell leflibrary exchange format

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.