Skip to content

Commit 50b56f3

Browse files
authored
Merge pull request #2160 from verilog-to-routing/2089-cluster-attraction-groups-for-tight-floorplan-constraints-not-working
fix #2089 Cluster attraction groups for tight floorplan constraints n…
2 parents d036e0f + bbaa0fd commit 50b56f3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

vpr/src/pack/cluster_util.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2247,9 +2247,10 @@ t_pack_molecule* get_highest_gain_molecule(t_pb* cur_pb,
22472247
}
22482248

22492249
// 4. Find unpacked molecules based on attraction group of the current cluster (if the cluster has an attraction group)
2250-
add_cluster_molecule_candidates_by_attraction_group(cur_pb, cluster_placement_stats_ptr, attraction_groups,
2251-
feasible_block_array_size, cluster_index, primitive_candidate_block_types);
2252-
2250+
if (cur_pb->pb_stats->num_feasible_blocks == 0) {
2251+
add_cluster_molecule_candidates_by_attraction_group(cur_pb, cluster_placement_stats_ptr, attraction_groups,
2252+
feasible_block_array_size, cluster_index, primitive_candidate_block_types);
2253+
}
22532254
/* Grab highest gain molecule */
22542255
t_pack_molecule* molecule = nullptr;
22552256
if (cur_pb->pb_stats->num_feasible_blocks > 0) {

0 commit comments

Comments
 (0)