mirror of https://github.com/VLSIDA/OpenRAM.git
Add separate box for pins if it has its own purpose
This commit is contained in:
parent
a2ebaf9f81
commit
d542b7dd76
|
|
@ -380,11 +380,19 @@ class pin_layout:
|
||||||
label_purpose = purpose
|
label_purpose = purpose
|
||||||
|
|
||||||
newLayout.addBox(layerNumber=layer_num,
|
newLayout.addBox(layerNumber=layer_num,
|
||||||
purposeNumber=pin_purpose,
|
purposeNumber=purpose,
|
||||||
offsetInMicrons=self.ll(),
|
offsetInMicrons=self.ll(),
|
||||||
width=self.width(),
|
width=self.width(),
|
||||||
height=self.height(),
|
height=self.height(),
|
||||||
center=False)
|
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.
|
# Add the tet in the middle of the pin.
|
||||||
# This fixes some pin label offsetting when GDS gets
|
# This fixes some pin label offsetting when GDS gets
|
||||||
# imported into Magic.
|
# imported into Magic.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue