@@ -105,10 +105,10 @@ NetCostHandler::NetCostHandler(const t_placer_opts& placer_opts,
105
105
if (cube_bb_) {
106
106
ts_bb_edge_new_.resize (num_nets, t_bb ());
107
107
ts_bb_coord_new_.resize (num_nets, t_bb ());
108
- ts_avg_chann_util_new_ .resize (num_nets, {0 ., 0 .});
108
+ ts_avg_chan_util_new_ .resize (num_nets, {0 ., 0 .});
109
109
110
110
bb_coords_.resize (num_nets, t_bb ());
111
- avg_chann_util_ .resize (num_nets, {0 ., 0 .});
111
+ avg_chan_util_ .resize (num_nets, {0 ., 0 .});
112
112
113
113
bb_num_on_edges_.resize (num_nets, t_bb ());
114
114
comp_bb_cong_cost_functor_ = std::bind (&NetCostHandler::comp_cube_bb_cong_cost_, this , std::placeholders::_1);
@@ -563,7 +563,7 @@ void NetCostHandler::get_non_updatable_cube_bb_(ClusterNetId net_id, bool use_ts
563
563
}
564
564
565
565
if (congestion_modeling_started_) {
566
- auto & [x_chan_util, y_chan_util] = use_ts ? ts_avg_chann_util_new_ [net_id] : avg_chann_util_ [net_id];
566
+ auto & [x_chan_util, y_chan_util] = use_ts ? ts_avg_chan_util_new_ [net_id] : avg_chan_util_ [net_id];
567
567
const int total_channels = (bb_coord_new.xmax - bb_coord_new.xmin + 1 ) * (bb_coord_new.ymax - bb_coord_new.ymin + 1 );
568
568
x_chan_util = acc_chan_util_.x .get_sum (bb_coord_new.xmin , bb_coord_new.ymin , bb_coord_new.xmax , bb_coord_new.ymax ) / total_channels;
569
569
y_chan_util = acc_chan_util_.y .get_sum (bb_coord_new.xmin , bb_coord_new.ymin , bb_coord_new.xmax , bb_coord_new.ymax ) / total_channels;
@@ -876,7 +876,7 @@ void NetCostHandler::update_bb_(ClusterNetId net_id,
876
876
}
877
877
878
878
if (congestion_modeling_started_) {
879
- auto & [x_chan_util, y_chan_util] = ts_avg_chann_util_new_ [net_id];
879
+ auto & [x_chan_util, y_chan_util] = ts_avg_chan_util_new_ [net_id];
880
880
const int total_channels = (bb_coord_new.xmax - bb_coord_new.xmin + 1 ) * (bb_coord_new.ymax - bb_coord_new.ymin + 1 );
881
881
x_chan_util = acc_chan_util_.x .get_sum (bb_coord_new.xmin , bb_coord_new.ymin , bb_coord_new.xmax , bb_coord_new.ymax ) / total_channels;
882
882
y_chan_util = acc_chan_util_.y .get_sum (bb_coord_new.xmin , bb_coord_new.ymin , bb_coord_new.xmax , bb_coord_new.ymax ) / total_channels;
@@ -1317,7 +1317,7 @@ void NetCostHandler::get_bb_from_scratch_(ClusterNetId net_id, bool use_ts) {
1317
1317
num_on_edges.layer_max = layer_max_edge;
1318
1318
1319
1319
if (congestion_modeling_started_) {
1320
- auto & [x_chan_util, y_chan_util] = use_ts ? ts_avg_chann_util_new_ [net_id] : avg_chann_util_ [net_id];
1320
+ auto & [x_chan_util, y_chan_util] = use_ts ? ts_avg_chan_util_new_ [net_id] : avg_chan_util_ [net_id];
1321
1321
const int total_channels = (coords.xmax - coords.xmin + 1 ) * (coords.ymax - coords.ymin + 1 );
1322
1322
x_chan_util = acc_chan_util_.x .get_sum (coords.xmin , coords.ymin , coords.xmax , coords.ymax ) / total_channels;
1323
1323
y_chan_util = acc_chan_util_.y .get_sum (coords.xmin , coords.ymin , coords.xmax , coords.ymax ) / total_channels;
@@ -1418,7 +1418,7 @@ double NetCostHandler::get_net_cube_bb_cost_(ClusterNetId net_id, bool use_ts) {
1418
1418
1419
1419
double NetCostHandler::get_net_cube_cong_cost_ (ClusterNetId net_id, bool use_ts) {
1420
1420
VTR_ASSERT_SAFE (congestion_modeling_started_);
1421
- const auto [x_chan_util, y_chan_util] = use_ts ? ts_avg_chann_util_new_ [net_id] : avg_chann_util_ [net_id];
1421
+ const auto [x_chan_util, y_chan_util] = use_ts ? ts_avg_chan_util_new_ [net_id] : avg_chan_util_ [net_id];
1422
1422
1423
1423
const float threshold = placer_opts_.congestion_chan_util_threshold ;
1424
1424
@@ -1862,7 +1862,7 @@ const ChannelData<vtr::NdMatrix<double, 3>>& NetCostHandler::get_chan_util() con
1862
1862
void NetCostHandler::set_ts_bb_coord_ (const ClusterNetId net_id) {
1863
1863
if (cube_bb_) {
1864
1864
bb_coords_[net_id] = ts_bb_coord_new_[net_id];
1865
- avg_chann_util_ [net_id] = ts_avg_chann_util_new_ [net_id];
1865
+ avg_chan_util_ [net_id] = ts_avg_chan_util_new_ [net_id];
1866
1866
} else {
1867
1867
layer_bb_coords_[net_id] = layer_ts_bb_coord_new_[net_id];
1868
1868
}
0 commit comments