mirror of https://github.com/VLSIDA/OpenRAM.git
Allow LVS to run even if DRC fails.
This commit is contained in:
parent
8ece411954
commit
75fce9894c
|
|
@ -44,22 +44,30 @@ class openram_test(unittest.TestCase):
|
||||||
if not OPTS.netlist_only:
|
if not OPTS.netlist_only:
|
||||||
a.gds_write(tempgds)
|
a.gds_write(tempgds)
|
||||||
|
|
||||||
|
# Run both DRC and LVS even if DRC might fail
|
||||||
|
# Magic can still extract despite DRC failing, so it might be ok in some techs
|
||||||
|
# if we ignore things like minimum metal area of pins
|
||||||
import verify
|
import verify
|
||||||
result=verify.run_drc(a.name, tempgds, extract=True, final_verification=final_verification)
|
drc_result=verify.run_drc(a.name, tempgds, extract=True, final_verification=final_verification)
|
||||||
if result != 0:
|
lvs_result=verify.run_lvs(a.name, tempgds, tempspice, final_verification=final_verification)
|
||||||
|
|
||||||
|
if lvs_result != 0:
|
||||||
|
#zip_file = "/tmp/{0}_{1}".format(a.name,os.getpid())
|
||||||
|
#debug.info(0,"Archiving failed files to {}.zip".format(zip_file))
|
||||||
|
#shutil.make_archive(zip_file, 'zip', OPTS.openram_temp)
|
||||||
|
self.fail("LVS mismatch: {}".format(a.name))
|
||||||
|
if lvs_result == 0 and drc_result != 0:
|
||||||
|
#zip_file = "/tmp/{0}_{1}".format(a.name,os.getpid())
|
||||||
|
#debug.info(0,"Archiving failed files to {}.zip".format(zip_file))
|
||||||
|
#shutil.make_archive(zip_file, 'zip', OPTS.openram_temp)
|
||||||
|
debug.warning("DRC failed but LVS passed: {}".format(a.name))
|
||||||
|
elif drc_result != 0:
|
||||||
#zip_file = "/tmp/{0}_{1}".format(a.name,os.getpid())
|
#zip_file = "/tmp/{0}_{1}".format(a.name,os.getpid())
|
||||||
#debug.info(0,"Archiving failed files to {}.zip".format(zip_file))
|
#debug.info(0,"Archiving failed files to {}.zip".format(zip_file))
|
||||||
#shutil.make_archive(zip_file, 'zip', OPTS.openram_temp)
|
#shutil.make_archive(zip_file, 'zip', OPTS.openram_temp)
|
||||||
self.fail("DRC failed: {}".format(a.name))
|
self.fail("DRC failed: {}".format(a.name))
|
||||||
|
|
||||||
|
|
||||||
result=verify.run_lvs(a.name, tempgds, tempspice, final_verification=final_verification)
|
|
||||||
if result != 0:
|
|
||||||
#zip_file = "/tmp/{0}_{1}".format(a.name,os.getpid())
|
|
||||||
#debug.info(0,"Archiving failed files to {}.zip".format(zip_file))
|
|
||||||
#shutil.make_archive(zip_file, 'zip', OPTS.openram_temp)
|
|
||||||
self.fail("LVS mismatch: {}".format(a.name))
|
|
||||||
|
|
||||||
# For debug...
|
# For debug...
|
||||||
#import pdb; pdb.set_trace()
|
#import pdb; pdb.set_trace()
|
||||||
if OPTS.purge_temp:
|
if OPTS.purge_temp:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue