Skip to content

Commit efc0b40

Browse files
committed
added comments and changed arg type to enum
1 parent abc1c1b commit efc0b40

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

vpr/src/pack/re_cluster_util.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ bool start_new_cluster_for_mol(t_pack_molecule* molecule,
130130
t_lb_router_data** router_data,
131131
PartitionRegion& temp_cluster_pr,
132132
NocGroupId& temp_cluster_noc_grp_id,
133-
const int& detailed_routing_stage) {
133+
enum e_detailed_routing_stages detailed_routing_stage) {
134134
auto& atom_ctx = g_vpr_ctx.atom();
135135
auto& floorplanning_ctx = g_vpr_ctx.mutable_floorplanning();
136136
auto& helper_ctx = g_vpr_ctx.mutable_cl_helper();
@@ -214,7 +214,7 @@ bool pack_mol_in_existing_cluster(t_pack_molecule* molecule,
214214
bool during_packing,
215215
t_clustering_data& clustering_data,
216216
t_lb_router_data*& router_data,
217-
const int& detailed_routing_stage) {
217+
enum e_detailed_routing_stages detailed_routing_stage) {
218218
auto& helper_ctx = g_vpr_ctx.mutable_cl_helper();
219219
auto& cluster_ctx = g_vpr_ctx.mutable_clustering();
220220

vpr/src/pack/re_cluster_util.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ void remove_mol_from_cluster(const t_pack_molecule* molecule,
7676
* (is updated if this function is called during packing, especially intra_lb_routing data member).
7777
* @param router_data: returns the intra logic block router data.
7878
* @param temp_cluster_pr: returns the partition region of the new cluster.
79+
* @param detailed_routing_stage: options are E_DETAILED_ROUTE_FOR_EACH_ATOM (default) and E_DETAILED_ROUTE_AT_END_ONLY
80+
* specifies whether or not to run intra-cluster routing-based legality checking
81+
* after adding the molecule to the cluster; default is the more conservative option,
82+
* which is used in the top level re-clustering API functions
7983
*/
8084
bool start_new_cluster_for_mol(t_pack_molecule* molecule,
8185
const t_logical_block_type_ptr& type,
@@ -89,7 +93,7 @@ bool start_new_cluster_for_mol(t_pack_molecule* molecule,
8993
t_lb_router_data** router_data,
9094
PartitionRegion& temp_cluster_pr,
9195
NocGroupId& temp_cluster_noc_grp_id,
92-
const int& detailed_routing_stage = 1);
96+
enum e_detailed_routing_stages detailed_routing_stage = E_DETAILED_ROUTE_FOR_EACH_ATOM);
9397

9498
/**
9599
* @brief A function that packs a molecule into an existing cluster

0 commit comments

Comments
 (0)