Skip to content

Commit 01ddeae

Browse files
comment explaining how chan_type_dim_size is determined
1 parent b4f3e75 commit 01ddeae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vpr/src/route/router_lookahead/router_lookahead_map.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,11 @@ static void compute_router_wire_lookahead(const std::vector<t_segment_inf>& segm
515515
const auto& grid = device_ctx.grid;
516516

517517
const size_t num_layers = grid.get_num_layers();
518+
// The wire look-ahead table has dimension for channel type.
519+
// In 3-d architectures we have three channel types: CHANX, CHANY, and CHANZ.
520+
// In 2-d architectures we only have two channel types: CHANX and CHANY.
521+
// The size of this dimension is determined based on how many layers are available
522+
// in the architecture.
518523
const size_t chan_type_dim_size = (num_layers == 1) ? 2 : 3;
519524

520525
//Re-allocate

0 commit comments

Comments
 (0)