Skip to content

Commit e557f08

Browse files
committed
comment on router lookahead 6d arrqy
1 parent dc870aa commit e557f08

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

vpr/src/route/router_lookahead_map.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,8 @@ static Cost_Entry get_nearby_cost_entry(int from_layer_num, int x, int y, int to
10061006
if (std::isnan(copy_entry.delay) && std::isnan(copy_entry.congestion)) {
10071007
if (copy_x == 0 && copy_y == 0) {
10081008
copy_entry = Cost_Entry(0., 0.); //(0, 0) entry is invalid so set zero to terminate recursion
1009+
// set zero if the source and sink nodes are on the same layer. If they are not, it means that there is no connection from the source node to
1010+
// the other layer. This means that the connection should be set to a very large number
10091011
if (from_layer_num == to_layer_num) {
10101012
copy_entry = Cost_Entry(0., 0.);
10111013
} else {

vpr/src/route/router_lookahead_map.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ class Cost_Entry {
5757
* in the x/y direction */
5858
typedef vtr::NdMatrix<Cost_Entry, 6> t_wire_cost_map; //[0..num_layers][0..1][[0..num_seg_types-1][0..num_layers][0..device_ctx.grid.width()-1][0..device_ctx.grid.height()-1]
5959
//[0..1] entry distinguish between CHANX/CHANY start nodes respectively
60+
// The first index is the layer number that the node under consideration is on, and the forth index
61+
// is the layer number that the target node is on.
6062

6163
void read_router_lookahead(const std::string& file);
6264
void write_router_lookahead(const std::string& file);

0 commit comments

Comments
 (0)