Update modules to use variable bit offsets.

Bitcell arrays can return the bit offsets.
Port data and submodules can use offsets for spacing.
Default spacing for port data if no offsets given.
This commit is contained in:
mrg
2020-09-11 15:36:22 -07:00
parent c58741c44f
commit 8909ad7165
11 changed files with 116 additions and 47 deletions
+6
View File
@@ -206,3 +206,9 @@ class bitcell_base_array(design.design):
mirror=dir_key)
yoffset += self.cell.height
xoffset += self.cell.width
def get_column_offsets(self):
"""
Return an array of the x offsets of all the regular bits
"""
return [self.cell_inst[0, col].lx() for col in range(self.column_size)]