Enable gds readonly in Magic DRC/LVS

This commit is contained in:
mrg 2020-11-04 10:50:53 -08:00
parent 6e12d4d46c
commit 9a38f7a5f4
1 changed files with 1 additions and 2 deletions

View File

@ -77,8 +77,7 @@ def write_magic_script(cell_name, extract=False, final_verification=False):
f.write("{} -dnull -noconsole << EOF\n".format(OPTS.drc_exe[1]))
f.write("gds polygon subcell true\n")
f.write("gds warning default\n")
# This causes substrate contacts to not be extracted
f.write("# gds readonly true\n")
f.write("gds readonly true\n")
f.write("gds read {}.gds\n".format(cell_name))
f.write("load {}\n".format(cell_name))
# Flatten the cell to get rid of DRCs spanning multiple layers