<#1069 Lef/def import in magic is missing poly, di...
# openlane-development
g
#1069 Lef/def import in magic is missing poly, diffusion, and other layers. New issue created by jainsoumil2 Description Issues with loading lef/def files in magic layout generated using openlane, after caravel integration with user_project_wrapper. Environment
Copy code
Kernel: Linux v3.10.0-1160.24.1.el7.x86_64
Distribution: centos 7
Python: v3.9.7 (OK)
Container Engine: docker v20.10.14 (OK)
OpenLane Git Version: -dev
pip:click: INSTALLED
pip:pyyaml: INSTALLED
pip:venv: INSTALLED
---
PDK Version Verification Status: OK
---
Git Log (Last 3 Commits)

e4bfdd7 2022-02-22T16:59:14-03:00 Remove pip install, no longer needed (#953) - Vitor Bandeira -  (grafted, HEAD, tag: 2022.02.23_02.50.41)
Reproduction Material Reproducible packaged from: openroad_issue_reproducible.zip Def file from: #1028 (comment) Commands used (in magic): lef read merged_unpadded.lef def read top.def Expected behavior We expected all layers to come up when reading the lef/def files, but we only see metal 1-5 layers, li, vias1-4 and viali. The poly, diffusion, mimcap and reram layers which we use are missing.

sky130_fd_sc_hd__ddecap_12 comparison

Left image is a decap cell directly imported from sky130_fd_sc_hd library. Right image is the imported out.def file, and has missing poly and diffusion layers. Logs Logs in magic-
Copy code
% lef read merged_unpadded.lef
Reading LEF data from file merged_unpadded.lef.
This action cannot be undone.
LEF read, Line 78 (Message): Unknown keyword "ANTENNAMODEL" in LEF file; ignoring.
LEF read, Line 79 (Message): Unknown keyword "ANTENNADIFFSIDEAREARATIO" in LEF file; ignoring.
LEF read, Line 111 (Message): Unknown keyword "MINENCLOSEDAREA" in LEF file; ignoring.
LEF read, Line 113 (Message): Unknown keyword "ANTENNAMODEL" in LEF file; ignoring.
LEF read, Line 114 (Message): Unknown keyword "ANTENNADIFFSIDEAREARATIO" in LEF file; ignoring.
LEF read, Line 120 (Message): Unknown keyword "MAXIMUMDENSITY" in LEF file; ignoring.
LEF read, Line 121 (Message): Unknown keyword "DENSITYCHECKWINDOW" in LEF file; ignoring.
LEF read, Line 122 (Message): Unknown keyword "DENSITYCHECKSTEP" in LEF file; ignoring.
LEF read, Line 154 (Message): Unknown keyword "MINENCLOSEDAREA" in LEF file; ignoring.
LEF read, Line 162 (Message): Unknown keyword "ANTENNAMODEL" in LEF file; ignoring.
LEF read, Line 163 (Message): Unknown keyword "ANTENNADIFFSIDEAREARATIO" in LEF file; ignoring.
LEF read, Line 165 (Message): Unknown keyword "MAXIMUMDENSITY" in LEF file; ignoring.
LEF read, Line 166 (Message): Unknown keyword "DENSITYCHECKWINDOW" in LEF file; ignoring.
LEF read, Line 167 (Message): Unknown keyword "DENSITYCHECKSTEP" in LEF file; ignoring.
LEF read, Line 203 (Message): Unknown keyword "ANTENNAMODEL" in LEF file; ignoring.
LEF read, Line 204 (Message): Unknown keyword "ANTENNADIFFSIDEAREARATIO" in LEF file; ignoring.
LEF read, Line 206 (Message): Unknown keyword "MAXIMUMDENSITY" in LEF file; ignoring.
LEF read, Line 207 (Message): Unknown keyword "DENSITYCHECKWINDOW" in LEF file; ignoring.
LEF read, Line 208 (Message): Unknown keyword "DENSITYCHECKSTEP" in LEF file; ignoring.
LEF read, Line 244 (Message): Unknown keyword "ANTENNAMODEL" in LEF file; ignoring.
LEF read, Line 245 (Message): Unknown keyword "ANTENNADIFFSIDEAREARATIO" in LEF file; ignoring.
LEF read, Line 247 (Message): Unknown keyword "MAXIMUMDENSITY" in LEF file; ignoring.
LEF read, Line 248 (Message): Unknown keyword "DENSITYCHECKWINDOW" in LEF file; ignoring.
LEF read, Line 249 (Message): Unknown keyword "DENSITYCHECKSTEP" in LEF file; ignoring.
LEF read, Line 285 (Message): Unknown keyword "ANTENNAMODEL" in LEF file; ignoring.
LEF read, Line 286 (Message): Unknown keyword "ANTENNADIFFSIDEAREARATIO" in LEF file; ignoring.
LEF read, Line 292 (Warning): Cut type "L1M1_PR" redefined.
LEF read, Line 312 (Warning): Cut type "L1M1_PR_R" redefined.
LEF read, Line 332 (Warning): Cut type "L1M1_PR_M" redefined.
LEF read, Line 352 (Warning): Cut type "L1M1_PR_MR" redefined.
LEF read, Line 372 (Warning): Cut type "L1M1_PR_C" redefined.
LEF read, Line 392 (Warning): Cut type "M1M2_PR" redefined.
LEF read, Line 412 (Warning): Cut type "M1M2_PR_R" redefined.
LEF read, Line 432 (Warning): Cut type "M1M2_PR_M" redefined.
LEF read, Line 452 (Warning): Cut type "M1M2_PR_MR" redefined.
LEF read, Line 472 (Warning): Cut type "M1M2_PR_C" redefined.
LEF read, Line 492 (Warning): Cut type "M2M3_PR" redefined.
LEF read, Line 512 (Warning): Cut type "M2M3_PR_R" redefined.
LEF read, Line 532 (Warning): Cut type "M2M3_PR_M" redefined.
LEF read, Line 552 (Warning): Cut type "M2M3_PR_MR" redefined.
LEF read, Line 572 (Warning): Cut type "M2M3_PR_C" redefined.
LEF read, Line 592 (Warning): Cut type "M3M4_PR" redefined.
LEF read, Line 612 (Warning): Cut type "M3M4_PR_R" redefined.
LEF read, Line 632 (Warning): Cut type "M3M4_PR_M" redefined.
LEF read, Line 652 (Warning): Cut type "M3M4_PR_MR" redefined.
LEF read, Line 672 (Warning): Cut type "M3M4_PR_C" redefined.
LEF read, Line 692 (Warning): Cut type "M4M5_PR" redefined.
LEF read, Line 712 (Warning): Cut type "M4M5_PR_R" redefined.
LEF read, Line 732 (Warning): Cut type "M4M5_PR_M" redefined.
LEF read, Line 752 (Warning): Cut type "M4M5_PR_MR" redefined.
LEF read, Line 772 (Warning): Cut type "M4M5_PR_C" redefined.
LEF read: Processed 121874 lines.
LEF Read: encountered 25 warnings total.
% def read top.def
Reading DEF data from file top.def.
This action cannot be undone.
DEF read, Line 1450 (Warning): Composite via "via4_3100x3100" redefined.
DEF read, Line 1451 (Warning): Composite via "via_3100x480" redefined.
DEF read, Line 1452 (Warning): Composite via "via2_3100x480" redefined.
DEF read, Line 1453 (Warning): Composite via "via3_3100x480" redefined.
  Processed 4 vias total.
  Processed 1008954 subcell instances total.
  Processed 645 pins total.
  Processed 2 blockages.
  Processed 8 special nets total.
  Processed 637 nets total.
DEF read: Processed 1040524 lines.
DEF Read: encountered 4 warnings total.
The-OpenROAD-Project/OpenLane