From b3e1a163d0ad696ae7ec504c153ca5ca29794f46 Mon Sep 17 00:00:00 2001 From: Eren Dogan Date: Sat, 9 Sep 2023 13:32:16 -0700 Subject: [PATCH] Fix derouting wires in the gridless router --- compiler/router/graph.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/router/graph.py b/compiler/router/graph.py index d8017999..4c3c22bc 100644 --- a/compiler/router/graph.py +++ b/compiler/router/graph.py @@ -98,7 +98,7 @@ class graph: return False - def is_node_blocked(self, node, pin_safe=True): + def is_node_blocked(self, node): """ Return if a node is blocked by a blockage. """ p = node.center @@ -150,7 +150,7 @@ class graph: xdiff = closest(p.x, xs) ydiff = closest(p.y, ys) if xdiff == 0 and ydiff == 0: - if pin_safe and blockage in [self.source, self.target]: + if blockage in [self.source, self.target]: return False elif xdiff < spacing and ydiff < spacing: blocked = True @@ -162,7 +162,7 @@ class graph: # If the nodes are blocked by a blockage other than a via for node in nodes: - if self.is_node_blocked(node, pin_safe=False): + if self.is_node_blocked(node): return True # Skip if no via is present