Skip to content

Commit c3cf08b

Browse files
committed
[vpr][route] update rr node indices to include medium type
1 parent 29423ae commit c3cf08b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vpr/src/route/rr_graph_generation/rr_node_indices.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,7 @@ bool verify_rr_node_indices(const DeviceGrid& grid,
517517
y,
518518
describe_rr_node(rr_graph, grid, rr_indexed_data, inode, is_flat).c_str());
519519
}
520-
} else if (rr_graph.node_type(inode) == e_rr_type::SOURCE || rr_graph.node_type(inode) == e_rr_type::SINK) {
521-
// Sources have co-ordinates covering the entire block they are in, but not sinks
520+
} else if (rr_graph.node_type(inode) == e_rr_type::SOURCE || rr_graph.node_type(inode) == e_rr_type::SINK || rr_graph.node_type(inode) == e_rr_type::MEDIUM) {
522521
if (!rr_graph.x_in_node_range(x, inode)) {
523522
VPR_ERROR(VPR_ERROR_ROUTE, "RR node x positions do not agree between rr_nodes (%d <-> %d) and rr_node_indices (%d): %s",
524523
rr_graph.node_xlow(inode),

0 commit comments

Comments
 (0)