Skip to content

Commit abaec29

Browse files
Update rr_graph_area.cpp
1 parent b65a8e2 commit abaec29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vpr/src/route/rr_graph_area.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ void count_unidir_routing_transistors(std::vector<t_segment_inf>& /*segment_inf*
377377
from_rr_type = rr_graph.node_type(from_rr_node);
378378

379379
switch (from_rr_type) {
380+
case MEDIUM:
380381
case CHANX:
381382
case CHANY:
382383
num_edges = rr_graph.num_edges(RRNodeId(from_node));
@@ -392,6 +393,7 @@ void count_unidir_routing_transistors(std::vector<t_segment_inf>& /*segment_inf*
392393
}
393394

394395
switch (to_rr_type) {
396+
case MEDIUM:
395397
case CHANX:
396398
case CHANY:
397399
if (!chan_node_switch_done[size_t(to_node)]) {
@@ -465,7 +467,7 @@ void count_unidir_routing_transistors(std::vector<t_segment_inf>& /*segment_inf*
465467
for (i = rr_graph.node_xlow(from_rr_node); i <= rr_graph.node_xhigh(from_rr_node); i++)
466468
cblock_counted[i] = false;
467469

468-
} else { /* CHANY */
470+
} else if (from_rr_type == CHANY) { /* CHANY */
469471
for (j = rr_graph.node_ylow(from_rr_node); j <= rr_graph.node_yhigh(from_rr_node);
470472
j++)
471473
cblock_counted[j] = false;

0 commit comments

Comments
 (0)