From 3407163cf134dab8cd5a7a87ac17031e79c0c66a Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Thu, 25 Oct 2018 14:25:52 -0700 Subject: [PATCH] Combine adjacent power supply pins finished --- compiler/router/pin_group.py | 77 ++++++++++++++++++++++++++---- compiler/router/router.py | 80 ++++++++++++++------------------ compiler/router/supply_router.py | 2 +- compiler/router/vector3d.py | 14 ++++++ 4 files changed, 119 insertions(+), 54 deletions(-) diff --git a/compiler/router/pin_group.py b/compiler/router/pin_group.py index b1599a8e..d6344fb6 100644 --- a/compiler/router/pin_group.py +++ b/compiler/router/pin_group.py @@ -12,7 +12,7 @@ class pin_group: self.name = name # Flag for when it is routed self.routed = False - self.shapes = pin_shapes + self.pins = pin_shapes self.router = router # These are the corresponding pin grids for each pin group. self.grids = set() @@ -115,7 +115,7 @@ class pin_group: Return the smallest. """ smallest = None - for pin in self.shapes: + for pin in self.pins: for enclosure in enclosure_list: new_enclosure = self.compute_enclosure(pin, enclosure) if smallest == None or new_enclosure.area()