Add commented extraction when running DRC only

This commit is contained in:
Matt Guthaus 2018-10-05 08:18:53 -07:00
parent bb83e5f1be
commit 19114fe47f
1 changed files with 11 additions and 8 deletions

View File

@ -50,14 +50,17 @@ def write_magic_script(cell_name, gds_name, extract=False):
f.write("drc catchup\n")
f.write("drc count total\n")
f.write("drc count\n")
if extract:
f.write("extract all\n")
f.write("ext2spice hierarchy on\n")
f.write("ext2spice scale off\n")
# Can choose hspice, ngspice, or spice3,
# but they all seem compatible enough.
#f.write("ext2spice format ngspice\n")
f.write("ext2spice\n")
if not extract:
pre = "#"
else:
pre = ""
f.write(pre+"extract all\n")
f.write(pre+"ext2spice hierarchy on\n")
f.write(pre+"ext2spice scale off\n")
# Can choose hspice, ngspice, or spice3,
# but they all seem compatible enough.
#f.write(pre+"ext2spice format ngspice\n")
f.write(pre+"ext2spice\n")
f.write("quit -noprompt\n")
f.write("EOF\n")