Increase via cost in router

This commit is contained in:
Eren Dogan
2023-08-31 18:26:04 -07:00
parent b281771753
commit a9e63efad7
+1 -1
View File
@@ -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")