mattvenn / openlane_summary

Apache License 2.0
18 stars 8 forks source link

MPW4 Compatiblity #8

Closed urish closed 2 years ago

urish commented 2 years ago

The structure of the RUNS folder has changed, so the script no longer works. Here's a quick diff that fixes --gds and --copy-gds:

diff --git a/summary.py b/summary.py
index 21d76c5..623dd77 100755
--- a/summary.py
+++ b/summary.py
@@ -272,16 +272,20 @@ if __name__ == '__main__':
         os.system("klayout -l %s %s" % (klayout_def, path))

     if args.gds:
-        path = check_path(os.path.join(run_path, "results", "magic", args.top + ".gds"))
+        path = check_path(os.path.join(run_path, "results", "final/gds", args.top + ".gds"))
         os.system("klayout -l %s %s" % (klayout_gds, path))

     if args.copy_gds:
-        path = check_path(os.path.join(run_path, "results", "magic", args.top + ".gds"))
+        path = check_path(os.path.join(run_path, "results", "final/gds", args.top + ".gds"))
         copyfile(path, args.top + ".gds")
-        path = check_path(os.path.join(run_path, "results", "magic", args.top + ".lef"))
+        path = check_path(os.path.join(run_path, "results", "final/lef", args.top + ".lef"))
         copyfile(path, args.top + ".lef")
-        path = check_path(os.path.join(run_path, "results", "lvs", args.top + ".lvs.powered.v"))
+        path = check_path(os.path.join(run_path, "results", "final/verilog/gl", args.top + ".v"))
         copyfile(path, args.top + ".lvs.powered.v")
+        path = check_path(os.path.join(run_path, "OPENLANE_VERSION"))
+        copyfile(path, "OPENLANE_VERSION")
+        path = check_path(os.path.join(run_path, "PDK_SOURCES"))
+        copyfile(path, "PDK_SOURCES")

     if args.gds_3d:
         if not is_tool('GDS3D'):

it also copies the OPENLANE_VERSION and PDK_SOURCES files along with the gds.

Note: I'm not 100% sure about the location of the gl file I'm copying.

mattvenn commented 2 years ago

sorry didn't see this. Now updated for mpw5.