Enable single pin for vdd/gnd after supply router

This commit is contained in:
mrg
2020-12-18 11:09:10 -08:00
parent 946ad66e7a
commit 3c08dfcca5
3 changed files with 26 additions and 4 deletions
+13
View File
@@ -1152,7 +1152,20 @@ class router(router_tech):
width=pin.width(),
height=pin.height())
def get_pin(self, pin_name):
""" Return the lowest, leftest pin group """
keep_pin = None
for index,pg in enumerate(self.pin_groups[pin_name]):
for pin in pg.enclosures:
if not keep_pin:
keep_pin = pin
else:
if pin.lx() <= keep_pin.lx() and pin.by() <= keep_pin.by():
keep_pin = pin
return keep_pin
# FIXME: This should be replaced with vector.snap_to_grid at some point
def snap_to_grid(offset):
"""
-1
View File
@@ -125,7 +125,6 @@ class signal_grid(grid):
#else:
# print("Cost bounded")
debug.warning("Unable to route path. Expand the detour_scale to allow detours.")
return (None,None)
def expand_dirs(self,curpath):