Skip to content

Commit 0ef9c1c

Browse files
committed
Clock Modeling: Fixing compilation warning regarding duplicate branches
1 parent fed0456 commit 0ef9c1c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

vpr/src/route/clock_connection_builders.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,10 @@ void ClockToPinsConnection::create_switches(const ClockRRGraphBuilder& clock_gra
248248
} else if (x == grid.width()-1) {
249249
clock_x_offset = -1; // chanx clock always ends at 1 offset
250250
clock_y_offset = -1; // pick the chanx below the block
251-
} else if (y == 0) { // pick chanx above the block, no offset needed
252-
} else if (y == grid.height()-1) {
253-
clock_y_offset = -1; // pick the chanx below the block
251+
} else if (y == 0) {
252+
clock_y_offset = 0; // pick chanx above the block, no offset needed
254253
} else {
255-
clock_y_offset = -1;
254+
clock_y_offset = -1; // pick the chanx below the block
256255
}
257256

258257
auto clock_pin_node_idx = get_rr_node_index(

0 commit comments

Comments
 (0)