mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-08-29 01:24:39 +02:00
Increase non-preferred direction cost in router
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user