Skip to content

Commit 343cf31

Browse files
committed
Revert "[libs][archfpga] use pb_pin_to_pin_num to return pb_pin physical_num"
This reverts commit ffe3c7c.
1 parent ffe3c7c commit 343cf31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/libarchfpga/src/physical_types_util.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,8 @@ int get_pb_pin_physical_num(t_physical_tile_type_ptr physical_tile,
11871187
sub_tile->capacity.low + relative_cap,
11881188
pin->pin_count_in_cluster);
11891189
} else {
1190-
pin_physical_num = physical_tile->pb_pin_to_pin_num.at(pin);
1190+
int offset = sub_tile->intra_pin_range[relative_cap].at(logical_block).low;
1191+
pin_physical_num = pin->pin_count_in_cluster + offset;
11911192
}
11921193

11931194
return pin_physical_num;

0 commit comments

Comments
 (0)