Skip to content

Commit 317e2fe

Browse files
Update vpr_utils.cpp
1 parent 3f5633b commit 317e2fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vpr/src/util/vpr_utils.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2255,15 +2255,15 @@ std::vector<const t_pb_graph_node*> get_all_pb_graph_node_primitives(const t_pb_
22552255
}
22562256

22572257
bool is_inter_cluster_node(t_physical_tile_type_ptr physical_tile,
2258-
const t_vib_inf* vib,
2258+
const VibInf* vib,
22592259
t_rr_type node_type,
22602260
int node_ptc) {
22612261

22622262
if (node_type == CHANX || node_type == CHANY) {
22632263
return true;
2264-
} else if (node_type == MEDIUM) {
2264+
} else if (node_type == MEDIUM) { // This function will check all types of nodes. MEDIUM is added for avoiding errors.
22652265
VTR_ASSERT(vib != nullptr);
2266-
return (node_ptc < (int)vib->first_stages.size());
2266+
return (node_ptc < (int)vib->get_first_stages().size());
22672267
} else {
22682268
VTR_ASSERT(node_type == IPIN || node_type == OPIN || node_type == SINK || node_type == SOURCE);
22692269
if (node_type == IPIN || node_type == OPIN) {

0 commit comments

Comments
 (0)