Skip to content

Commit 1dc11cf

Browse files
committed
FlatRecon: Remove same tile type condition from neighbor pass to increase cluster density.
1 parent 4cf678a commit 1dc11cf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

vpr/src/analytical_place/full_legalizer.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ FlatRecon::neighbor_clustering(ClusterLegalizer& cluster_legalizer,
489489
if (cluster_legalizer.is_mol_clustered(molecule_id))
490490
continue;
491491

492-
// Get 8-neighbouring tile locations of the current molecule in the same layer and same type.
492+
// Get 8-neighbouring tile locations of the current molecule in the same layer.
493493
std::vector<t_physical_tile_loc> neighbor_tile_locs;
494494
neighbor_tile_locs.reserve(8);
495495
auto [layers, width, height] = device_grid_.dim_sizes();
@@ -499,8 +499,6 @@ FlatRecon::neighbor_clustering(ClusterLegalizer& cluster_legalizer,
499499
int neighbor_x = loc.x + dx, neighbor_y = loc.y + dy;
500500
if (neighbor_x < 0 || neighbor_x >= (int)width || neighbor_y < 0 || neighbor_y >= (int)height)
501501
continue;
502-
if (device_grid_.get_physical_type(loc) != device_grid_.get_physical_type({neighbor_x, neighbor_y, loc.layer_num}))
503-
continue;
504502
neighbor_tile_locs.push_back({neighbor_x, neighbor_y, loc.layer_num});
505503
}
506504
}

0 commit comments

Comments
 (0)