From 5395f21be9616633b517c0b66bce809db4fc7333 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Tue, 4 Sep 2018 16:40:52 -0700 Subject: [PATCH] Remove unique id in contact that was used for debugging --- compiler/base/contact.py | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/compiler/base/contact.py b/compiler/base/contact.py index 9ffae803..1d4beb11 100644 --- a/compiler/base/contact.py +++ b/compiler/base/contact.py @@ -16,26 +16,23 @@ class contact(hierarchy_design.hierarchy_design): hierarchy as the contact. """ - unique_id = 1 - def __init__(self, layer_stack, dimensions=[1,1], implant_type=None, well_type=None): if implant_type or well_type: - name = "{0}_{1}_{2}_{3}x{4}_{5}{6}_{7}".format(layer_stack[0], - layer_stack[1], - layer_stack[2], - dimensions[0], - dimensions[1], - implant_type, - well_type, - contact.unique_id) + name = "{0}_{1}_{2}_{3}x{4}_{5}{6}".format(layer_stack[0], + layer_stack[1], + layer_stack[2], + dimensions[0], + dimensions[1], + implant_type, + well_type) + else: - name = "{0}_{1}_{2}_{3}x{4}_{5}".format(layer_stack[0], - layer_stack[1], - layer_stack[2], - dimensions[0], - dimensions[1], - contact.unique_id) - contact.unique_id += 1 + name = "{0}_{1}_{2}_{3}x{4}".format(layer_stack[0], + layer_stack[1], + layer_stack[2], + dimensions[0], + dimensions[1]) + hierarchy_design.hierarchy_design.__init__(self, name) debug.info(4, "create contact object {0}".format(name))