Skip to content

Commit 1a33310

Browse files
committed
comment on enable_placer_debug
1 parent 491a2aa commit 1a33310

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

vpr/src/place/move_utils.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ void enable_placer_debug(const t_placer_opts& placer_opts,
504504
return;
505505
}
506506

507-
int blk_id_num = (int) size_t(blk_id);
507+
int blk_id_num = (int)size_t(blk_id);
508508
// Get the nets connected to the block
509509
const auto& cluster_ctx = g_vpr_ctx.clustering();
510510
const auto& cluster_blk_pb_type = cluster_ctx.clb_nlist.block_type(blk_id)->pb_type;
@@ -533,7 +533,7 @@ void enable_placer_debug(const t_placer_opts& placer_opts,
533533
} else {
534534
for (const auto& net_id : block_nets) {
535535
if (net_id.is_valid()) {
536-
int net_id_num = (int) size_t(net_id);
536+
int net_id_num = (int)size_t(net_id);
537537
if (placer_opts.placer_debug_net == net_id_num) {
538538
match_net = true;
539539
break;
@@ -544,7 +544,6 @@ void enable_placer_debug(const t_placer_opts& placer_opts,
544544

545545
if (active_blk_debug) f_placer_debug &= match_blk;
546546
if (active_net_debug) f_placer_debug &= match_net;
547-
548547
}
549548
#endif
550549

@@ -575,7 +574,7 @@ ClusterBlockId propose_block_to_move(const t_placer_opts& placer_opts,
575574
}
576575
}
577576
#ifdef VTR_ENABLE_DEBUG_LOGGING
578-
enable_placer_debug(placer_opts, b_from);
577+
enable_placer_debug(placer_opts, b_from);
579578
#endif
580579

581580
return b_from;

vpr/src/place/move_utils.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,14 @@ bool intersect_range_limit_with_floorplan_constraints(t_logical_block_type_ptr t
329329
std::string e_move_result_to_string(e_move_result move_outcome);
330330

331331
#ifdef VTR_ENABLE_DEBUG_LOGGING
332+
/**
333+
* @brief If the block ID passed to the placer_debug_net parameter of the command line is equal to blk_id, or if any of the nets
334+
* connected to the block share the same ID as the net ID passed to the placer_debug_net parameter of the command line,
335+
* then debugging information should be printed.
336+
*
337+
* @param placer_opts
338+
* @param blk_id The if of the block that is considered to be moved
339+
*/
332340
void enable_placer_debug(const t_placer_opts& placer_opts,
333341
ClusterBlockId blk_id);
334342
#endif

0 commit comments

Comments
 (0)