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

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

View File

@ -12,7 +12,11 @@ class precharge(pgate.pgate):
This module implements the precharge bitline cell used in the design.
"""
unique_id = 1
def __init__(self, name, size=1, BL="bl", BR="br"):
name = name+"_{}".format(precharge.unique_id)
precharge.unique_id += 1
pgate.pgate.__init__(self, name)
debug.info(2, "create single precharge cell: {0}".format(name))