@@ -962,6 +962,7 @@ static bool find_direct_connect_sample_locations(const t_direct_inf* direct,
962
962
963
963
auto & device_ctx = g_vpr_ctx.device ();
964
964
auto & grid = device_ctx.grid ;
965
+ const auto & node_lookup = device_ctx.rr_graph .node_lookup ();
965
966
966
967
// Search the grid for an instance of from/to blocks which satisfy this direct connect offsets,
967
968
// and which has the appropriate pins
@@ -979,10 +980,10 @@ static bool find_direct_connect_sample_locations(const t_direct_inf* direct,
979
980
// (with multi-width/height blocks pins may not exist at all locations)
980
981
bool from_pin_found = false ;
981
982
if (direct->from_side != NUM_SIDES) {
982
- RRNodeId from_pin_rr = device_ctx. rr_graph . node_lookup () .find_node (from_x, from_y, OPIN, from_pin, direct->from_side );
983
+ RRNodeId from_pin_rr = node_lookup.find_node (from_x, from_y, OPIN, from_pin, direct->from_side );
983
984
from_pin_found = (from_pin_rr != RRNodeId::INVALID ());
984
985
} else {
985
- (*scratch) = device_ctx. rr_graph . node_lookup () .find_nodes_at_all_sides (from_x, from_y, OPIN, from_pin);
986
+ (*scratch) = node_lookup.find_nodes_at_all_sides (from_x, from_y, OPIN, from_pin);
986
987
from_pin_found = !(*scratch).empty ();
987
988
}
988
989
if (!from_pin_found) continue ;
@@ -996,10 +997,10 @@ static bool find_direct_connect_sample_locations(const t_direct_inf* direct,
996
997
// (with multi-width/height blocks pins may not exist at all locations)
997
998
bool to_pin_found = false ;
998
999
if (direct->to_side != NUM_SIDES) {
999
- RRNodeId to_pin_rr = device_ctx. rr_graph . node_lookup () .find_node (to_x, to_y, IPIN, to_pin, direct->to_side );
1000
+ RRNodeId to_pin_rr = node_lookup.find_node (to_x, to_y, IPIN, to_pin, direct->to_side );
1000
1001
to_pin_found = (to_pin_rr != RRNodeId::INVALID ());
1001
1002
} else {
1002
- (*scratch) = device_ctx. rr_graph . node_lookup () .find_nodes_at_all_sides (to_x, to_y, IPIN, to_pin);
1003
+ (*scratch) = node_lookup.find_nodes_at_all_sides (to_x, to_y, IPIN, to_pin);
1003
1004
to_pin_found = !(*scratch).empty ();
1004
1005
}
1005
1006
if (!to_pin_found) continue ;
@@ -1037,13 +1038,13 @@ static bool find_direct_connect_sample_locations(const t_direct_inf* direct,
1037
1038
//
1038
1039
1039
1040
{
1040
- (*scratch) = device_ctx. rr_graph . node_lookup () .find_nodes_at_all_sides (from_x, from_y, SOURCE, from_pin_class);
1041
+ (*scratch) = node_lookup.find_nodes_at_all_sides (from_x, from_y, SOURCE, from_pin_class);
1041
1042
VTR_ASSERT ((*scratch).size () > 0 );
1042
1043
*src_rr = size_t ((*scratch)[0 ]);
1043
1044
}
1044
1045
1045
1046
{
1046
- (*scratch) = device_ctx. rr_graph . node_lookup () .find_nodes_at_all_sides (to_x, to_y, SINK, to_pin_class);
1047
+ (*scratch) = node_lookup.find_nodes_at_all_sides (to_x, to_y, SINK, to_pin_class);
1047
1048
VTR_ASSERT ((*scratch).size () > 0 );
1048
1049
*sink_rr = size_t ((*scratch)[0 ]);
1049
1050
}
0 commit comments