diff --git a/libs/librrgraph/src/base/rr_graph_storage.h b/libs/librrgraph/src/base/rr_graph_storage.h index 25c37ad1d4d..1ce7f2a4c7f 100644 --- a/libs/librrgraph/src/base/rr_graph_storage.h +++ b/libs/librrgraph/src/base/rr_graph_storage.h @@ -338,11 +338,13 @@ class t_rr_graph_storage { /** @brief Get the source node for the specified edge. */ RRNodeId edge_src_node(const RREdgeId& edge) const { + VTR_ASSERT_DEBUG(edge.is_valid()); return edge_src_node_[edge]; } /** @brief Get the destination node for the specified edge. */ RRNodeId edge_sink_node(const RREdgeId& edge) const { + VTR_ASSERT_DEBUG(edge.is_valid()); return edge_dest_node_[edge]; } diff --git a/vpr/src/route/connection_router.cpp b/vpr/src/route/connection_router.cpp index 9badc59d8f4..3480814b4ea 100644 --- a/vpr/src/route/connection_router.cpp +++ b/vpr/src/route/connection_router.cpp @@ -372,7 +372,7 @@ void ConnectionRouter::timing_driven_expand_cheapest(t_heap* cheapest, VTR_LOGV_DEBUG(router_debug_, " Better cost to %d\n", inode); VTR_LOGV_DEBUG(router_debug_, " New total cost: %g\n", new_total_cost); VTR_LOGV_DEBUG(router_debug_, " New back cost: %g\n", new_back_cost); - VTR_LOGV_DEBUG(router_debug_, " Setting path costs for associated node %d (from %d edge %zu)\n", + 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", cheapest->index, static_cast(rr_graph_->edge_src_node(cheapest->prev_edge())), static_cast(cheapest->prev_edge()));