Skip to content

Commit d2a75ca

Browse files
committed
vpr: Fix incorrect indexing in get_rr_node_indices for CHANX
Closes #1124
1 parent 6623ff4 commit d2a75ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

vpr/src/route/rr_graph2.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,10 +1221,14 @@ std::vector<int> get_rr_node_indices(const t_rr_node_indices& L_rr_node_indices,
12211221
e_side side) {
12221222
if (rr_type == SOURCE
12231223
|| rr_type == SINK
1224-
|| rr_type == CHANX
12251224
|| rr_type == CHANY) {
12261225
VTR_ASSERT_MSG(side == NUM_SIDES, "Non-IPINs/OPINs must not specify side");
12271226
return L_rr_node_indices[rr_type][x][y][0];
1227+
} else if (rr_type == CHANX) {
1228+
VTR_ASSERT_MSG(side == NUM_SIDES, "Non-IPINs/OPINs must not specify side");
1229+
1230+
//CHANX uses an odd swapped x/y convention...
1231+
return L_rr_node_indices[rr_type][y][x][0];
12281232
} else {
12291233
VTR_ASSERT(rr_type == OPIN || rr_type == IPIN);
12301234
if (side == NUM_SIDES) {

0 commit comments

Comments
 (0)