From c17e5d46ab93b0ed87896aef32596dc941dba2a3 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Mon, 22 Aug 2022 21:44:05 -0700 Subject: [PATCH] [engine] fixed a bug due to the API of subtile data structure --- openfpga/src/annotation/annotate_physical_tiles.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openfpga/src/annotation/annotate_physical_tiles.cpp b/openfpga/src/annotation/annotate_physical_tiles.cpp index 0cb8d93cd..db368ca7a 100644 --- a/openfpga/src/annotation/annotate_physical_tiles.cpp +++ b/openfpga/src/annotation/annotate_physical_tiles.cpp @@ -26,7 +26,7 @@ void build_physical_tile_pin2port_info(const DeviceContext& vpr_device_ctx, /* Walk through each subtile, consider their capacity and num of pins */ for (const t_sub_tile& sub_tile : physical_tile.sub_tiles) { /* Walk through capacity */ - for (int subtile_index = sub_tile.capacity.low; subtile_index < sub_tile.capacity.high; subtile_index++) { + for (int subtile_index = sub_tile.capacity.low; subtile_index <= sub_tile.capacity.high; subtile_index++) { /* For each sub tile, the starting pin index is (num_pins_per_subtile * index) + abs_index */ for (const t_physical_tile_port& tile_port : sub_tile.ports) { for (int pin_index = 0; pin_index < tile_port.num_pins; ++pin_index) {