Skip to content

Commit fa9715f

Browse files
committed
fix warning
1 parent 74ae385 commit fa9715f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

vpr/src/pack/sync_netlists_to_routing_flat.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ static void sync_pb_routes_to_routing(void){
173173
auto& device_ctx = g_vpr_ctx.device();
174174
auto& atom_ctx = g_vpr_ctx.atom();
175175
auto& cluster_ctx = g_vpr_ctx.mutable_clustering();
176-
auto& place_ctx = g_vpr_ctx.placement();
177176
auto& route_ctx = g_vpr_ctx.routing();
178177
auto& rr_graph = device_ctx.rr_graph;
179178

@@ -336,14 +335,7 @@ static void sync_clustered_netlist_to_routing(void){
336335

337336
int pin_index = rr_graph.node_pin_num(rt_node.inode);
338337

339-
auto [_, subtile] = get_sub_tile_from_pin_physical_num(physical_tile, pin_index);
340-
341-
ClusterBlockId clb = place_ctx.grid_blocks().block_at_location({
342-
rr_graph.node_xlow(rt_node.inode),
343-
rr_graph.node_ylow(rt_node.inode),
344-
subtile,
345-
rr_graph.node_layer(rt_node.inode)
346-
});
338+
ClusterBlockId clb = get_cluster_block_from_rr_node(rt_node.inode);
347339

348340
if(!is_pin_on_tile(physical_tile, pin_index))
349341
continue;

0 commit comments

Comments
 (0)