Skip to content

Commit 801848d

Browse files
committed
[VPR] Add comments for the overloaded API
1 parent e02b3d2 commit 801848d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

vpr/src/util/vpr_utils.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@ t_physical_tile_type_ptr get_physical_tile_type(const ClusterBlockId blk);
196196

197197
//Returns the sub tile index (within 'physical_tile') corresponding to the
198198
//'logical block'
199+
//
200+
//This function will return the index for the first sub_tile that can accommodate
201+
//the logical block
202+
//It is typically called before/during placement,
203+
//when picking a sub-tile to fit a logical block
204+
//
199205
int get_logical_block_physical_sub_tile_index(t_physical_tile_type_ptr physical_tile,
200206
t_logical_block_type_ptr logical_block);
201207

@@ -227,8 +233,9 @@ int get_logical_block_physical_sub_tile_index(t_physical_tile_type_ptr physical_
227233
// |<----- capacity.low ----->|<----- capacity.low + 1 ----->| ... |<----- sub_tile_capacity ---->|
228234
//
229235
//
230-
//This function is called only after placement is finished, where all the logical
231-
//blocks are assigned to a specific location of a tile!!!
236+
//This function is created for device-level information inquiry.
237+
//Therefore, it should ONLY require device-level information as inputs!!!
238+
//It should NOT need any mapping results as inputs!!!
232239
//
233240
//Throws an exception if the corresponding physical pin can't be found.
234241
int get_post_placement_physical_pin(t_physical_tile_type_ptr physical_tile,

0 commit comments

Comments
 (0)