Skip to content
Snippets Groups Projects
Commit dbb88550 authored by Philipp Gühring's avatar Philipp Gühring
Browse files

Raised the weight to push all contacts on the terminals

parent a71ad6fc
No related branches found
No related tags found
No related merge requests found
......@@ -621,7 +621,8 @@ class DefaultRouter():
def _set_terminal_costs(
graph: nx.Graph,
shapes: Dict[str, db.Shape],
terminals_by_net: Dict[str, List]
terminals_by_net: Dict[str, List],
tech
):
"""
Set via weights based on terminal costs.
......@@ -643,12 +644,14 @@ def _set_terminal_costs(
regions_by_layer[layer],
tech
)
logger.debug("via cost: {} ({},{}) {}".format(via_cost,x,y,via_layer))
other_node = via_layer, (x, y) # Node on the other side of the via.
if terminal_node in graph and other_node in graph:
# Scale the via cost
graph[terminal_node][other_node]['weight'] *= via_cost + 1
logger.debug("Old cost: {} via_cost: {}".format(graph[terminal_node][other_node]['weight'],via_cost))
graph[terminal_node][other_node]['weight'] += via_cost * 1500000
def _report_track_usage(xs: List[int], ys: List[int], routing_trees: Dict[Any, nx.Graph]):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment