editted naming convention on precharge to accommodate multiport

This commit is contained in:
Michael Timothy Grimes
2018-08-15 02:14:45 -07:00
parent 8d97862f6e
commit 040340b49f
2 changed files with 9 additions and 1 deletions
+5 -1
View File
@@ -11,8 +11,12 @@ class precharge_array(design.design):
of bit line columns, height is the height of the bit-cell array.
"""
unique_id = 1
def __init__(self, columns, size=1, BL="bl", BR="br"):
design.design.__init__(self, "precharge_array")
name = "precharge_array_{}".format(precharge_array.unique_id)
precharge_array.unique_id += 1
design.design.__init__(self, name)
debug.info(1, "Creating {0}".format(self.name))
self.columns = columns