Skip to content

Commit 9f08030

Browse files
comment for chanz type ++ set number of track for chanz when checking capacities
1 parent c9eb503 commit 9f08030

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

libs/librrgraph/src/base/check_rr_graph.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ void check_rr_node(const RRGraphView& rr_graph,
445445
"in check_rr_node: Unexpected segment type: %d\n", rr_type);
446446
}
447447

448-
/* Check that it's capacities and such make sense. */
448+
// Check that its capacities and such make sense.
449449

450450
int class_max_ptc = get_tile_class_max_ptc(type, is_flat);
451451
int pin_max_ptc = get_tile_pin_max_ptc(type, is_flat);
@@ -496,7 +496,15 @@ void check_rr_node(const RRGraphView& rr_graph,
496496
break;
497497

498498
case e_rr_type::CHANZ:
499-
// TODO: do checks for CHANZ type
499+
if (route_type == e_route_type::DETAILED) {
500+
tracks_per_node = 1;
501+
} else {
502+
// TODO: do checks for CHANZ type when global routing is enabled
503+
// This can be done once we have a way to specify how many chanz
504+
// nodes per switch block exist.
505+
VPR_FATAL_ERROR(VPR_ERROR_ROUTE,
506+
"in check_rr_node: Global routing is not supported in 3D architectures.\n");
507+
}
500508
break;
501509

502510
default:

libs/librrgraph/src/base/rr_node_types.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ enum class e_rr_type : unsigned char {
2929
OPIN, ///<Output pin of a block
3030
CHANX, ///<x-directed routing wire, or an x-directed segment of a channel for global routing
3131
CHANY, ///<y-directed routing wire, or a y-directed segment of a channel for global routing
32-
CHANZ, ///<z-directed routing wire used to connect two different layers
32+
CHANZ, ///<z-directed routing wire used to connect two different layers.
33+
///< For CHANZ nodes, xlow == xhigh and yhigh == ylow
3334
NUM_RR_TYPES
3435
};
3536

0 commit comments

Comments
 (0)