Skip to content

Commit f26768a

Browse files
committed
cleaned up names of routines which check whether floorplan regions are overfull
1 parent 9f14605 commit f26768a

File tree

4 files changed

+6
-21
lines changed

4 files changed

+6
-21
lines changed

vpr/src/pack/cluster_util.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,6 @@ void free_clustering_data(const t_packer_opts& packer_opts,
250250
free(primitives_list);
251251
}
252252

253-
void check_floorplan_regions(bool& floorplan_regions_overfull) {
254-
floorplan_regions_overfull = check_clusters_floorplan_feasibility();
255-
}
256-
257253
//check the clustering and output it
258254
void check_and_output_clustering(const t_packer_opts& packer_opts,
259255
const std::unordered_set<AtomNetId>& is_clock,
@@ -272,7 +268,8 @@ void check_and_output_clustering(const t_packer_opts& packer_opts,
272268

273269
output_clustering(intra_lb_routing, packer_opts.global_clocks, is_clock, arch->architecture_id, packer_opts.output_file.c_str(), false);
274270

275-
check_floorplan_regions(floorplan_regions_overfull);
271+
//check_floorplan_regions(floorplan_regions_overfull);
272+
floorplan_regions_overfull = floorplan_constraints_regions_overfull();
276273

277274
VTR_ASSERT(cluster_ctx.clb_nlist.blocks().size() == intra_lb_routing.size());
278275
}

vpr/src/pack/cluster_util.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ void free_clustering_data(const t_packer_opts& packer_opts,
8484
t_molecule_link* memory_pool,
8585
t_pb_graph_node** primitives_list);
8686

87-
void check_floorplan_regions(bool& floorplan_regions_overfull);
88-
8987
//check clustering legality and output it
9088
void check_and_output_clustering(const t_packer_opts& packer_opts,
9189
const std::unordered_set<AtomNetId>& is_clock,

vpr/src/pack/constraints_report.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
/*
2-
* constraints_report.cpp
3-
*
4-
* Created on: Dec. 7, 2021
5-
* Author: khalid88
6-
*/
7-
81
#include "constraints_report.h"
92

10-
bool check_clusters_floorplan_feasibility() {
3+
bool floorplan_constraints_regions_overfull() {
114
GridTileLookup grid_tiles;
125

136
auto& cluster_ctx = g_vpr_ctx.clustering();

vpr/src/pack/constraints_report.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
/*
2-
* constraints_report.h
3-
*
4-
* Created on: Dec. 7, 2021
5-
* Author: khalid88
1+
/* Perform a check at the end of each packing iteration to see whether any
2+
* floorplan regions have been packed with too many clusters.
63
*/
74

85
#ifndef VPR_SRC_PACK_CONSTRAINTS_REPORT_H_
@@ -19,6 +16,6 @@
1916
* If the region is overfull, a message is printed saying which
2017
* region is overfull, and by how many clusters.
2118
*/
22-
bool check_clusters_floorplan_feasibility();
19+
bool floorplan_constraints_regions_overfull();
2320

2421
#endif /* VPR_SRC_PACK_CONSTRAINTS_REPORT_H_ */

0 commit comments

Comments
 (0)