From e1d0902680a1a19ba21f49d830866882842395c0 Mon Sep 17 00:00:00 2001 From: Eren Dogan Date: Wed, 2 Aug 2023 21:26:24 -0700 Subject: [PATCH] Cleanup the new router --- compiler/router/router_tech.py | 2 +- compiler/router/signal_escape_router.py | 6 +++--- compiler/router/supply_router.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/router/router_tech.py b/compiler/router/router_tech.py index 92366e3c..af889a1e 100644 --- a/compiler/router/router_tech.py +++ b/compiler/router/router_tech.py @@ -138,7 +138,7 @@ class router_tech: min_width = self.route_track_width * drc("minwidth_{0}".format(layer_name), self.route_track_width * min_wire_width, math.inf) return min_width - def get_layer_space(self, zindex, width): + def get_layer_space(self, zindex, width=None): """ Return the minimum spacing of a layer given wire width. """ if width is None: width = self.get_layer_width(zindex) diff --git a/compiler/router/signal_escape_router.py b/compiler/router/signal_escape_router.py index ffe47981..08b76be2 100644 --- a/compiler/router/signal_escape_router.py +++ b/compiler/router/signal_escape_router.py @@ -18,7 +18,7 @@ class signal_escape_router(router): def __init__(self, layers, design, bbox=None): - # `router_tech` contains tech constants for the router + # `router` is the base router class router.__init__(self, layers, design, bbox) # New pins are the side supply pins @@ -146,7 +146,7 @@ class signal_escape_router(router): def get_route_pairs(self, pin_names): - """ """ + """ Return the pairs to be routed. """ to_route = [] for name in pin_names: @@ -157,7 +157,7 @@ class signal_escape_router(router): def replace_layout_pins(self): - """ """ + """ Replace the old layout pins with new ones around the perimeter. """ for name, pin in self.new_pins.items(): pin = graph_shape(pin.name, pin.boundary, pin.lpp) diff --git a/compiler/router/supply_router.py b/compiler/router/supply_router.py index 7105afd0..5aabf7fb 100644 --- a/compiler/router/supply_router.py +++ b/compiler/router/supply_router.py @@ -18,7 +18,7 @@ class supply_router(router): def __init__(self, layers, design, bbox=None, pin_type=None): - # `router_tech` contains tech constants for the router + # `router` is the base router class router.__init__(self, layers, design, bbox) # Side supply pin type