Local bitcell array edits. Skip test by default.

This commit is contained in:
mrg 2020-07-29 10:08:13 -07:00
parent c260297366
commit 2fa561f98f
3 changed files with 28 additions and 16 deletions

View File

@ -12,7 +12,7 @@ from tech import cell_properties
class bitcell_base_array(design.design):
"""
Abstract base class for bitcell-arrays -- bitcell, dummy
Abstract base class for bitcell-arrays -- bitcell, dummy, replica
"""
def __init__(self, name, rows, cols, column_offset):
design.design.__init__(self, name)

View File

@ -5,20 +5,28 @@
# (acting for and on behalf of Oklahoma State University)
# All rights reserved.
#
from bitcell_base_array import bitcell_base_array
import design
from globals import OPTS
from sram_factory import factory
class local_bitcell_array(bitcell_base_array):
class local_bitcell_array(design.design):
"""
A local bitcell array is a bitcell array with a wordline driver.
This can either be a single aray on its own if there is no hierarchical WL
or it can be combined into a larger array with hierarchical WL.
"""
def __init__(self, name, rows, cols):
super().__init__(name=name, rows=rows, cols=cols, column_offset=0)
def __init__(self, rows, cols, ports, left_rbl=0, right_rbl=0, name=""):
design.design.__init__(self, name)
debug.info(2, "create sram of size {0} with {1} words".format(self.word_size,
self.num_words))
self.rows = rows
self.cols = cols
self.left_rbl = left_rbl
self.right_rbl = right_rbl
self.all_ports = ports
self.create_netlist()
if not OPTS.netlist_only:
self.create_layout()
@ -48,23 +56,27 @@ class local_bitcell_array(bitcell_base_array):
# This is just used for names
self.cell = factory.create(module_type="bitcell")
self.bitcell_array = factory.create(module_type="bitcell_array",
rows=self.row_size,
cols=self.column_size)
self.bitcell_array = factory.create(module_type="replica_bitcell_array",
cols=self.cols,
rows=self.rows,
left_rbl=self.left_rbl,
right_rbl=self.right_rbl,
bitcell_ports=self.all_ports)
self.add_mod(self.bitcell_array)
self.wl_array = factory.create(module_type="wordline_buffer_array",
rows=self.row_size,
cols=self.column_size)
rows=self.rows,
cols=self.cols)
self.add_mod(self.wl_array)
def create_instances(self):
""" Create the module instances used in this design """
self.array_inst = self.add_inst(mod=self.bitcell_array)
self.wl_inst = self.add_inst(mod=self.wl_array)
self.connect_inst(self.pins)
self.array_inst = self.add_inst(mod=self.bitcell_array,
offset=self.wl_inst.lr())
self.connect_inst(self.pins)
#wl_names = self.get_
self.wl_inst = self.add_inst(mod=self.wl_array,
offset=self.bitcell_inst.lr())
self.connect_inst(self.get_bitcell_pins(row, col))

View File

@ -15,7 +15,7 @@ from globals import OPTS
from sram_factory import factory
import debug
@unittest.skip("SKIPPING 05_local_bitcell_array_test")
class local_bitcell_array_test(openram_test):
def runTest(self):