Skip to content

Commit 8791d19

Browse files
authored
Merge pull request #2585 from verilog-to-routing/add_enable_pin_counting_filter_option_to_recluster_util
add pin counting filter option to pack_mol_in_existing_cluster
2 parents 6e85a77 + 422fabe commit 8791d19

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

vpr/src/pack/re_cluster_util.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ bool pack_mol_in_existing_cluster(t_pack_molecule* molecule,
212212
std::unordered_set<AtomBlockId>* new_clb_atoms,
213213
bool during_packing,
214214
t_clustering_data& clustering_data,
215-
t_lb_router_data*& router_data) {
215+
t_lb_router_data*& router_data,
216+
bool enable_pin_feasibility_filter) {
216217
auto& helper_ctx = g_vpr_ctx.mutable_cl_helper();
217218
auto& cluster_ctx = g_vpr_ctx.mutable_clustering();
218219

@@ -241,7 +242,7 @@ bool pack_mol_in_existing_cluster(t_pack_molecule* molecule,
241242
E_DETAILED_ROUTE_FOR_EACH_ATOM,
242243
router_data,
243244
0,
244-
helper_ctx.enable_pin_feasibility_filter,
245+
enable_pin_feasibility_filter,
245246
//false,
246247
helper_ctx.feasible_block_array_size,
247248
target_ext_pin_util,

vpr/src/pack/re_cluster_util.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,16 @@ bool start_new_cluster_for_mol(t_pack_molecule* molecule,
101101
* @param clustering_data: A data structure containing helper data for the clustering process
102102
* (is updated if this function is called during packing, especially intra_lb_routing data member).
103103
* @param router_data: returns the intra logic block router data.
104+
* @param enable_pin_feasibility_filter: do a pin couting based legality check (before or in place of intra-cluster routing check).
104105
*/
105106
bool pack_mol_in_existing_cluster(t_pack_molecule* molecule,
106107
int molecule_size,
107108
const ClusterBlockId& new_clb,
108109
std::unordered_set<AtomBlockId>* new_clb_atoms,
109110
bool during_packing,
110111
t_clustering_data& clustering_data,
111-
t_lb_router_data*& router_data);
112+
t_lb_router_data*& router_data,
113+
bool enable_pin_feasibility_filter = true);
112114

113115
/**
114116
* @brief A function that fix the clustered netlist if the move is performed

0 commit comments

Comments
 (0)