Skip to content

Commit c731f9a

Browse files
remove layer from indexing comment of pin-track and track-pin lookup types
1 parent 00cf6ec commit c731f9a

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

vpr/src/route/rr_graph_generation/rr_types.h

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,31 @@
66
#include "rr_node_types.h"
77
#include "vtr_ndmatrix.h"
88

9-
/* AA: This structure stores the track connections for each physical pin. Note that num_pins refers to the # of logical pins for a tile and
9+
/* This structure stores the track connections for each physical pin. Note that num_pins refers to the # of logical pins for a tile and
1010
* we use the relative x and y location (0...width and 0...height of the tile) and the side of that unit tile to locate the physical pin.
1111
* If pinloc[ipin][iwidth][iheight][side]==1 it exists there...
1212
* The alloc_and_load_pin_to_track_map loads up the tracks that connect to each of the *PHYSICAL* pins. Thus, the last dimension of the matrix
1313
* goes from [0...Fc-1] where Fc is the actual Fc value for that pin.
1414
*
1515
* The matrix should be accessed as follows as a result after allocation in rr_graph.cpp: alloc_pin_to_track_lookup (used by unidir and bidir)
16-
* [0..device_ctx.physical_tile_types.size()-1][0..num_pins-1][0..width][0..height][0..layer-1][0..3][0..Fc-1] */
16+
* [0..device_ctx.physical_tile_types.size()-1][0..num_pins-1][0..width][0..height][0..3][0..Fc-1] */
1717
typedef std::vector<vtr::NdMatrix<std::vector<int>, 4>> t_pin_to_track_lookup;
1818

19-
/* AA: t_pin_to_track_lookup is alloacted first and is then converted to t_track_to_pin lookup by simply redefining the accessing order.
20-
* As a result, the matrix should be accessed as follow as a result after allocation in rr_graph.cpp: alloc_track_to_pin_lookup (used by unidir and bidir)
21-
* [0..device_ctx.physical_tile_types.size()-1][0..max_chan_width-1][0..width][0..height][0..layer-1][0..3]
22-
*
23-
* Note that when we model different channels based on position not axis, we can't use this anymore and need to have a lookup for each grid location. */
19+
/**
20+
* @brief Lookup table from routing tracks to block pins.
21+
*
22+
* The allocation is done in `alloc_and_load_track_to_pin_lookup()`, and the table becomes
23+
* a track-to-pin lookup simply by changing the access order of the underlying data.
24+
*
25+
* After allocation, the lookup should be accessed in the following index order:
26+
* [0..device_ctx.physical_tile_types.size()-1][0..max_chan_width - 1][0..width][0..height][0..3]
27+
*
28+
* @note When we model different channels based on position not axis,
29+
we can't use this anymore and need to have a lookup for each grid location.
30+
*/
2431
typedef std::vector<vtr::NdMatrix<std::vector<int>, 4>> t_track_to_pin_lookup;
2532

33+
2634
/**
2735
* @brief Lists detailed information about wire segments. [0 .. W-1].
2836
*/

0 commit comments

Comments
 (0)