Module 2: Logic Synthesis · 2.3 Standard Cell Views

The LEF File

The previous article explained standard cell timing and power models. This article introduces the physical abstract representation.

Logic synthesis selects cell variants based on Liberty timing data. However, placement and routing tools require spatial dimensions: cell bounding boxes, pin coordinates, and routing layer assignments. The Library Exchange Format (LEF) stores these physical descriptions.

Comparison Between Liberty and LEF Views

Feature Liberty (.lib) Library Exchange Format (.lef)
Information Modeled Timing delays, power dissipation, Boolean logic Physical footprint, boundary outlines, pin coordinates
Primary Tool Consumers Logic synthesis (Yosys), static timing (OpenSTA) Floorplanning, placement, routing (OpenROAD)
Core Engineering Answers How fast does the cell switch? What is its pin load? How wide is the cell? Where do metal wires connect?
Standard Units Nanoseconds (ns), picofarads (pF), milliwatts (mW) Microns (µm) referenced to the manufacturing routing grid

Synthesis tools operate primarily on Liberty files. However, downstream placement and routing engines rely heavily on LEF models to assemble physical rows.

Structure of a Standard Cell LEF Entry

Consider the LEF abstract for sky130_fd_sc_hd__nand2_1:

MACRO sky130_fd_sc_hd__nand2_1
  CLASS CORE ;
  SIZE 5.750 BY 2.720 ;
  SYMMETRY X Y ;
  PIN A
    DIRECTION INPUT ;
    PORT
      LAYER li1 ;
        RECT 0.310 0.700 0.470 2.020 ;
    END
  END A
  PIN Y
    DIRECTION OUTPUT ;
    PORT
      LAYER li1 ;
        RECT 4.900 0.700 5.060 2.020 ;
    END
  END Y
  PIN VPWR
    DIRECTION INOUT ;
    USE POWER ;
  END VPWR
  PIN VGND
    DIRECTION INOUT ;
    USE GROUND ;
  END VGND
END sky130_fd_sc_hd__nand2_1

The NAND2 as LEF describes it: outline, pin rectangles, power rails, no internals
Figure 1: The abstract physical view of a standard cell

Key fields define physical properties:

  • SIZE 5.750 BY 2.720: Defines the rectangular cell boundary (5.750 µm wide by 2.720 µm high). All cells in this library share an identical row height of 2.720 µm, which allows seamless abutment in placement rows.
  • PIN A and RECT: Specifies the physical connect boundary for pin A on layer li1 (local interconnect). Coordinates specify lower-left and upper-right corners relative to the cell origin.
  • PIN VPWR and PIN VGND: Designates power and ground pins. The routing engine connects these pins to the horizontal power rails.

LEF abstracts omit internal transistor diffusion polygons to reduce file size. The full mask polygons appear only during final GDSII generation.

Practice Exercise

A second standard cell in the LEF library specifies SIZE 8.050 BY 2.720 ;. What conclusions can an engineer make based on this definition?

Solution

The engineer can conclude that the second cell is wider (8.050 µm versus 5.750 µm) while maintaining the identical 2.720 µm standard cell row height. Both cells align legally within standard placement rows.

The engineer cannot determine whether the wider boundary accommodates larger output drive transistors, complex logic gating, or additional routing pins. That information requires consulting the cell’s Liberty entry.

The next article examines drive strength sizing and explains how libraries scale transistor widths to drive capacitive loads.

← The Liberty File Drive Strength and Cell Variants →