Add printGDS script to aid debugging things.

This commit is contained in:
mrg 2020-12-02 11:52:38 -08:00
parent 3c115f0ecb
commit 4f28351dcd
1 changed files with 14 additions and 0 deletions

14
compiler/printGDS.py Executable file
View File

@ -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)