Skip to content

Commit 764bc14

Browse files
add doxygen comment for RoutingChanUtilEstimator
1 parent 8349c44 commit 764bc14

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

vpr/src/route/route_utilization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ vtr::Matrix<float> calculate_routing_avail(e_rr_type rr_type) {
8585
// Calculate the number of available resources in each x/y channel
8686
VTR_ASSERT(rr_type == e_rr_type::CHANX || rr_type == e_rr_type::CHANY);
8787

88-
auto& device_ctx = g_vpr_ctx.device();
88+
const auto& device_ctx = g_vpr_ctx.device();
8989
const auto& rr_graph = device_ctx.rr_graph;
9090

9191
vtr::Matrix<float> avail({{device_ctx.grid.width(), device_ctx.grid.height()}}, 0.);

vpr/src/route/route_utilization.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
#include "net_cost_handler.h"
77
#include "placer_state.h"
88

9+
/**
10+
* @class RoutingChanUtilEstimator
11+
* @brief This class computes the net bounding boxes and estimates the routing channel utilization
12+
* for each CHANX/CHANY channel by smearing the estimated wirelength for each net across all channels
13+
* within its bounding box.
14+
*/
915
class RoutingChanUtilEstimator {
1016
public:
1117
RoutingChanUtilEstimator(const BlkLocRegistry& blk_loc_registry, bool cube_bb);
@@ -16,7 +22,6 @@ class RoutingChanUtilEstimator {
1622
std::unique_ptr<PlacerState> placer_state_;
1723
std::unique_ptr<NetCostHandler> net_cost_handler_;
1824
t_placer_opts placer_opts_;
19-
2025
};
2126

2227
vtr::Matrix<float> calculate_routing_avail(e_rr_type rr_type);

0 commit comments

Comments
 (0)