We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a881b56 commit bcda068Copy full SHA for bcda068
vpr/src/base/grid_block.h
@@ -59,6 +59,12 @@ class GridBlock {
59
return grid_blocks_[loc.layer_num][loc.x][loc.y].blocks.size();
60
}
61
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
+ */
68
inline int get_usage(const t_physical_tile_loc loc) const {
69
int usage = 0;
70
for (size_t sub_tile = 0; sub_tile < num_blocks_at_location(loc); ++sub_tile) {
0 commit comments