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

@ -380,11 +380,19 @@ class pin_layout:
label_purpose = purpose
newLayout.addBox(layerNumber=layer_num,
purposeNumber=pin_purpose,
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,
purposeNumber=pin_purpose,
offsetInMicrons=self.ll(),
width=self.width(),
height=self.height(),
center=False)
# Add the tet in the middle of the pin.
# This fixes some pin label offsetting when GDS gets
# imported into Magic.