Skip to content

Commit ec85a46

Browse files
committed
[core] add more debuggin messages
1 parent c27caa3 commit ec85a46

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

vpr/src/tileable_rr_graph/rr_gsb.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,17 @@ void RRGSB::build_cb_opin_nodes(const RRGraphView& rr_graph) {
10451045
int cb_opin_index = -1;
10461046
get_node_side_and_index(rr_graph, cand_node, IN_PORT, cb_opin_side,
10471047
cb_opin_index);
1048+
if ((-1 == cb_opin_index) || (NUM_SIDES == cb_opin_side)) {
1049+
VTR_LOG("GSB[%lu][%lu]:\n", get_x(), get_y());
1050+
VTR_LOG("----------------------------------\n");
1051+
VTR_LOG("SRC node:\n");
1052+
VTR_LOG("Node info: %s\n", rr_graph.node_coordinate_to_string(cand_node).c_str());
1053+
VTR_LOG("Node ptc: %d\n", rr_graph.node_ptc_num(cand_node));
1054+
VTR_LOG("Fan-out nodes:\n");
1055+
for (const auto& temp_edge : rr_graph.edge_range(cand_node)) {
1056+
VTR_LOG("\t%s\n", rr_graph.node_coordinate_to_string(rr_graph.edge_sink_node(temp_edge)).c_str());
1057+
}
1058+
}
10481059
VTR_ASSERT((-1 != cb_opin_index) && (NUM_SIDES != cb_opin_side));
10491060

10501061
if (cb_opin_node_[icb_type][size_t(cb_opin_side)].end() ==

0 commit comments

Comments
 (0)