Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 08c0e47

Browse files
committedMay 29, 2024·
[vpr][source][route] don't get prev edge is the node type is of the type source
1 parent 7ed749f commit 08c0e47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎vpr/src/route/connection_router.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ void ConnectionRouter<Heap>::timing_driven_expand_cheapest(t_heap* cheapest,
372372
VTR_LOGV_DEBUG(router_debug_, " Better cost to %d\n", inode);
373373
VTR_LOGV_DEBUG(router_debug_, " New total cost: %g\n", new_total_cost);
374374
VTR_LOGV_DEBUG(router_debug_, " New back cost: %g\n", new_back_cost);
375-
VTR_LOGV_DEBUG(router_debug_, " Setting path costs for associated node %d (from %d edge %zu)\n",
375+
VTR_LOGV_DEBUG(router_debug_ && (rr_nodes_.node_type(RRNodeId(cheapest->index) != t_rr_type::SOURCE)), " Setting path costs for associated node %d (from %d edge %zu)\n",
376376
cheapest->index,
377377
static_cast<size_t>(rr_graph_->edge_src_node(cheapest->prev_edge())),
378378
static_cast<size_t>(cheapest->prev_edge()));

0 commit comments

Comments
 (0)
Please sign in to comment.