|
33 | 33 | #include "rr_graph_sbox.h" |
34 | 34 | #include "rr_graph_intra_cluster.h" |
35 | 35 | #include "rr_graph_tile_nodes.h" |
36 | | -#include "rr_graph_3d.h" |
| 36 | +#include "rr_graph_sg.h" |
37 | 37 | #include "rr_graph_timing_params.h" |
38 | 38 | #include "check_rr_graph.h" |
39 | 39 | #include "echo_files.h" |
@@ -3247,65 +3247,6 @@ t_non_configurable_rr_sets identify_non_configurable_rr_sets() { |
3247 | 3247 | return groups.output_sets(); |
3248 | 3248 | } |
3249 | 3249 |
|
3250 | | -bool pins_connected(t_block_loc cluster_loc, |
3251 | | - t_physical_tile_type_ptr physical_type, |
3252 | | - t_logical_block_type_ptr logical_block, |
3253 | | - int from_pin_logical_num, |
3254 | | - int to_pin_logical_num) { |
3255 | | - const auto& rr_graph = g_vpr_ctx.device().rr_graph; |
3256 | | - const auto& rr_spatial_look_up = rr_graph.node_lookup(); |
3257 | | - |
3258 | | - t_physical_tile_loc loc; |
3259 | | - loc.x = cluster_loc.loc.x; |
3260 | | - loc.y = cluster_loc.loc.y; |
3261 | | - loc.layer_num = cluster_loc.loc.layer; |
3262 | | - int abs_cap = cluster_loc.loc.sub_tile; |
3263 | | - const t_sub_tile* sub_tile = nullptr; |
3264 | | - |
3265 | | - for (const t_sub_tile& sub_tile_ : physical_type->sub_tiles) { |
3266 | | - if (sub_tile_.capacity.is_in_range(abs_cap)) { |
3267 | | - sub_tile = &sub_tile_; |
3268 | | - break; |
3269 | | - } |
3270 | | - } |
3271 | | - VTR_ASSERT(sub_tile != nullptr); |
3272 | | - int rel_cap = abs_cap - sub_tile->capacity.low; |
3273 | | - VTR_ASSERT(rel_cap >= 0); |
3274 | | - |
3275 | | - auto from_pb_pin = logical_block->pin_logical_num_to_pb_pin_mapping.at(from_pin_logical_num); |
3276 | | - int from_pin_physical_num = get_pb_pin_physical_num(physical_type, |
3277 | | - sub_tile, |
3278 | | - logical_block, |
3279 | | - rel_cap, |
3280 | | - from_pb_pin); |
3281 | | - VTR_ASSERT(from_pin_physical_num != UNDEFINED); |
3282 | | - |
3283 | | - auto to_pb_pin = logical_block->pin_logical_num_to_pb_pin_mapping.at(to_pin_logical_num); |
3284 | | - int to_pin_physical_num = get_pb_pin_physical_num(physical_type, |
3285 | | - sub_tile, |
3286 | | - logical_block, |
3287 | | - rel_cap, |
3288 | | - to_pb_pin); |
3289 | | - |
3290 | | - VTR_ASSERT(to_pin_physical_num != UNDEFINED); |
3291 | | - |
3292 | | - RRNodeId from_node = get_pin_rr_node_id(rr_spatial_look_up, physical_type, loc, from_pin_physical_num); |
3293 | | - VTR_ASSERT(from_node != RRNodeId::INVALID()); |
3294 | | - |
3295 | | - RRNodeId to_node = get_pin_rr_node_id(rr_spatial_look_up, physical_type, loc, to_pin_physical_num); |
3296 | | - VTR_ASSERT(to_node != RRNodeId::INVALID()); |
3297 | | - |
3298 | | - int num_edges = rr_graph.num_edges(from_node); |
3299 | | - |
3300 | | - for (int iedge = 0; iedge < num_edges; iedge++) { |
3301 | | - RRNodeId sink_node = rr_graph.edge_sink_node(from_node, iedge); |
3302 | | - if (sink_node == to_node) { |
3303 | | - return true; |
3304 | | - } |
3305 | | - } |
3306 | | - return false; |
3307 | | -} |
3308 | | - |
3309 | 3250 | static void process_non_config_sets() { |
3310 | 3251 | auto& device_ctx = g_vpr_ctx.mutable_device(); |
3311 | 3252 | EdgeGroups groups; |
|
0 commit comments