@@ -516,7 +516,7 @@ static void load_rr_indexed_data_T_values(const RRGraphView& rr_graph,
516
516
vtr::vector<RRIndexedDataId, std::vector<float >> switch_R_total (rr_indexed_data.size ());
517
517
vtr::vector<RRIndexedDataId, std::vector<float >> switch_T_total (rr_indexed_data.size ());
518
518
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 );
520
520
521
521
/*
522
522
* 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,
542
542
double avg_switch_Cinternal = 0 ;
543
543
int num_switches = 0 ;
544
544
int num_shorts = 0 ;
545
- short buffered = UNDEFINED ;
545
+ short buffered = ARCH_FPGA_UNDEFINED_VAL ;
546
546
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);
547
547
548
548
if (num_switches == 0 ) {
@@ -561,13 +561,13 @@ static void load_rr_indexed_data_T_values(const RRGraphView& rr_graph,
561
561
switch_R_total[cost_index].push_back (avg_switch_R);
562
562
switch_T_total[cost_index].push_back (avg_switch_T);
563
563
switch_Cinternal_total[cost_index].push_back (avg_switch_Cinternal);
564
- if (buffered == UNDEFINED ) {
564
+ if (buffered == ARCH_FPGA_UNDEFINED_VAL ) {
565
565
/* this segment does not have any outgoing edges to other general routing wires */
566
566
continue ;
567
567
}
568
568
569
569
/* 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 ) {
571
571
switches_buffered[cost_index] = buffered;
572
572
} else {
573
573
if (switches_buffered[cost_index] != buffered) {
@@ -644,7 +644,7 @@ static void calculate_average_switch(const RRGraphView& rr_graph, int inode, dou
644
644
avg_switch_Cinternal = 0 ;
645
645
num_switches = 0 ;
646
646
num_shorts = 0 ;
647
- buffered = UNDEFINED ;
647
+ buffered = ARCH_FPGA_UNDEFINED_VAL ;
648
648
for (const auto & edge : fan_in_list[node]) {
649
649
/* want to get C/R/Tdel/Cinternal of switches that connect this track segment to other track segments */
650
650
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
659
659
avg_switch_T += rr_graph.rr_switch_inf (RRSwitchId (switch_index)).Tdel ;
660
660
avg_switch_Cinternal += rr_graph.rr_switch_inf (RRSwitchId (switch_index)).Cinternal ;
661
661
662
- if (buffered == UNDEFINED ) {
662
+ if (buffered == ARCH_FPGA_UNDEFINED_VAL ) {
663
663
if (rr_graph.rr_switch_inf (RRSwitchId (switch_index)).buffered ()) {
664
664
buffered = 1 ;
665
665
} else {
0 commit comments