Skip to content

Commit 174bb0f

Browse files
committed
[vpr][route] fix seg fault when router debug is enabled
1 parent a909cf2 commit 174bb0f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vpr/src/route/connection_router.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,9 @@ void ConnectionRouter<Heap>::timing_driven_expand_cheapest(t_heap* cheapest,
379379
VTR_LOGV_DEBUG(router_debug_, " Better cost to %d\n", inode);
380380
VTR_LOGV_DEBUG(router_debug_, " New total cost: %g\n", new_total_cost);
381381
VTR_LOGV_DEBUG(router_debug_, " New back cost: %g\n", new_back_cost);
382-
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",
382+
VTR_LOGV_DEBUG(router_debug_ && (rr_nodes_.node_type(RRNodeId(cheapest->index)) != t_rr_type::SOURCE) &&
383+
(rr_nodes_.node_type(RRNodeId(cheapest->index)) != t_rr_type::OPIN),
384+
" Setting path costs for associated node %d (from %d edge %zu)\n",
383385
cheapest->index,
384386
static_cast<size_t>(rr_graph_->edge_src_node(cheapest->prev_edge())),
385387
static_cast<size_t>(cheapest->prev_edge()));

0 commit comments

Comments
 (0)