From a9e63efad79cd3004cc96a6fd70eed5b795f87d7 Mon Sep 17 00:00:00 2001 From: Eren Dogan Date: Thu, 31 Aug 2023 18:26:04 -0700 Subject: [PATCH] Increase via 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 d849673b..eacfddd3 100644 --- a/compiler/router/graph_node.py +++ b/compiler/router/graph_node.py @@ -69,6 +69,6 @@ class graph_node: # 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"] - via_dist = abs(self.center.z - other.center.z) + via_dist = abs(self.center.z - other.center.z) * 2 return layer_dist + via_dist return float("inf")