mirror of https://github.com/VLSIDA/OpenRAM.git
Optional number of functional cycles
This commit is contained in:
parent
54890a8d77
commit
bca69b24e3
|
|
@ -21,7 +21,7 @@ class functional(simulation):
|
||||||
for successful SRAM operation.
|
for successful SRAM operation.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, sram, spfile, corner):
|
def __init__(self, sram, spfile, corner, cycles=15):
|
||||||
super().__init__(sram, spfile, corner)
|
super().__init__(sram, spfile, corner)
|
||||||
|
|
||||||
# Seed the characterizer with a constant seed for unit tests
|
# Seed the characterizer with a constant seed for unit tests
|
||||||
|
|
@ -52,7 +52,7 @@ class functional(simulation):
|
||||||
debug.info(2, "q name={}\nqbar name={}".format(self.q_name, self.qbar_name))
|
debug.info(2, "q name={}\nqbar name={}".format(self.q_name, self.qbar_name))
|
||||||
|
|
||||||
# Number of checks can be changed
|
# Number of checks can be changed
|
||||||
self.num_cycles = 15
|
self.num_cycles = cycles
|
||||||
# This is to have ordered keys for random selection
|
# This is to have ordered keys for random selection
|
||||||
self.stored_words = collections.OrderedDict()
|
self.stored_words = collections.OrderedDict()
|
||||||
self.read_check = []
|
self.read_check = []
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue