@@ -169,7 +169,7 @@ void check_rr_graph(const RRGraphView& rr_graph,
169
169
170
170
// Between two wire segments
171
171
VTR_ASSERT_MSG (to_rr_type == t_rr_type::CHANX || to_rr_type == t_rr_type::CHANY || to_rr_type == t_rr_type::IPIN, " Expect channel type or input pin type" );
172
- VTR_ASSERT_MSG (rr_type == CHANX || rr_type == t_rr_type::CHANY || rr_type == t_rr_type::OPIN, " Expect channel type or output pin type" );
172
+ VTR_ASSERT_MSG (rr_type == t_rr_type:: CHANX || rr_type == t_rr_type::CHANY || rr_type == t_rr_type::OPIN, " Expect channel type or output pin type" );
173
173
174
174
// While multiple connections between the same wires can be electrically legal,
175
175
// they are redundant if they are of the same switch type.
@@ -190,8 +190,8 @@ void check_rr_graph(const RRGraphView& rr_graph,
190
190
/* Redundant edges are not allowed for chan <-> chan connections
191
191
* but allowed for input pin <-> chan or output pin <-> chan connections
192
192
*/
193
- if ((to_rr_type == CHANX || to_rr_type == t_rr_type::CHANY)
194
- && (rr_type == CHANX || rr_type == t_rr_type::CHANY)) {
193
+ if ((to_rr_type == t_rr_type:: CHANX || to_rr_type == t_rr_type::CHANY)
194
+ && (rr_type == t_rr_type:: CHANX || rr_type == t_rr_type::CHANY)) {
195
195
auto switch_type = rr_graph.rr_switch_inf (RRSwitchId (kv.first )).type ();
196
196
197
197
VPR_ERROR (VPR_ERROR_ROUTE, " in check_rr_graph: node %d has %d redundant connections to node %d of switch type %d (%s)" ,
@@ -269,7 +269,7 @@ void check_rr_graph(const RRGraphView& rr_graph,
269
269
|| (rr_graph.node_ylow (rr_node) == 1 )
270
270
|| (rr_graph.node_xhigh (rr_node) == int (grid.width ()) - 2 )
271
271
|| (rr_graph.node_yhigh (rr_node) == int (grid.height ()) - 2 ));
272
- bool is_wire = (rr_graph.node_type (rr_node) == CHANX
272
+ bool is_wire = (rr_graph.node_type (rr_node) == t_rr_type:: CHANX
273
273
|| rr_graph.node_type (rr_node) == t_rr_type::CHANY);
274
274
275
275
if (!is_chain && !is_fringe && !is_wire) {
@@ -425,7 +425,7 @@ void check_rr_node(const RRGraphView& rr_graph,
425
425
}
426
426
break ;
427
427
428
- case CHANX:
428
+ case t_rr_type:: CHANX:
429
429
if (xlow < 1 || xhigh > int (grid.width ()) - 2 || yhigh > int (grid.height ()) - 2 || yhigh != ylow) {
430
430
VPR_FATAL_ERROR (VPR_ERROR_ROUTE,
431
431
" in check_rr_node: CHANX out of range for endpoints (%d,%d) and (%d,%d)\n " , xlow, ylow, xhigh, yhigh);
@@ -488,14 +488,14 @@ void check_rr_node(const RRGraphView& rr_graph,
488
488
}
489
489
break ;
490
490
491
- case CHANX:
491
+ case t_rr_type:: CHANX:
492
492
case t_rr_type::CHANY:
493
493
if (route_type == DETAILED) {
494
494
nodes_per_chan = chan_width.max ;
495
495
tracks_per_node = 1 ;
496
496
} else {
497
497
nodes_per_chan = 1 ;
498
- tracks_per_node = ((rr_type == CHANX) ? chan_width.x_list [ylow] : chan_width.y_list [xlow]);
498
+ tracks_per_node = ((rr_type == t_rr_type:: CHANX) ? chan_width.x_list [ylow] : chan_width.y_list [xlow]);
499
499
}
500
500
501
501
// if a chanx/chany has length 0, it means it is used to connect different dice together
@@ -522,7 +522,7 @@ void check_rr_node(const RRGraphView& rr_graph,
522
522
C = rr_graph.node_C (rr_node);
523
523
R = rr_graph.node_R (rr_node);
524
524
525
- if (rr_type == CHANX || rr_type == t_rr_type::CHANY) {
525
+ if (rr_type == t_rr_type:: CHANX || rr_type == t_rr_type::CHANY) {
526
526
if (C < 0 . || R < 0 .) {
527
527
VPR_ERROR (VPR_ERROR_ROUTE,
528
528
" in check_rr_node: node %d of type %d has R = %g and C = %g.\n " , inode, rr_type, R, C);
@@ -545,7 +545,7 @@ static void check_unbuffered_edges(const RRGraphView& rr_graph, int from_node) {
545
545
bool trans_matched;
546
546
547
547
from_rr_type = rr_graph.node_type (RRNodeId (from_node));
548
- if (from_rr_type != CHANX && from_rr_type != t_rr_type::CHANY)
548
+ if (from_rr_type != t_rr_type:: CHANX && from_rr_type != t_rr_type::CHANY)
549
549
return ;
550
550
551
551
from_num_edges = rr_graph.num_edges (RRNodeId (from_node));
@@ -554,7 +554,7 @@ static void check_unbuffered_edges(const RRGraphView& rr_graph, int from_node) {
554
554
to_node = size_t (rr_graph.edge_sink_node (RRNodeId (from_node), from_edge));
555
555
to_rr_type = rr_graph.node_type (RRNodeId (to_node));
556
556
557
- if (to_rr_type != CHANX && to_rr_type != t_rr_type::CHANY)
557
+ if (to_rr_type != t_rr_type:: CHANX && to_rr_type != t_rr_type::CHANY)
558
558
continue ;
559
559
560
560
from_switch_type = rr_graph.edge_switch (RRNodeId (from_node), from_edge);
0 commit comments