Skip to content

Commit 62335b5

Browse files
committed
[VPR] Rename the overloaded get_physical_pin() function to get_post_placement_physical_pin()
1 parent 95e704a commit 62335b5

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

vpr/src/pack/post_routing_pb_pin_fixup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static void update_cluster_pin_with_post_routing_results(const DeviceContext& de
115115
/* Get the ptc num for the pin in rr_graph, we need to consider the sub tile offset here
116116
* sub tile offset is the location in a sub tile whose capacity is larger than zero
117117
*/
118-
int physical_pin = get_physical_pin(physical_tile, logical_block, sub_tile_z, pb_type_pin);
118+
int physical_pin = get_post_placement_physical_pin(physical_tile, logical_block, sub_tile_z, pb_type_pin);
119119
VTR_ASSERT(physical_pin < physical_tile->num_pins);
120120

121121
auto pin_class = physical_tile->pin_class[physical_pin];

vpr/src/util/vpr_utils.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2337,10 +2337,10 @@ int get_logical_block_physical_sub_tile_index(t_physical_tile_type_ptr physical_
23372337
return sub_tile_index;
23382338
}
23392339

2340-
int get_physical_pin(t_physical_tile_type_ptr physical_tile,
2341-
t_logical_block_type_ptr logical_block,
2342-
int sub_tile_capacity,
2343-
int pin) {
2340+
int get_post_placement_physical_pin(t_physical_tile_type_ptr physical_tile,
2341+
t_logical_block_type_ptr logical_block,
2342+
int sub_tile_capacity,
2343+
int pin) {
23442344
int sub_tile_index = get_logical_block_physical_sub_tile_index(physical_tile, logical_block, sub_tile_capacity);
23452345

23462346
if (sub_tile_index == OPEN) {

vpr/src/util/vpr_utils.h

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ int get_logical_block_physical_sub_tile_index(t_physical_tile_type_ptr physical_
202202
//Returns the physical pin index (within 'physical_tile') corresponding to the
203203
//logical index ('pin' of the first instance of 'logical_block' within the physcial tile.
204204
//
205+
//This function is called before/during placement, when a sub tile index was not yet assigned.
206+
//
205207
//Throws an exception if the corresponding physical pin can't be found.
206208
int get_physical_pin(t_physical_tile_type_ptr physical_tile,
207209
t_logical_block_type_ptr logical_block,
@@ -217,11 +219,14 @@ int get_logical_block_physical_sub_tile_index(t_physical_tile_type_ptr physical_
217219
//logical index ('pin' of the first instance of 'logical_block' within the physcial tile.
218220
//This function considers if a given offset is in the range of sub tile capacity
219221
//
222+
//This function is called only after placement is finished, where all the logical
223+
//blocks are assigned to a specific location of a tile!!!
224+
//
220225
//Throws an exception if the corresponding physical pin can't be found.
221-
int get_physical_pin(t_physical_tile_type_ptr physical_tile,
222-
t_logical_block_type_ptr logical_block,
223-
int sub_tile_capacity,
224-
int pin);
226+
int get_post_placement_physical_pin(t_physical_tile_type_ptr physical_tile,
227+
t_logical_block_type_ptr logical_block,
228+
int sub_tile_capacity,
229+
int pin);
225230

226231
//Returns the physical pin index (within 'physical_tile') corresponding to the
227232
//logical index ('pin') of the 'logical_block' at sub-tile location 'sub_tile_index'.

0 commit comments

Comments
 (0)