Remove unique id in contact that was used for debugging

This commit is contained in:
Matt Guthaus 2018-09-04 16:40:52 -07:00
parent 9d40cd4a03
commit 5395f21be9
1 changed files with 14 additions and 17 deletions

View File

@ -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))