@@ -4,7 +4,7 @@ void GridTileLookup::initialize_grid_tile_matrices() {
4
4
auto & device_ctx = g_vpr_ctx.device ();
5
5
6
6
// Will store the max number of tile locations for each logical block type
7
- max_tile_counts .resize (device_ctx.logical_block_types .size ());
7
+ max_placement_locations .resize (device_ctx.logical_block_types .size ());
8
8
9
9
for (const auto & type : device_ctx.logical_block_types ) {
10
10
vtr::NdMatrix<int , 2 > type_count ({device_ctx.grid .width (), device_ctx.grid .height ()});
@@ -24,7 +24,7 @@ void GridTileLookup::fill_type_matrix(t_logical_block_type_ptr block_type, vtr::
24
24
* the correct type at each location. For each location, we store the cumulative
25
25
* number of tiles of the type up to that location - meaning we store the number of
26
26
* subtiles at the location, plus the number of subtiles at the locations above and to
27
- * the left of it.
27
+ * the right of it.
28
28
*/
29
29
for (int i_col = type_count.dim_size (0 ) - 1 ; i_col >= 0 ; i_col--) {
30
30
for (int j_row = type_count.dim_size (1 ) - 1 ; j_row >= 0 ; j_row--) {
@@ -52,15 +52,15 @@ void GridTileLookup::fill_type_matrix(t_logical_block_type_ptr block_type, vtr::
52
52
}
53
53
54
54
// The total number of subtiles for the block type will be at [0][0]
55
- max_tile_counts [block_type->index ] = type_count[0 ][0 ];
55
+ max_placement_locations [block_type->index ] = type_count[0 ][0 ];
56
56
}
57
57
58
58
vtr::NdMatrix<int , 2 >& GridTileLookup::get_type_grid (t_logical_block_type_ptr block_type) {
59
59
return block_type_matrices[block_type->index ];
60
60
}
61
61
62
62
int GridTileLookup::total_type_tiles (t_logical_block_type_ptr block_type) {
63
- return max_tile_counts [block_type->index ];
63
+ return max_placement_locations [block_type->index ];
64
64
}
65
65
66
66
/*
0 commit comments