Skip to content

Commit 318e1c6

Browse files
authored
Merge pull request #2569 from verilog-to-routing/router_debug
Router Debug
2 parents a76e61b + ff2e0b6 commit 318e1c6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libs/librrgraph/src/base/rr_graph_storage.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,11 +401,13 @@ class t_rr_graph_storage {
401401

402402
/** @brief Get the source node for the specified edge. */
403403
RRNodeId edge_src_node(const RREdgeId& edge) const {
404+
VTR_ASSERT_DEBUG(edge.is_valid());
404405
return edge_src_node_[edge];
405406
}
406407

407408
/** @brief Get the destination node for the specified edge. */
408409
RRNodeId edge_sink_node(const RREdgeId& edge) const {
410+
VTR_ASSERT_DEBUG(edge.is_valid());
409411
return edge_dest_node_[edge];
410412
}
411413

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)