Skip to content

Commit 7e3c88f

Browse files
committed
[VPR] Update comments for RRSpatialLookup
1 parent a53ab00 commit 7e3c88f

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

vpr/src/device/rr_spatial_lookup.h

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,26 @@ class RRSpatialLookup {
3939
/**
4040
* @brief Returns the index of the specified routing resource node.
4141
*
42-
* - (x, y) are the grid location within the FPGA
43-
* - rr_type specifies the type of resource,
44-
* - ptc gives a unique number of resources of that type (e.g. CHANX) at that (x,y).
45-
* All ptcs start at 0 and are positive.
46-
* Depending on what type of resource this is, ptc can be
47-
* - the class number of a common SINK/SOURCE node of grid,
48-
* starting at 0 and go up to class_inf size - 1 of SOURCEs + SINKs in a grid
49-
* - pin number of an input/output pin of a grid. They would normally start at 0
50-
* and go to the number of pins on a block at that (x, y) location
51-
* - track number of a routing wire in a channel. They would normally go from 0
52-
* to channel_width - 1 at that (x,y)
53-
*
54-
* An invalid id will be returned if the node does not exist
55-
*
56-
* Note that for segments (CHANX and CHANY) of length > 1, the segment is
42+
* @param (x, y) are the grid location within the FPGA
43+
* @oaram rr_type specifies the type of resource,
44+
* @param ptc gives a unique number of resources of that type (e.g. CHANX) at that (x,y).
45+
*
46+
* @note All ptcs start at 0 and are positive.
47+
* Depending on what type of resource this is, ptc can be
48+
* - the class number of a common SINK/SOURCE node of grid,
49+
* starting at 0 and go up to class_inf size - 1 of SOURCEs + SINKs in a grid
50+
* - pin number of an input/output pin of a grid. They would normally start at 0
51+
* and go to the number of pins on a block at that (x, y) location
52+
* - track number of a routing wire in a channel. They would normally go from 0
53+
* to channel_width - 1 at that (x,y)
54+
*
55+
* @note An invalid id will be returned if the node does not exist
56+
*
57+
* @note For segments (CHANX and CHANY) of length > 1, the segment is
5758
* given an rr_index based on the (x,y) location at which it starts (i.e.
5859
* lowest (x,y) location at which this segment exists).
5960
*
60-
* The 'side' argument only applies to IPIN/OPIN types, and specifies which
61+
* @note The 'side' argument only applies to IPIN/OPIN types, and specifies which
6162
* side of the grid tile the node should be located on. The value is ignored
6263
* for non-IPIN/OPIN types
6364
*

0 commit comments

Comments
 (0)