@@ -516,7 +516,7 @@ static void load_rr_indexed_data_T_values(const RRGraphView& rr_graph,
516516 vtr::vector<RRIndexedDataId, std::vector<float >> switch_R_total (rr_indexed_data.size ());
517517 vtr::vector<RRIndexedDataId, std::vector<float >> switch_T_total (rr_indexed_data.size ());
518518 vtr::vector<RRIndexedDataId, std::vector<float >> switch_Cinternal_total (rr_indexed_data.size ());
519- vtr::vector<RRIndexedDataId, short > switches_buffered (rr_indexed_data.size (), UNDEFINED );
519+ vtr::vector<RRIndexedDataId, short > switches_buffered (rr_indexed_data.size (), ARCH_FPGA_UNDEFINED_VAL );
520520
521521 /*
522522 * Walk through the RR graph and collect all R and C values of all the nodes,
@@ -542,7 +542,7 @@ static void load_rr_indexed_data_T_values(const RRGraphView& rr_graph,
542542 double avg_switch_Cinternal = 0 ;
543543 int num_switches = 0 ;
544544 int num_shorts = 0 ;
545- short buffered = UNDEFINED ;
545+ short buffered = ARCH_FPGA_UNDEFINED_VAL ;
546546 calculate_average_switch (rr_graph, (size_t )rr_id, avg_switch_R, avg_switch_T, avg_switch_Cinternal, num_switches, num_shorts, buffered, fan_in_list);
547547
548548 if (num_switches == 0 ) {
@@ -561,13 +561,13 @@ static void load_rr_indexed_data_T_values(const RRGraphView& rr_graph,
561561 switch_R_total[cost_index].push_back (avg_switch_R);
562562 switch_T_total[cost_index].push_back (avg_switch_T);
563563 switch_Cinternal_total[cost_index].push_back (avg_switch_Cinternal);
564- if (buffered == UNDEFINED ) {
564+ if (buffered == ARCH_FPGA_UNDEFINED_VAL ) {
565565 /* this segment does not have any outgoing edges to other general routing wires */
566566 continue ;
567567 }
568568
569569 /* need to make sure all wire switches of a given wire segment type have the same 'buffered' value */
570- if (switches_buffered[cost_index] == UNDEFINED ) {
570+ if (switches_buffered[cost_index] == ARCH_FPGA_UNDEFINED_VAL ) {
571571 switches_buffered[cost_index] = buffered;
572572 } else {
573573 if (switches_buffered[cost_index] != buffered) {
@@ -644,7 +644,7 @@ static void calculate_average_switch(const RRGraphView& rr_graph, int inode, dou
644644 avg_switch_Cinternal = 0 ;
645645 num_switches = 0 ;
646646 num_shorts = 0 ;
647- buffered = UNDEFINED ;
647+ buffered = ARCH_FPGA_UNDEFINED_VAL ;
648648 for (const auto & edge : fan_in_list[node]) {
649649 /* want to get C/R/Tdel/Cinternal of switches that connect this track segment to other track segments */
650650 if (rr_graph.node_type (node) == e_rr_type::CHANX || rr_graph.node_type (node) == e_rr_type::CHANY) {
@@ -659,7 +659,7 @@ static void calculate_average_switch(const RRGraphView& rr_graph, int inode, dou
659659 avg_switch_T += rr_graph.rr_switch_inf (RRSwitchId (switch_index)).Tdel ;
660660 avg_switch_Cinternal += rr_graph.rr_switch_inf (RRSwitchId (switch_index)).Cinternal ;
661661
662- if (buffered == UNDEFINED ) {
662+ if (buffered == ARCH_FPGA_UNDEFINED_VAL ) {
663663 if (rr_graph.rr_switch_inf (RRSwitchId (switch_index)).buffered ()) {
664664 buffered = 1 ;
665665 } else {
0 commit comments