Skip to content

Commit d0cc966

Browse files
check that node layer matches between indices and graph
1 parent fc411bd commit d0cc966

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

vpr/src/route/rr_graph_generation/rr_node_indices.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,13 @@ bool verify_rr_node_indices(const DeviceGrid& grid,
482482
describe_rr_node(rr_graph, grid, rr_indexed_data, inode, is_flat).c_str());
483483
}
484484

485+
if (rr_graph.node_layer(inode) != l) {
486+
VPR_ERROR(VPR_ERROR_ROUTE, "RR node layer does not match between rr_nodes and rr_node_indices (%s/%s): %s",
487+
rr_node_typename[rr_graph.node_type(inode)],
488+
rr_node_typename[rr_type],
489+
describe_rr_node(rr_graph, grid, rr_indexed_data, inode, is_flat).c_str());
490+
}
491+
485492
if (rr_graph.node_type(inode) == e_rr_type::CHANX) {
486493
VTR_ASSERT_MSG(rr_graph.node_ylow(inode) == rr_graph.node_yhigh(inode), "CHANX should be horizontal");
487494
if (y != rr_graph.node_ylow(inode)) {

0 commit comments

Comments
 (0)