mirror of https://github.com/VLSIDA/OpenRAM.git
Adding fix to netlist_only mode in geometry.py. Uncommenting functional tests and running both tests in netlist_only mode.
This commit is contained in:
parent
2053a1ca4d
commit
cda2e93cd7
|
|
@ -143,6 +143,10 @@ class instance(geometry):
|
||||||
self.rotate = rotate
|
self.rotate = rotate
|
||||||
self.offset = vector(offset).snap_to_grid()
|
self.offset = vector(offset).snap_to_grid()
|
||||||
self.mirror = mirror
|
self.mirror = mirror
|
||||||
|
if OPTS.netlist_only:
|
||||||
|
self.width = 0
|
||||||
|
self.height = 0
|
||||||
|
else:
|
||||||
self.width = round_to_grid(mod.width)
|
self.width = round_to_grid(mod.width)
|
||||||
self.height = round_to_grid(mod.height)
|
self.height = round_to_grid(mod.height)
|
||||||
self.compute_boundary(offset,mirror,rotate)
|
self.compute_boundary(offset,mirror,rotate)
|
||||||
|
|
|
||||||
|
|
@ -11,12 +11,11 @@ import globals
|
||||||
from globals import OPTS
|
from globals import OPTS
|
||||||
import debug
|
import debug
|
||||||
|
|
||||||
@unittest.skip("SKIPPING 22_psram_func_test")
|
#@unittest.skip("SKIPPING 22_psram_func_test")
|
||||||
class psram_func_test(openram_test):
|
class psram_func_test(openram_test):
|
||||||
|
|
||||||
def runTest(self):
|
def runTest(self):
|
||||||
globals.init_openram("config_20_{0}".format(OPTS.tech_name))
|
globals.init_openram("config_20_{0}".format(OPTS.tech_name))
|
||||||
#OPTS.spice_name="hspice"
|
|
||||||
OPTS.analytical_delay = False
|
OPTS.analytical_delay = False
|
||||||
OPTS.netlist_only = True
|
OPTS.netlist_only = True
|
||||||
OPTS.bitcell = "pbitcell"
|
OPTS.bitcell = "pbitcell"
|
||||||
|
|
@ -49,7 +48,7 @@ class psram_func_test(openram_test):
|
||||||
|
|
||||||
corner = (OPTS.process_corners[0], OPTS.supply_voltages[0], OPTS.temperatures[0])
|
corner = (OPTS.process_corners[0], OPTS.supply_voltages[0], OPTS.temperatures[0])
|
||||||
f = functional(s.s, tempspice, corner)
|
f = functional(s.s, tempspice, corner)
|
||||||
f.num_cycles = 5
|
f.num_cycles = 10
|
||||||
(fail,error) = f.run()
|
(fail,error) = f.run()
|
||||||
|
|
||||||
self.assertTrue(fail,error)
|
self.assertTrue(fail,error)
|
||||||
|
|
|
||||||
|
|
@ -11,13 +11,13 @@ import globals
|
||||||
from globals import OPTS
|
from globals import OPTS
|
||||||
import debug
|
import debug
|
||||||
|
|
||||||
@unittest.skip("SKIPPING 22_sram_func_test")
|
#@unittest.skip("SKIPPING 22_sram_func_test")
|
||||||
class sram_func_test(openram_test):
|
class sram_func_test(openram_test):
|
||||||
|
|
||||||
def runTest(self):
|
def runTest(self):
|
||||||
globals.init_openram("config_20_{0}".format(OPTS.tech_name))
|
globals.init_openram("config_20_{0}".format(OPTS.tech_name))
|
||||||
#OPTS.spice_name="hspice"
|
|
||||||
OPTS.analytical_delay = False
|
OPTS.analytical_delay = False
|
||||||
|
OPTS.netlist_only = True
|
||||||
|
|
||||||
# This is a hack to reload the characterizer __init__ with the spice version
|
# This is a hack to reload the characterizer __init__ with the spice version
|
||||||
from importlib import reload
|
from importlib import reload
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue