Skip to content

Commit 6bd437c

Browse files
author
SWalker
committed
Fixed bug that made metal-metal vias think they were well contacts
1 parent d59a60e commit 6bd437c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/base/contact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(self, layer_stack, dimensions=(1, 1), directions=None,
4141
self.add_comment("implant type: {}\n".format(implant_type))
4242
self.add_comment("well_type: {}\n".format(well_type))
4343

44-
self.is_well_contact = implant_type == well_type
44+
self.is_well_contact = (implant_type == well_type) and implant_type is not None
4545

4646
# If we have a special tap layer, use it
4747
self.layer_stack = layer_stack

0 commit comments

Comments
 (0)