From 4f28351dcd562d01f5b9cf71c88e4d8e4f50fd61 Mon Sep 17 00:00:00 2001 From: mrg Date: Wed, 2 Dec 2020 11:52:38 -0800 Subject: [PATCH] Add printGDS script to aid debugging things. --- compiler/printGDS.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 compiler/printGDS.py diff --git a/compiler/printGDS.py b/compiler/printGDS.py new file mode 100755 index 00000000..b0683203 --- /dev/null +++ b/compiler/printGDS.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 + +import sys +from gdsMill import gdsMill + +if len(sys.argv) < 2: + print("Usage: {0} file.gds".format(sys.argv[0])) + sys.exit(1) + +gds_file = sys.argv[1] +arrayCellLayout = gdsMill.VlsiLayout() +reader = gdsMill.Gds2reader(arrayCellLayout,debugToTerminal = 1) +reader.loadFromFile(gds_file) +