Fixed import in simulation and fixed names in functional

This commit is contained in:
Hunter Nichols 2020-09-04 02:24:18 -07:00
parent d027632bdc
commit 500327d59b
2 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,7 @@ class functional(simulation):
if not self.num_spare_cols:
self.num_spare_cols = 0
self.probe_address, self.probe_data = '0'*self.addr_size,0
self.set_corner(corner)
self.set_spice_constants()
self.set_stimulus_variables()
@ -47,6 +48,8 @@ class functional(simulation):
self.add_graph_exclusions()
self.create_graph()
self.set_internal_spice_names()
self.q_name, self.qbar_name = self.get_bit_name()
debug.info(2, "q name={}\nqbar name={}".format(self.q_name, self.qbar_name))
# Number of checks can be changed
self.num_cycles = 15
@ -433,6 +436,7 @@ class functional(simulation):
self.sram_spc_name = "X{}".format(self.sram.name)
self.sram.build_graph(self.graph, self.sram_spc_name, self.pins)
#FIXME: Similar function to delay.py, refactor this
def get_bit_name(self):
""" Get a bit cell name """
(cell_name, cell_inst) = self.sram.get_cell_name(self.sram.name, 0, 0)

View File

@ -15,6 +15,7 @@ from .trim_spice import *
from .charutils import *
import utils
from globals import OPTS
from sram_factory import factory
class simulation():