Increase non-preferred direction cost in router

This commit is contained in:
Eren Dogan 2023-09-02 08:00:58 -07:00
parent 775922774a
commit abb12bd785
1 changed files with 1 additions and 1 deletions

View File

@ -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"]