From 542e1a5e038a2917ae7195ebdb0a9a61b36d184e Mon Sep 17 00:00:00 2001 From: Eren Dogan Date: Sun, 23 Jul 2023 18:43:26 -0700 Subject: [PATCH] Use half pin's size difference for new spacing rule --- compiler/router/graph_router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/router/graph_router.py b/compiler/router/graph_router.py index f537e0a9..ae76eb0f 100644 --- a/compiler/router/graph_router.py +++ b/compiler/router/graph_router.py @@ -93,7 +93,7 @@ class graph_router(router_tech): for pin in self.all_pins: xdiff = self.layer_widths[0] - pin.width() ydiff = self.layer_widths[0] - pin.height() - diff = max(xdiff, ydiff) + diff = max(xdiff, ydiff) / 2 spacing = self.track_space + drc["grid"] if diff > 0: spacing += diff