Cleanup exit route. Pins are on perimeter mostly.

This commit is contained in:
mrg
2020-12-22 15:56:51 -08:00
parent ae1c889235
commit 52119fe3b3
9 changed files with 131 additions and 34 deletions
+11
View File
@@ -473,6 +473,17 @@ class layout():
"""
self.pin_map = {}
def replace_layout_pin(self, text, pin):
"""
Remove the old pin and replace with a new one
"""
self.remove_layout_pin(text)
self.add_layout_pin(text=text,
layer=pin.layer,
offset=pin.ll(),
width=pin.width(),
height=pin.height())
def add_layout_pin(self, text, layer, offset, width=None, height=None):
"""
Create a labeled pin