diff --git a/AStarRouter.py b/AStarRouter.py index f937775..52e3dd3 100755 --- a/AStarRouter.py +++ b/AStarRouter.py @@ -169,6 +169,9 @@ def output_routing(CGRA, out_DFG, mapping, routed_graph, preg_conf = None, dont # remove high cost of alu out for suc_element in routed_graph.successors(alu): e = alu, suc_element + if CGRA.isALU(suc_element) and \ + routed_graph.edges[e]["weight"] == PENALTY_CONST: + continue if routed_graph.edges[e]["free"]: routed_graph.edges[e]["weight"] = \ CGRA.getLinkWeight((alu, suc_element))