From abb12bd785eb6bdd077aecca4c26215bc6b51251 Mon Sep 17 00:00:00 2001 From: Eren Dogan Date: Sat, 2 Sep 2023 08:00:58 -0700 Subject: [PATCH] Increase non-preferred direction cost in router --- compiler/router/graph_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/router/graph_node.py b/compiler/router/graph_node.py index eacfddd3..9ea30a80 100644 --- a/compiler/router/graph_node.py +++ b/compiler/router/graph_node.py @@ -65,7 +65,7 @@ class graph_node: layer_dist = self.center.distance(other.center) # Double the cost if the edge is in non-preferred direction if is_vertical != bool(self.center.z): - layer_dist *= 2 + layer_dist *= 4 # Add a constant wire cost to prevent dog-legs if prev_node and self.get_direction(prev_node) != self.get_direction(other): layer_dist += drc["grid"]