From 10cefebca884058a8fcfd814cbb0a8f9ef32b4bc Mon Sep 17 00:00:00 2001 From: tangxifan Date: Tue, 23 Aug 2022 11:00:23 -0700 Subject: [PATCH] [engine] fixing bugs on using subtile index --- openfpga/src/fpga_bitstream/build_grid_bitstream.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openfpga/src/fpga_bitstream/build_grid_bitstream.cpp b/openfpga/src/fpga_bitstream/build_grid_bitstream.cpp index 518cfccff..a28ba8425 100644 --- a/openfpga/src/fpga_bitstream/build_grid_bitstream.cpp +++ b/openfpga/src/fpga_bitstream/build_grid_bitstream.cpp @@ -708,8 +708,9 @@ void build_physical_block_bitstream(BitstreamManager& bitstream_manager, * it as a mode under a */ for (size_t z = 0; z < place_annotation.grid_blocks(grid_coord).size(); ++z) { - VTR_ASSERT(1 == grid_type->sub_tiles[z].equivalent_sites.size()); - for (t_logical_block_type_ptr lb_type : grid_type->sub_tiles[z].equivalent_sites) { + int sub_tile_index = device_annotation.physical_tile_z_to_subtile_index(grid_type, z); + VTR_ASSERT(1 == grid_type->sub_tiles[sub_tile_index].equivalent_sites.size()); + for (t_logical_block_type_ptr lb_type : grid_type->sub_tiles[sub_tile_index].equivalent_sites) { /* Bypass empty pb_graph */ if (nullptr == lb_type->pb_graph_head) { continue;