Add separate box for pins if it has its own purpose

This commit is contained in:
mrg 2020-12-08 10:31:57 -08:00
parent a2ebaf9f81
commit d542b7dd76
1 changed files with 9 additions and 1 deletions

View File

@ -379,6 +379,14 @@ class pin_layout:
except ImportError: except ImportError:
label_purpose = purpose label_purpose = purpose
newLayout.addBox(layerNumber=layer_num,
purposeNumber=purpose,
offsetInMicrons=self.ll(),
width=self.width(),
height=self.height(),
center=False)
# Draw a second pin shape too
if pin_purpose != purpose:
newLayout.addBox(layerNumber=layer_num, newLayout.addBox(layerNumber=layer_num,
purposeNumber=pin_purpose, purposeNumber=pin_purpose,
offsetInMicrons=self.ll(), offsetInMicrons=self.ll(),