Skip to content

Commit

Permalink
fix fatal bug in output routing
Browse files Browse the repository at this point in the history
  • Loading branch information
tkojima.am committed Oct 14, 2021
1 parent 129503a commit d563b7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AStarRouter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d563b7a

Please sign in to comment.