mirror of https://github.com/VLSIDA/OpenRAM.git
Only allow DRC fail with LVS pass if using Magic.
This commit is contained in:
parent
75fce9894c
commit
f1925420cf
|
|
@ -44,19 +44,18 @@ class openram_test(unittest.TestCase):
|
|||
if not OPTS.netlist_only:
|
||||
a.gds_write(tempgds)
|
||||
|
||||
import verify
|
||||
# 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
|
||||
drc_result=verify.run_drc(a.name, tempgds, extract=True, final_verification=final_verification)
|
||||
lvs_result=verify.run_lvs(a.name, tempgds, tempspice, final_verification=final_verification)
|
||||
|
||||
# Always run LVS if we are using magic
|
||||
if "magic" in OPTS.drc_exe:
|
||||
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:
|
||||
# Only allow DRC to fail and LVS to pass if we are using magic
|
||||
if "magic" in OPTS.drc_exe and 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)
|
||||
|
|
@ -66,6 +65,12 @@ class openram_test(unittest.TestCase):
|
|||
#debug.info(0,"Archiving failed files to {}.zip".format(zip_file))
|
||||
#shutil.make_archive(zip_file, 'zip', OPTS.openram_temp)
|
||||
self.fail("DRC failed: {}".format(a.name))
|
||||
|
||||
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))
|
||||
|
||||
|
||||
# For debug...
|
||||
|
|
|
|||
Loading…
Reference in New Issue