The-OpenROAD-Project / OpenLane

OpenLane is an automated RTL to GDSII flow based on several components including OpenROAD, Yosys, Magic, Netgen and custom methodology scripts for design exploration and optimization.
https://openlane.readthedocs.io/
Apache License 2.0
1.31k stars 369 forks source link

LEF file is broken on the latest OpenLane version #1725

Closed hakan-demirli closed 1 year ago

hakan-demirli commented 1 year ago

Description

LEF files are broken on the latest OpenLane version. No matter the design following LEF file is generated. This is for the spm. It is generated after make test command.

VERSION 5.7 ;
  NOWIREEXTENSIONATPIN ON ;
  DIVIDERCHAR "/" ;
  BUSBITCHARS "[]" ;
MACRO spm
  CLASS BLOCK ;
  FOREIGN spm ;
  ORIGIN 0.000 0.000 ;
  SIZE 0.005 BY 0.005 ;
END spm
END LIBRARY

If I were to create a macro and use the LEF file together with the other generated files like GDS and LIB, flow fails since the area is 0.005x 0.005 um^2.

Tag 2023.03.12 is working without any problems. Area and other fields are correct and I can use the macros generated.

Expected Behavior

Proper LEF file is expected.

Environment report

Kernel: Linux v5.15.0-69-generic
Distribution: ubuntu 22.04
Python: v3.10.6 (OK)
Container Engine: docker v23.0.3 (OK)
OpenLane Git Version: cb634fd5f670db4a12e36075c642dae54150955c
pip: INSTALLED
python-venv: INSTALLED
---
PDK Version Verification Status: OK
---
Git Log (Last 3 Commits)

cb634fd 2023-04-06T13:41:52+02:00 Fix ci go package install (#1722) - Kareem Farid -  (grafted, HEAD -> master, tag: 2023.04.07, origin/master, origin/HEAD)
---
Git Remotes

origin  ssh://git@github.com/The-OpenROAD-Project/OpenLane (fetch)
origin  ssh://git@github.com/The-OpenROAD-Project/OpenLane (push)

Reproduction material

git clone https://github.com/The-OpenROAD-Project/OpenLane
cd OpenLane
make
make test

Relevant log output

VERSION 5.7 ;
  NOWIREEXTENSIONATPIN ON ;
  DIVIDERCHAR "/" ;
  BUSBITCHARS "[]" ;
MACRO spm
  CLASS BLOCK ;
  FOREIGN spm ;
  ORIGIN 0.000 0.000 ;
  SIZE 0.005 BY 0.005 ;
END spm
END LIBRARY
kareefardi commented 1 year ago

I can duplicate the issue and will work on it