mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-08-30 18:02:23 +02:00
Add separate box for pins if it has its own purpose
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user