Skip to content

Commit 09ad165

Browse files
committed
Added comment for new function get_top_level_pb
1 parent c0da9b5 commit 09ad165

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

vpr/src/pack/cluster.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2072,9 +2072,6 @@ static void update_total_gain(float alpha, float beta, bool timing_driven, bool
20722072
cur_pb->pb_stats->sharinggain[blk_id] = 0;
20732073
}
20742074

2075-
/* Todo: Right now we update the gain multiple times for each block.
2076-
* Eventually want to move this out of the while loop and only update it
2077-
* for the top-level block in each cluster.*/
20782075
AttractGroupId atom_grp_id = attraction_groups.get_atom_attraction_group(blk_id);
20792076
if (atom_grp_id != AttractGroupId::INVALID() && atom_grp_id == cluster_att_grp_id) {
20802077
//increase gain of atom based on attraction group gain
@@ -3955,6 +3952,11 @@ static void print_le_count(std::vector<int>& le_count, const t_pb_type* le_pb_ty
39553952
VTR_LOG(" LEs used for registers only : %d\n\n", le_count[2]);
39563953
}
39573954

3955+
/**
3956+
* Given a pointer to a pb in a cluster, this routine returns
3957+
* a pointer to the top-level pb of the given pb.
3958+
* This is needed when updating the gain for a cluster.
3959+
*/
39583960
static t_pb* get_top_level_pb(t_pb* pb) {
39593961
t_pb* top_level_pb = pb;
39603962

0 commit comments

Comments
 (0)