mirror of https://github.com/VLSIDA/OpenRAM.git
Use separate mXp pin layer if it exists
This commit is contained in:
parent
3eed6bb8ff
commit
41226087ba
|
|
@ -369,11 +369,23 @@ class pin_layout:
|
||||||
debug.info(4, "writing pin (" + str(self.layer) + "):"
|
debug.info(4, "writing pin (" + str(self.layer) + "):"
|
||||||
+ str(self.width()) + "x"
|
+ str(self.width()) + "x"
|
||||||
+ str(self.height()) + " @ " + str(self.ll()))
|
+ str(self.height()) + " @ " + str(self.ll()))
|
||||||
(layer_num, purpose) = layer[self.layer]
|
|
||||||
|
# Try to use the pin layer if it exists, otherwise
|
||||||
|
# use the regular layer
|
||||||
try:
|
try:
|
||||||
from tech import pin_purpose
|
(pin_layer_num, pin_purpose) = layer[self.layer + "p"]
|
||||||
|
except KeyError:
|
||||||
|
(pin_layer_num, pin_purpose) = layer[self.layer]
|
||||||
|
(layer_num, purpose) = layer[self.layer]
|
||||||
|
|
||||||
|
# Try to use a global pin purpose if it exists,
|
||||||
|
# otherwise, use the regular purpose
|
||||||
|
try:
|
||||||
|
from tech import pin_purpose as global_pin_purpose
|
||||||
|
pin_purpose = global_pin_purpose
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pin_purpose = purpose
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from tech import label_purpose
|
from tech import label_purpose
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
@ -385,9 +397,9 @@ class pin_layout:
|
||||||
width=self.width(),
|
width=self.width(),
|
||||||
height=self.height(),
|
height=self.height(),
|
||||||
center=False)
|
center=False)
|
||||||
# Draw a second pin shape too
|
# Draw a second pin shape too if it is different
|
||||||
if pin_purpose != purpose:
|
if not self.same_lpp((pin_layer_num, pin_purpose), (layer_num, purpose)):
|
||||||
newLayout.addBox(layerNumber=layer_num,
|
newLayout.addBox(layerNumber=pin_layer_num,
|
||||||
purposeNumber=pin_purpose,
|
purposeNumber=pin_purpose,
|
||||||
offsetInMicrons=self.ll(),
|
offsetInMicrons=self.ll(),
|
||||||
width=self.width(),
|
width=self.width(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue