Allow verbose output from scripts with one -v and not unit test

This commit is contained in:
mrg 2020-12-01 11:18:27 -08:00
parent fb4cf0d4d1
commit b621c3bdc0
2 changed files with 5 additions and 5 deletions

View File

@ -95,10 +95,10 @@ def write_drc_script(cell_name, gds_name, extract, final_verification, output_pa
f.write('puts "Finished loading cell {}"\n'.format(cell_name))
# Flatten the cell to get rid of DRCs spanning multiple layers
# (e.g. with routes)
#f.write("flatten {}_new\n".format(cell_name))
#f.write("load {}_new\n".format(cell_name))
#f.write("cellname rename {0}_new {0}\n".format(cell_name))
#f.write("load {}\n".format(cell_name))
# f.write("flatten {}_new\n".format(cell_name))
# f.write("load {}_new\n".format(cell_name))
# f.write("cellname rename {0}_new {0}\n".format(cell_name))
# f.write("load {}\n".format(cell_name))
f.write("cellname delete \\(UNNAMED\\)\n")
f.write("writeall force\n")
f.write("select top cell\n")

View File

@ -19,7 +19,7 @@ from globals import OPTS
def run_script(cell_name, script="lvs"):
""" Run script and create output files. """
echo_cmd_output = OPTS.verbose_level > 1
echo_cmd_output = OPTS.verbose_level > 0 and not OPTS.is_unit_test
cwd = os.getcwd()
os.chdir(OPTS.openram_temp)