Skip to content

Commit efb99fc

Browse files
Update vpr_utils.cpp
1 parent 07627be commit efb99fc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

vpr/src/util/vpr_utils.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2265,15 +2265,11 @@ bool is_inter_cluster_node(t_physical_tile_type_ptr physical_tile,
22652265
VTR_ASSERT(vib != nullptr);
22662266
return (node_ptc < (int)vib->first_stages.size());
22672267
} else {
2268-
int x_low = rr_graph_view.node_xlow(node_id);
2269-
int y_low = rr_graph_view.node_ylow(node_id);
2270-
int layer = rr_graph_view.node_layer(node_id);
2271-
int node_ptc = rr_graph_view.node_ptc_num(node_id);
2272-
const t_physical_tile_type_ptr physical_tile = g_vpr_ctx.device().grid.get_physical_type({x_low, y_low, layer});
2268+
VTR_ASSERT(node_type == IPIN || node_type == OPIN || node_type == SINK || node_type == SOURCE);
22732269
if (node_type == IPIN || node_type == OPIN) {
22742270
return is_pin_on_tile(physical_tile, node_ptc);
22752271
} else {
2276-
VTR_ASSERT_DEBUG(node_type == SINK || node_type == SOURCE);
2272+
VTR_ASSERT(node_type == SINK || node_type == SOURCE);
22772273
return is_class_on_tile(physical_tile, node_ptc);
22782274
}
22792275
}

0 commit comments

Comments
 (0)