@@ -17,24 +17,24 @@ void GridBlock::init_grid_blocks(const DeviceGrid& device_grid) {
17
17
for (size_t x = 0 ; x < grid_width; x++) {
18
18
for (size_t y = 0 ; y < grid_height; y++) {
19
19
const t_physical_tile_loc tile_loc ({(int )x, (int )y, (int )layer_num});
20
- auto type = device_grid.get_physical_type (tile_loc);
20
+ t_physical_tile_type_ptr type = device_grid.get_physical_type (tile_loc);
21
21
initialized_grid_block_at_location (tile_loc, type->capacity );
22
22
}
23
23
}
24
24
}
25
25
}
26
26
27
27
void GridBlock::zero_initialize () {
28
- auto & device_ctx = g_vpr_ctx.device ();
28
+ const DeviceContext & device_ctx = g_vpr_ctx.device ();
29
29
30
30
/* Initialize all occupancy to zero. */
31
31
for (int layer_num = 0 ; layer_num < (int )device_ctx.grid .get_num_layers (); layer_num++) {
32
32
for (int i = 0 ; i < (int )device_ctx.grid .width (); i++) {
33
33
for (int j = 0 ; j < (int )device_ctx.grid .height (); j++) {
34
- auto tile = device_ctx.grid .get_physical_type ({i, j, layer_num});
34
+ t_physical_tile_type_ptr tile = device_ctx.grid .get_physical_type ({i, j, layer_num});
35
35
36
- for (const auto & sub_tile : tile->sub_tiles ) {
37
- auto capacity = sub_tile.capacity ;
36
+ for (const t_sub_tile & sub_tile : tile->sub_tiles ) {
37
+ t_capacity_range capacity = sub_tile.capacity ;
38
38
39
39
for (int k = 0 ; k < capacity.total (); k++) {
40
40
set_block_at_location ({i, j, k + capacity.low , layer_num}, ClusterBlockId::INVALID ());
@@ -46,8 +46,8 @@ void GridBlock::zero_initialize() {
46
46
}
47
47
48
48
void GridBlock::load_from_block_locs (const vtr::vector_map<ClusterBlockId, t_block_loc>& block_locs) {
49
- auto & cluster_ctx = g_vpr_ctx.clustering ();
50
- auto & device_ctx = g_vpr_ctx.device ();
49
+ const ClusteringContext & cluster_ctx = g_vpr_ctx.clustering ();
50
+ const DeviceContext & device_ctx = g_vpr_ctx.device ();
51
51
52
52
zero_initialize ();
53
53
0 commit comments