Skip to content

Commit 4e64cd7

Browse files
authored
Merge pull request verilog-to-routing#1547 from andrewb1999/fix-initial-placement
Fix initial placement for heterogeneous tiles
2 parents 9551b91 + 5cf005b commit 4e64cd7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vpr/src/place/initial_placement.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,9 @@ static t_physical_tile_type_ptr pick_placement_type(t_logical_block_type_ptr log
330330
std::vector<std::vector<int>>& free_locations) {
331331
// Loop through the ordered map to get tiles in a decreasing priority order
332332
for (auto& tile : logical_block->equivalent_tiles) {
333-
for (auto sub_tile : tile->sub_tiles) {
334-
if (free_locations[tile->index][sub_tile.index] >= num_needed_types) {
333+
auto possible_sub_tiles = get_possible_sub_tile_indices(tile, logical_block);
334+
for (auto sub_tile_index : possible_sub_tiles) {
335+
if (free_locations[tile->index][sub_tile_index] >= num_needed_types) {
335336
return tile;
336337
}
337338
}

0 commit comments

Comments
 (0)