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:
Michael Timothy Grimes 2018-10-22 09:17:03 -07:00
parent 2053a1ca4d
commit cda2e93cd7
3 changed files with 10 additions and 7 deletions

View File

@ -143,8 +143,12 @@ class instance(geometry):
self.rotate = rotate
self.offset = vector(offset).snap_to_grid()
self.mirror = mirror
self.width = round_to_grid(mod.width)
self.height = round_to_grid(mod.height)
if OPTS.netlist_only:
self.width = 0
self.height = 0
else:
self.width = round_to_grid(mod.width)
self.height = round_to_grid(mod.height)
self.compute_boundary(offset,mirror,rotate)
debug.info(4, "creating instance: " + self.name)

View File

@ -11,12 +11,11 @@ import globals
from globals import OPTS
import debug
@unittest.skip("SKIPPING 22_psram_func_test")
#@unittest.skip("SKIPPING 22_psram_func_test")
class psram_func_test(openram_test):
def runTest(self):
globals.init_openram("config_20_{0}".format(OPTS.tech_name))
#OPTS.spice_name="hspice"
OPTS.analytical_delay = False
OPTS.netlist_only = True
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])
f = functional(s.s, tempspice, corner)
f.num_cycles = 5
f.num_cycles = 10
(fail,error) = f.run()
self.assertTrue(fail,error)

View File

@ -11,13 +11,13 @@ import globals
from globals import OPTS
import debug
@unittest.skip("SKIPPING 22_sram_func_test")
#@unittest.skip("SKIPPING 22_sram_func_test")
class sram_func_test(openram_test):
def runTest(self):
globals.init_openram("config_20_{0}".format(OPTS.tech_name))
#OPTS.spice_name="hspice"
OPTS.analytical_delay = False
OPTS.netlist_only = True
# This is a hack to reload the characterizer __init__ with the spice version
from importlib import reload