From 040340b49f88063050530a5919f7cb9b7a1d1b55 Mon Sep 17 00:00:00 2001 From: Michael Timothy Grimes Date: Wed, 15 Aug 2018 02:14:45 -0700 Subject: [PATCH] editted naming convention on precharge to accommodate multiport --- compiler/modules/precharge_array.py | 6 +++++- compiler/pgates/precharge.py | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/compiler/modules/precharge_array.py b/compiler/modules/precharge_array.py index 3fc14237..6caed238 100644 --- a/compiler/modules/precharge_array.py +++ b/compiler/modules/precharge_array.py @@ -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 diff --git a/compiler/pgates/precharge.py b/compiler/pgates/precharge.py index 186e5ece..0a20770c 100644 --- a/compiler/pgates/precharge.py +++ b/compiler/pgates/precharge.py @@ -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))