mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-08-29 09:30:38 +02:00
run_pex argument is now use_pex. Each unit test must RESET its options before assertions for consistent start state.
This commit is contained in:
@@ -22,7 +22,6 @@ class timing_sram_test(unittest.TestCase):
|
||||
globals.init_openram("config_20_{0}".format(OPTS.tech_name))
|
||||
# we will manually run lvs/drc
|
||||
OPTS.check_lvsdrc = False
|
||||
OPTS.use_pex = False
|
||||
OPTS.spice_version="hspice"
|
||||
OPTS.force_spice = True
|
||||
globals.set_spice()
|
||||
|
||||
@@ -22,7 +22,6 @@ class timing_setup_test(unittest.TestCase):
|
||||
globals.init_openram("config_20_{0}".format(OPTS.tech_name))
|
||||
# we will manually run lvs/drc
|
||||
OPTS.check_lvsdrc = False
|
||||
OPTS.use_pex = False
|
||||
OPTS.spice_version="hspice"
|
||||
OPTS.force_spice = True
|
||||
globals.set_spice()
|
||||
|
||||
@@ -23,7 +23,6 @@ class timing_setup_test(unittest.TestCase):
|
||||
|
||||
# we will manually run lvs/drc
|
||||
OPTS.check_lvsdrc = False
|
||||
OPTS.use_pex = False
|
||||
OPTS.spice_version="hspice"
|
||||
OPTS.force_spice = True
|
||||
globals.set_spice()
|
||||
|
||||
@@ -20,7 +20,6 @@ class timing_sram_test(unittest.TestCase):
|
||||
globals.init_openram("config_20_{0}".format(OPTS.tech_name))
|
||||
# we will manually run lvs/drc
|
||||
OPTS.check_lvsdrc = False
|
||||
OPTS.use_pex = False
|
||||
OPTS.spice_version="ngspice"
|
||||
OPTS.force_spice = True
|
||||
globals.set_spice()
|
||||
@@ -33,7 +32,11 @@ class timing_sram_test(unittest.TestCase):
|
||||
num_banks=OPTS.config.num_banks,
|
||||
name="test_sram1")
|
||||
|
||||
# reset these options
|
||||
OPTS.check_lvsdrc = True
|
||||
OPTS.spice_version="hspice"
|
||||
OPTS.force_spice = False
|
||||
globals.set_spice()
|
||||
|
||||
import delay
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@ class timing_setup_test(unittest.TestCase):
|
||||
globals.init_openram("config_20_{0}".format(OPTS.tech_name))
|
||||
# we will manually run lvs/drc
|
||||
OPTS.check_lvsdrc = False
|
||||
OPTS.use_pex = False
|
||||
OPTS.spice_version="ngspice"
|
||||
OPTS.force_spice = True
|
||||
globals.set_spice()
|
||||
@@ -33,7 +32,11 @@ class timing_setup_test(unittest.TestCase):
|
||||
sh = setup_hold.setup_hold()
|
||||
[one_setup_time, zero_setup_time] = sh.hold_time()
|
||||
|
||||
# reset these options
|
||||
OPTS.check_lvsdrc = True
|
||||
OPTS.spice_version="hspice"
|
||||
OPTS.force_spice = False
|
||||
globals.set_spice()
|
||||
|
||||
if OPTS.tech_name == "freepdk45":
|
||||
self.assertTrue(isclose(one_setup_time,-0.0048828125))
|
||||
|
||||
@@ -22,7 +22,6 @@ class timing_setup_test(unittest.TestCase):
|
||||
globals.init_openram("config_20_{0}".format(OPTS.tech_name))
|
||||
# we will manually run lvs/drc
|
||||
OPTS.check_lvsdrc = False
|
||||
OPTS.use_pex = False
|
||||
OPTS.spice_version="ngspice"
|
||||
OPTS.force_spice = True
|
||||
globals.set_spice()
|
||||
@@ -33,7 +32,12 @@ class timing_setup_test(unittest.TestCase):
|
||||
sh = setup_hold.setup_hold()
|
||||
[one_setup_time, zero_setup_time] = sh.setup_time()
|
||||
|
||||
# reset these options
|
||||
OPTS.check_lvsdrc = True
|
||||
OPTS.spice_version="hspice"
|
||||
OPTS.force_spice = False
|
||||
globals.set_spice()
|
||||
|
||||
if OPTS.tech_name == "freepdk45":
|
||||
self.assertTrue(isclose(one_setup_time,0.0146484375))
|
||||
self.assertTrue(isclose(zero_setup_time,0.008544921875))
|
||||
|
||||
@@ -22,7 +22,6 @@ class sram_func_test(unittest.TestCase):
|
||||
globals.init_openram("config_20_{0}".format(OPTS.tech_name))
|
||||
# we will manually run lvs/drc
|
||||
OPTS.check_lvsdrc = False
|
||||
OPTS.use_pex = False
|
||||
|
||||
import sram
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@ class lib_test(unittest.TestCase):
|
||||
globals.init_openram("config_20_{0}".format(OPTS.tech_name))
|
||||
# we will manually run lvs/drc
|
||||
OPTS.check_lvsdrc = False
|
||||
OPTS.use_pex = False
|
||||
|
||||
import sram
|
||||
import lib
|
||||
|
||||
Reference in New Issue
Block a user