From 012c3923be3c5015e6d7066166a7efdf8b4570c8 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Wed, 31 Jan 2018 08:28:53 -0800 Subject: [PATCH] Create empty setup.tcl file as workaround for resetting netgen LVS options until Tim fix's bug. --- compiler/verify/magic.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/compiler/verify/magic.py b/compiler/verify/magic.py index 7583b22e..623c1c52 100644 --- a/compiler/verify/magic.py +++ b/compiler/verify/magic.py @@ -18,7 +18,7 @@ gds polygon subcell true gds warning default gds read $1 load $1 -writeall force $1 +writeall force drc count drc why quit -noprompt @@ -80,7 +80,7 @@ def write_magic_script(cell_name, gds_name, extract=False): f.write("gds warning default\n") f.write("gds read {}\n".format(gds_name)) f.write("load {}\n".format(cell_name)) - f.write("writeall force {}\n".format(cell_name)) + f.write("writeall force\n") f.write("drc check\n") f.write("drc catchup\n") f.write("drc count total\n") @@ -103,6 +103,11 @@ def write_netgen_script(cell_name, sp_name): """ Write a netgen script to perform LVS. """ global OPTS + # This is a hack to prevent netgen from re-initializing the LVS + # commands. It will be unnecessary after Tim adds the nosetup option. + setup_file = OPTS.openram_temp + "setup.tcl" + f = open(setup_file, "w") + f.close() run_file = OPTS.openram_temp + "run_lvs.sh" f = open(run_file, "w")