Merge use-temp-dir-pid

This commit is contained in:
Matt Guthaus
2016-11-12 08:55:42 -08:00
43 changed files with 77 additions and 29 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ class library_drc_test(unittest.TestCase):
# fails if there are any DRC errors on any cells
self.assertEqual(drc_errors, 0)
globals.end_openram()
def setup_files():
gds_dir = OPTS.openram_tech + "/gds_lib"
+1 -1
View File
@@ -37,7 +37,7 @@ class library_lvs_test(unittest.TestCase):
# fail if the error count is not zero
self.assertEqual(lvs_errors, 0)
globals.end_openram()
def setup_files():
gds_dir = OPTS.openram_tech + "/gds_lib"
+2 -1
View File
@@ -54,7 +54,8 @@ class contact_test(unittest.TestCase):
self.local_check(c)
OPTS.check_lvsdrc = True
globals.end_openram()
def local_check(self, c):
tempgds = OPTS.openram_temp + "temp.gds"
c.gds_write(tempgds)
+2 -1
View File
@@ -75,7 +75,8 @@ class path_test(unittest.TestCase):
# return it back to it's normal state
OPTS.check_lvsdrc = True
globals.end_openram()
def local_check(self, w):
tempgds = OPTS.openram_temp + "temp.gds"
w.gds_write(tempgds)
+1 -1
View File
@@ -33,7 +33,7 @@ class ptx_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(fet)
globals.end_openram()
def add_mods(self, fet):
+1 -1
View File
@@ -33,7 +33,7 @@ class ptx_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(fet)
globals.end_openram()
def add_mods(self, fet):
+1 -1
View File
@@ -33,7 +33,7 @@ class ptx_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(fet)
globals.end_openram()
def add_mods(self, fet):
self.create_contacts()
+2 -1
View File
@@ -33,7 +33,8 @@ class ptx_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(fet)
globals.end_openram()
def add_mods(self, fet):
self.create_contacts()
self.add_well_extension(fet)
+2 -1
View File
@@ -128,7 +128,8 @@ class wire_test(unittest.TestCase):
# return it back to it's normal state
OPTS.check_lvsdrc = True
globals.end_openram()
def local_check(self, w):
tempgds = OPTS.openram_temp + "temp.gds"
w.gds_write(tempgds)
+2 -1
View File
@@ -33,7 +33,8 @@ class nand_2_test(unittest.TestCase):
tx = nand_2.nand_2(name="a_nand_1", nmos_width=2 * tech.drc["minwidth_tx"])
OPTS.check_lvsdrc = True
self.local_check(tx)
globals.end_openram()
def local_check(self, tx):
tempspice = OPTS.openram_temp + "temp.sp"
+2 -1
View File
@@ -31,7 +31,8 @@ class nand_3_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(tx)
globals.end_openram()
def local_check(self, tx):
tempspice = OPTS.openram_temp + "temp.sp"
tempgds = OPTS.openram_temp + "temp.gds"
+1 -1
View File
@@ -32,7 +32,7 @@ class nor_2_test(unittest.TestCase):
tx = nor_2.nor_2(name="a_nor_1", nmos_width=2 * tech.drc["minwidth_tx"])
OPTS.check_lvsdrc = True
self.local_check(tx)
globals.end_openram()
def local_check(self, tx):
tempspice = OPTS.openram_temp + "temp.sp"
+1
View File
@@ -42,6 +42,7 @@ class pinv_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(tx)
globals.end_openram()
def local_check(self, tx):
tempspice = OPTS.openram_temp + "temp.sp"
+1 -1
View File
@@ -33,7 +33,7 @@ class wordline_driver_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(tx)
globals.end_openram()
def local_check(self, tx):
tempspice = OPTS.openram_temp + "temp.sp"
tempgds = OPTS.openram_temp + "temp.gds"
+1 -1
View File
@@ -31,7 +31,7 @@ class array_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(a)
globals.end_openram()
def local_check(self, a):
tempspice = OPTS.openram_temp + "temp.sp"
@@ -57,7 +57,8 @@ class hierarchical_decoder_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(a)
globals.end_openram()
def local_check(self, a):
tempspice = OPTS.openram_temp + "temp.sp"
tempgds = OPTS.openram_temp + "temp.gds"
@@ -30,7 +30,8 @@ class hierarchical_predecode2x4_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(a)
globals.end_openram()
def local_check(self, a):
tempspice = OPTS.openram_temp + "temp.sp"
tempgds = OPTS.openram_temp + "temp.gds"
@@ -30,6 +30,7 @@ class hierarchical_predecode3x8_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(a)
globals.end_openram()
def local_check(self, a):
tempspice = OPTS.openram_temp + "temp.sp"
@@ -28,7 +28,8 @@ class single_level_column_mux_test(unittest.TestCase):
rows=32, columns=32, word_size=16)
OPTS.check_lvsdrc = True
self.local_check(a)
globals.end_openram()
def local_check(self, a):
tempspice = OPTS.openram_temp + "temp.sp"
tempgds = OPTS.openram_temp + "temp.gds"
+2 -1
View File
@@ -38,7 +38,8 @@ class precharge_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(pc)
globals.end_openram()
def local_check(self, pc):
tempspice = OPTS.openram_temp + "temp.sp"
tempgds = OPTS.openram_temp + "temp.gds"
+2 -1
View File
@@ -41,7 +41,8 @@ class sense_amp_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(a)
globals.end_openram()
def local_check(self, a):
tempspice = OPTS.openram_temp + "temp.sp"
tempgds = OPTS.openram_temp + "temp.gds"
@@ -35,6 +35,7 @@ class write_driver_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(a)
globals.end_openram()
def local_check(self, a):
tempspice = OPTS.openram_temp + "temp.sp"
+1
View File
@@ -31,6 +31,7 @@ class dff_array_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(a)
globals.end_openram()
def local_check(self, a):
tempspice = OPTS.openram_temp + "temp.sp"
+2 -1
View File
@@ -29,7 +29,8 @@ class control_logic_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(a)
globals.end_openram()
def local_check(self, a):
tempspice = OPTS.openram_temp + "temp.sp"
tempgds = OPTS.openram_temp + "temp.gds"
@@ -31,6 +31,8 @@ class logic_effort_dc_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(a)
globals.end_openram()
def local_check(self, a):
tempspice = OPTS.openram_temp + "temp.sp"
tempgds = OPTS.openram_temp + "temp.gds"
+2
View File
@@ -28,6 +28,8 @@ class tri_gate_array_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(a)
globals.end_openram()
def local_check(self, a):
tempspice = OPTS.openram_temp + "temp.sp"
tempgds = OPTS.openram_temp + "temp.gds"
@@ -31,6 +31,8 @@ class replica_bitline_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(a)
globals.end_openram()
def local_check(self, a):
tempspice = OPTS.openram_temp + "temp.sp"
tempgds = OPTS.openram_temp + "temp.gds"
+2
View File
@@ -35,6 +35,8 @@ class bank_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(a)
globals.end_openram()
def local_check(self, a):
tempspice = OPTS.openram_temp + "temp.sp"
tempgds = OPTS.openram_temp + "temp.gds"
+2 -1
View File
@@ -30,7 +30,8 @@ class sram_1bank_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(a)
globals.end_openram()
def local_check(self, a):
tempspice = OPTS.openram_temp + "temp.sp"
tempgds = OPTS.openram_temp + "temp.gds"
+2
View File
@@ -30,6 +30,8 @@ class sram_2bank_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(a)
globals.end_openram()
def local_check(self, a):
tempspice = OPTS.openram_temp + "temp.sp"
tempgds = OPTS.openram_temp + "temp.gds"
+2
View File
@@ -30,6 +30,8 @@ class sram_4bank_test(unittest.TestCase):
OPTS.check_lvsdrc = True
self.local_check(a)
globals.end_openram()
def local_check(self, a):
tempspice = OPTS.openram_temp + "temp.sp"
tempgds = OPTS.openram_temp + "temp.gds"
+2 -1
View File
@@ -63,8 +63,9 @@ class timing_sram_test(unittest.TestCase):
self.assertTrue(False) # other techs fail
os.remove(tempspice)
globals.end_openram()
# instantiate a copdsay of the class to actually run the test
if __name__ == "__main__":
(OPTS, args) = globals.parse_args()
+1
View File
@@ -44,6 +44,7 @@ class timing_setup_test(unittest.TestCase):
else:
self.assertTrue(False) # other techs fail
globals.end_openram()
# instantiate a copdsay of the class to actually run the test
if __name__ == "__main__":
+2
View File
@@ -44,6 +44,8 @@ class timing_setup_test(unittest.TestCase):
else:
self.assertTrue(False) # other techs fail
globals.end_openram()
# instantiate a copdsay of the class to actually run the test
if __name__ == "__main__":
(OPTS, args) = globals.parse_args()
@@ -24,6 +24,8 @@ class sram_func_test(unittest.TestCase):
self.func_test(bank_num=2)
self.func_test(bank_num=4)
globals.end_openram()
def func_test(self, bank_num):
import sram
+2
View File
@@ -51,6 +51,8 @@ class sram_func_test(unittest.TestCase):
os.remove(tempspice)
globals.end_openram()
# instantiate a copdsay of the class to actually run the test
if __name__ == "__main__":
(OPTS, args) = globals.parse_args()
+1 -1
View File
@@ -47,7 +47,7 @@ class lib_test(unittest.TestCase):
os.system("rm {0}".format(libname))
globals.end_openram()
# instantiate a copdsay of the class to actually run the test
if __name__ == "__main__":
+1 -1
View File
@@ -47,7 +47,7 @@ class lef_test(unittest.TestCase):
os.system("rm {0}".format(gdsname))
os.system("rm {0}".format(lefname))
globals.end_openram()
# instantiate a copdsay of the class to actually run the test
if __name__ == "__main__":
+2
View File
@@ -44,6 +44,8 @@ class verilog_test(unittest.TestCase):
os.system("rm {0}".format(vname))
globals.end_openram()
# instantiate a copdsay of the class to actually run the test
if __name__ == "__main__":
(OPTS, args) = globals.parse_args()
+1
View File
@@ -73,6 +73,7 @@ class openram_test(unittest.TestCase):
shutil.rmtree(out_path, ignore_errors=True)
self.assertEqual(os.path.exists(out_path),False)
globals.end_openram()
# instantiate a copdsay of the class to actually run the test
if __name__ == "__main__":