Skip to content

Commit 1726ad8

Browse files
committed
add detailed routing stage parameter to reclustering utils
1 parent b04f8c5 commit 1726ad8

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

vpr/src/pack/re_cluster_util.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ bool start_new_cluster_for_mol(t_pack_molecule* molecule,
129129
t_clustering_data& clustering_data,
130130
t_lb_router_data** router_data,
131131
PartitionRegion& temp_cluster_pr,
132-
NocGroupId& temp_cluster_noc_grp_id) {
132+
NocGroupId& temp_cluster_noc_grp_id,
133+
const int& detailed_routing_stage) {
133134
auto& atom_ctx = g_vpr_ctx.atom();
134135
auto& floorplanning_ctx = g_vpr_ctx.mutable_floorplanning();
135136
auto& helper_ctx = g_vpr_ctx.mutable_cl_helper();
@@ -164,7 +165,7 @@ bool start_new_cluster_for_mol(t_pack_molecule* molecule,
164165
helper_ctx.num_models,
165166
helper_ctx.max_cluster_size,
166167
clb_index,
167-
E_DETAILED_ROUTE_FOR_EACH_ATOM,
168+
detailed_routing_stage,
168169
*router_data,
169170
0,
170171
enable_pin_feasibility_filter,
@@ -212,7 +213,8 @@ bool pack_mol_in_existing_cluster(t_pack_molecule* molecule,
212213
std::unordered_set<AtomBlockId>* new_clb_atoms,
213214
bool during_packing,
214215
t_clustering_data& clustering_data,
215-
t_lb_router_data*& router_data) {
216+
t_lb_router_data*& router_data,
217+
const int& detailed_routing_stage) {
216218
auto& helper_ctx = g_vpr_ctx.mutable_cl_helper();
217219
auto& cluster_ctx = g_vpr_ctx.mutable_clustering();
218220

@@ -238,7 +240,7 @@ bool pack_mol_in_existing_cluster(t_pack_molecule* molecule,
238240
helper_ctx.num_models,
239241
helper_ctx.max_cluster_size,
240242
new_clb,
241-
E_DETAILED_ROUTE_FOR_EACH_ATOM,
243+
detailed_routing_stage,
242244
router_data,
243245
0,
244246
helper_ctx.enable_pin_feasibility_filter,

vpr/src/pack/re_cluster_util.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ bool start_new_cluster_for_mol(t_pack_molecule* molecule,
8888
t_clustering_data& clustering_data,
8989
t_lb_router_data** router_data,
9090
PartitionRegion& temp_cluster_pr,
91-
NocGroupId& temp_cluster_noc_grp_id);
91+
NocGroupId& temp_cluster_noc_grp_id,
92+
const int detailed_routing_stage = 1);
9293

9394
/**
9495
* @brief A function that packs a molecule into an existing cluster
@@ -107,7 +108,8 @@ bool pack_mol_in_existing_cluster(t_pack_molecule* molecule,
107108
std::unordered_set<AtomBlockId>* new_clb_atoms,
108109
bool during_packing,
109110
t_clustering_data& clustering_data,
110-
t_lb_router_data*& router_data);
111+
t_lb_router_data*& router_data,
112+
const int detailed_routing_stage = 1);
111113

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

0 commit comments

Comments
 (0)