Skip to content

Commit 763528e

Browse files
committed
place: change variable names
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 84e48a9 commit 763528e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

vpr/src/place/compressed_grid.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ std::vector<t_compressed_block_grid> create_compressed_block_grids() {
3535
// Given that a logical block can potentially be compatible with only a subset of the
3636
// sub tiles of a physical tile, we need to ensure which sub tile locations are part of
3737
// this subset.
38-
for (int capacity = 0; capacity < physical_tile->capacity; capacity++) {
39-
if (is_sub_tile_compatible(physical_tile, &logical_block, capacity)) {
40-
compatible_sub_tiles.push_back(capacity);
38+
for (int isub_tile = 0; isub_tile < physical_tile->capacity; isub_tile++) {
39+
if (is_sub_tile_compatible(physical_tile, &logical_block, isub_tile)) {
40+
compatible_sub_tiles.push_back(isub_tile);
4141
}
4242
}
4343

4444
// For each of physical tiles compatible with the current logical block, create add an entry
4545
// to the compatible sub tiles map with the physical tile index and the above generated vector.
46-
compressed_block_grid.compatible_sub_tiles_for_tile_map.insert({physical_tile->index, compatible_sub_tiles});
46+
compressed_block_grid.compatible_sub_tiles_for_tile.insert({physical_tile->index, compatible_sub_tiles});
4747
}
4848

4949
compressed_type_grids[logical_block.index] = compressed_block_grid;

vpr/src/place/compressed_grid.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct t_compressed_block_grid {
3737
//corresponding to the possible placement location for a given logical block
3838
// - key: physical tile index
3939
// - value: vector of compatible sub tiles for the physical tile/logical block pair
40-
std::unordered_map<int, std::vector<int>> compatible_sub_tiles_for_tile_map;
40+
std::unordered_map<int, std::vector<int>> compatible_sub_tiles_for_tile;
4141
};
4242

4343
//Compressed grid space for each block type

vpr/src/place/move_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ bool find_to_loc_uniform(t_logical_block_type_ptr type,
639639

640640
//Each x/y location possibly contains multiple sub tiles, so we need to pick
641641
//a z location within a compatible sub tile.
642-
auto& compatible_sub_tiles = compressed_block_grid.compatible_sub_tiles_for_tile_map.at(to_type->index);
642+
auto& compatible_sub_tiles = compressed_block_grid.compatible_sub_tiles_for_tile.at(to_type->index);
643643
to.sub_tile = compatible_sub_tiles[vtr::irand((int)compatible_sub_tiles.size() - 1)];
644644

645645
VTR_ASSERT_MSG(is_tile_compatible(to_type, type), "Type must be compatible");

0 commit comments

Comments
 (0)