[core] fixed a bug where pb pin fixup may fail when subtile capacities are not same

This commit is contained in:
tangxifan 2024-01-12 14:16:07 -08:00
parent e1ee5d5c7a
commit f1e3d53da6
1 changed files with 1 additions and 2 deletions

View File

@ -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];