Skip to content

Commit bc81406

Browse files
committed
fix typo
1 parent 19b6018 commit bc81406

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

vpr/src/route/rr_graph_generation/rr_graph_intra_cluster.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -197,33 +197,33 @@ static std::vector<int> get_cluster_block_pins(t_physical_tile_type_ptr physical
197197
// A counter to keep track of number of tile-level pins for the sub-tiles before the current sub-tile.
198198
int seen_sub_tiles_num_cluser_pins = 0;
199199
// The number of tile-level pins for the sub-tile instance that the cluster block is mapped to.
200-
int cluster_sub_tile_isnt_num_pins;
200+
int cluster_sub_tile_inst_num_pins;
201201
// A flag to check if the sub-tile instance that the cluster block is mapped to has been found.
202202
bool found_sub_tile = false;
203203

204204
// Iterate over all the sub-tiles to find the sub-tile instance that the cluster block is mapped to.
205-
for (const t_sub_tile& tmp_sub_tile: physical_tile->sub_tiles) {
206-
if (tmp_sub_tile.capacity.is_in_range(sub_tile_index)) {
205+
for (const t_sub_tile& sub_tile: physical_tile->sub_tiles) {
206+
if (sub_tile.capacity.is_in_range(sub_tile_index)) {
207207
// This sub-tile type is the one that the cluster block is mapped to.
208208
found_sub_tile = true;
209209
// The number of tile-level pins for all isntances of the same sub-tile type is the same. Thus,
210210
// we can the the number of tile-level pins for the sub-tile instance by dividing the total number of pins
211211
// for the given sub-tile type by the number of instances.
212-
cluster_sub_tile_isnt_num_pins = (tmp_sub_tile.num_phy_pins / tmp_sub_tile.capacity.total());
213-
int rel_cap = sub_tile_index - tmp_sub_tile.capacity.low;
212+
cluster_sub_tile_inst_num_pins = (sub_tile.num_phy_pins / sub_tile.capacity.total());
213+
int rel_cap = sub_tile_index - sub_tile.capacity.low;
214214
// Add the number of tile-level pins for the instances before the current sub-tile instance to the counter.
215-
seen_sub_tiles_num_cluser_pins += rel_cap * cluster_sub_tile_isnt_num_pins;
215+
seen_sub_tiles_num_cluser_pins += rel_cap * cluster_sub_tile_inst_num_pins;
216216
break;
217217
} else {
218218
// This sub-tile type is not the one that the cluster block is mapped to.
219219
// Add the number of tile-level pins for this sub-tile type to the counter
220220
// and continue to the next sub-tile type.
221-
seen_sub_tiles_num_cluser_pins += tmp_sub_tile.num_phy_pins;
221+
seen_sub_tiles_num_cluser_pins += sub_tile.num_phy_pins;
222222
}
223223
}
224224

225225
VTR_ASSERT(found_sub_tile);
226-
std::vector<int> pin_num_vec(cluster_sub_tile_isnt_num_pins);
226+
std::vector<int> pin_num_vec(cluster_sub_tile_inst_num_pins);
227227
// Pin numbers are assigned such that each instance’s tile-level pins
228228
// occupy a continuous range equal to the total number of tile-level pins for that instance.
229229
// Since we know the starting index, we use std::iota to generate that range.

0 commit comments

Comments
 (0)