Skip to content

Commit 9e0ae28

Browse files
Update describe_rr_node.cpp
1 parent 0f81e94 commit 9e0ae28

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

libs/librrgraph/src/utils/describe_rr_node.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ std::string describe_rr_node(const RRGraphView& rr_graph,
3737
msg += vtr::string_fmt(" pin: %d pin_name: %s",
3838
rr_graph.node_pin_num(inode),
3939
pin_name.c_str());
40+
} else if (rr_graph.node_type(inode) == MEDIUM) {
41+
auto index = rr_graph.node_ptc_num(inode);
42+
43+
msg += vtr::string_fmt(" medium index: %d",
44+
index);
4045
} else {
4146
VTR_ASSERT(rr_graph.node_type(inode) == SOURCE || rr_graph.node_type(inode) == SINK);
4247

@@ -50,4 +55,4 @@ std::string describe_rr_node(const RRGraphView& rr_graph,
5055
msg += " " + rr_graph.node_coordinate_to_string(inode);
5156

5257
return msg;
53-
}
58+
}

0 commit comments

Comments
 (0)