RTimothyEdwards / magic

Magic VLSI Layout Tool
Other
447 stars 100 forks source link

GDS_FILE property ignored unless LEFview is true. #275

Open d-m-bailey opened 8 months ago

d-m-bailey commented 8 months ago

Reviewing the gds output logs, it appears that there may only be 2 times when the GDS_FILE property is used to copy the gds data instead of converting the mag data.

  1. when LEFview is true
  2. when the mag file is completely empty of layers and instances like small cells that have been expanded (M3_M2*).

I tried the following

  1. Opening libs.ref/gf180mcu_fd_ip_sram/mag/gf180mcu_fd_ip_sram__sram512x8m8wm1.mag (has GDS_FILE property but no LEFview property), and expanding before gds write writes all mag data without accessing the GDS_FILE.

  2. Copying that mag file to a local directory and opening, expanding and attempting gds write gives

    Failure to read entire subtree of the cell.
    I/O error in writing file sram_test.gds.
    File may be incompletely written.

    Comparison of console log files is exactly the same except one file opens the cells from

    /home/user/pdks/volare/gf180mcu/versions/dd7771c384ed36b91a25e9f8b314355fc26561be/gf180mcuD/libs.ref

    and the other opens from

    /home/user/pdks/gf180mcuD/libs.ref

    There are no missing cells messages. This may be an unrelated problem.

  3. Deleting all use and associated statements from the local file, adding LEFview true and the running gds write will produce a gds file with a copy of the specified gds as desired.