Skip to content

Commit 5598d9e

Browse files
Check if CHANZ nodes' RC values are valid
1 parent 219dd03 commit 5598d9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libs/librrgraph/src/base/check_rr_graph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ void check_rr_node(const RRGraphView& rr_graph,
556556
float C = rr_graph.node_C(rr_node);
557557
float R = rr_graph.node_R(rr_node);
558558

559-
if (rr_type == e_rr_type::CHANX || rr_type == e_rr_type::CHANY) {
559+
if (rr_type == e_rr_type::CHANX || rr_type == e_rr_type::CHANY || rr_type == e_rr_type::CHANZ) {
560560
if (C < 0. || R < 0.) {
561561
VPR_ERROR(VPR_ERROR_ROUTE,
562562
"in check_rr_node: node %d of type %d has R = %g and C = %g.\n", inode, rr_type, R, C);

vpr/src/draw/draw_rr_edges.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ void draw_chany_to_chany_edge(RRNodeId from_node, RRNodeId to_node, RRSwitchId r
6060
y2 = to_chan.bottom();
6161
y1 = draw_coords->tile_y[to_ylow] + 0.1 * draw_coords->get_tile_height();
6262
} else {
63+
// since no U-turns from_tracks must be INC as well
6364
VTR_ASSERT_SAFE(rr_graph.node_direction(from_node) == Direction::INC);
6465
y2 = to_chan.bottom();
65-
// since no U-turns from_tracks must be INC as well
6666
y1 = draw_coords->tile_y[to_ylow - 1] + draw_coords->get_tile_height();
6767
}
6868
} else { // DEC wire starts at top edge

0 commit comments

Comments
 (0)