Skip to content

Commit bcda068

Browse files
committed
Documenting get_usage method in grid blocks
1 parent a881b56 commit bcda068

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vpr/src/base/grid_block.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ class GridBlock {
5959
return grid_blocks_[loc.layer_num][loc.x][loc.y].blocks.size();
6060
}
6161

62+
/**
63+
* @brief Returns the number of subtiles in use at the specified grid location.
64+
*
65+
* Iterates over all subtiles at the given physical tile location and counts
66+
* how many are currently occupied by a block.
67+
*/
6268
inline int get_usage(const t_physical_tile_loc loc) const {
6369
int usage = 0;
6470
for (size_t sub_tile = 0; sub_tile < num_blocks_at_location(loc); ++sub_tile) {

0 commit comments

Comments
 (0)