Draft local and global arrays. Ensure rows before cols in usage.

This commit is contained in:
mrg
2020-07-23 14:43:14 -07:00
parent 58846a4a25
commit e1967dc548
12 changed files with 328 additions and 21 deletions
+3 -3
View File
@@ -12,8 +12,8 @@ class dummy_array(bitcell_base_array):
"""
Generate a dummy row/column for the replica array.
"""
def __init__(self, cols, rows, column_offset=0, mirror=0, name=""):
super().__init__(cols, rows, name, column_offset)
def __init__(self, rows, cols, column_offset=0, mirror=0, name=""):
super().__init__(rows=rows, cols=cols, column_offset=column_offset, name=name)
self.mirror = mirror
self.create_netlist()
@@ -51,7 +51,7 @@ class dummy_array(bitcell_base_array):
name = "bit_r{0}_c{1}".format(row, col)
self.cell_inst[row, col]=self.add_inst(name=name,
mod=self.dummy_cell)
self.connect_inst(self.get_bitcell_pins(col, row))
self.connect_inst(self.get_bitcell_pins(row, col))
def input_load(self):
wl_wire = self.gen_wl_wire()