From f1e3d53da619a4e088c9998a948944253cec6217 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Fri, 12 Jan 2024 14:16:07 -0800 Subject: [PATCH 1/2] [core] fixed a bug where pb pin fixup may fail when subtile capacities are not same --- openfpga/src/base/openfpga_pb_pin_fixup.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openfpga/src/base/openfpga_pb_pin_fixup.cpp b/openfpga/src/base/openfpga_pb_pin_fixup.cpp index e17a221833..d332ae67c5 100644 --- a/openfpga/src/base/openfpga_pb_pin_fixup.cpp +++ b/openfpga/src/base/openfpga_pb_pin_fixup.cpp @@ -47,8 +47,7 @@ static void update_cluster_pin_with_post_routing_results( * here z offset is the location in the multiple-logic-tile tile Get * physical pin does not consider THIS!!!! */ - int physical_pin = z * logical_block->pb_type->num_pins + - get_physical_pin(physical_tile, logical_block, j); + int physical_pin = get_physical_pin_at_sub_tile_location(physical_tile, logical_block, z, j); auto pin_class = physical_tile->pin_class[physical_pin]; auto class_inf = physical_tile->class_inf[pin_class]; From 59deb97d5d6822cdd43694514b517cfc00b602a1 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Fri, 12 Jan 2024 14:17:10 -0800 Subject: [PATCH 2/2] [core] code format --- openfpga/src/base/openfpga_pb_pin_fixup.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openfpga/src/base/openfpga_pb_pin_fixup.cpp b/openfpga/src/base/openfpga_pb_pin_fixup.cpp index d332ae67c5..22bff36c43 100644 --- a/openfpga/src/base/openfpga_pb_pin_fixup.cpp +++ b/openfpga/src/base/openfpga_pb_pin_fixup.cpp @@ -47,7 +47,8 @@ static void update_cluster_pin_with_post_routing_results( * here z offset is the location in the multiple-logic-tile tile Get * physical pin does not consider THIS!!!! */ - int physical_pin = get_physical_pin_at_sub_tile_location(physical_tile, logical_block, z, j); + int physical_pin = + get_physical_pin_at_sub_tile_location(physical_tile, logical_block, z, j); auto pin_class = physical_tile->pin_class[physical_pin]; auto class_inf = physical_tile->class_inf[pin_class];