Skip to content

Commit b1b52f6

Browse files
assume cube mode for routing chan util estimation in the routing stage
1 parent 73dfa44 commit b1b52f6

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

vpr/src/route/route_common.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,10 @@ void reset_rr_node_route_structs(const t_router_opts& route_opts) {
481481
auto& route_ctx = g_vpr_ctx.mutable_routing();
482482
const auto& device_ctx = g_vpr_ctx.device();
483483
const auto& blk_loc_registry = g_vpr_ctx.placement().blk_loc_registry();
484-
const bool cube_bb = g_vpr_ctx.placement().cube_bb;
485484

486485
VTR_ASSERT(route_ctx.rr_node_route_inf.size() == size_t(device_ctx.rr_graph.num_nodes()));
487486

488-
RoutingChanUtilEstimator routing_chan_util_estimator(blk_loc_registry, cube_bb);
487+
RoutingChanUtilEstimator routing_chan_util_estimator(blk_loc_registry);
489488
const auto [chanx_util, chany_util] = routing_chan_util_estimator.estimate_routing_chan_util();
490489

491490
for (const RRNodeId rr_id : device_ctx.rr_graph.nodes()) {

vpr/src/route/route_utilization.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
#include "vpr_utils.h"
66
#include "route_common.h"
77

8-
RoutingChanUtilEstimator::RoutingChanUtilEstimator(const BlkLocRegistry& blk_loc_registry, bool cube_bb) {
8+
RoutingChanUtilEstimator::RoutingChanUtilEstimator(const BlkLocRegistry& blk_loc_registry) {
99
placer_state_ = std::make_unique<PlacerState>(/*placement_is_timing_driven=*/false);
1010
placer_state_->mutable_blk_loc_registry() = blk_loc_registry;
1111

1212
placer_opts_.place_algorithm = e_place_algorithm::BOUNDING_BOX_PLACE;
13-
net_cost_handler_ = std::make_unique<NetCostHandler>(placer_opts_, *placer_state_, cube_bb);
13+
net_cost_handler_ = std::make_unique<NetCostHandler>(placer_opts_, *placer_state_, /*cube_bb=*/true);
1414
}
1515

1616
std::pair<vtr::NdMatrix<double, 3>, vtr::NdMatrix<double, 3>> RoutingChanUtilEstimator::estimate_routing_chan_util() {

vpr/src/route/route_utilization.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
/**
1010
* @class RoutingChanUtilEstimator
11-
* @brief This class computes the net bounding boxes and estimates the routing channel utilization
11+
* @brief This class computes the net bounding boxes (cube mode) and estimates the routing channel utilization
1212
* for each CHANX/CHANY channel by smearing the estimated wirelength for each net across all channels
1313
* within its bounding box.
1414
*/
1515
class RoutingChanUtilEstimator {
1616
public:
17-
RoutingChanUtilEstimator(const BlkLocRegistry& blk_loc_registry, bool cube_bb);
17+
RoutingChanUtilEstimator(const BlkLocRegistry& blk_loc_registry);
1818

1919
std::pair<vtr::NdMatrix<double, 3>, vtr::NdMatrix<double, 3>> estimate_routing_chan_util();
2020

0 commit comments

Comments
 (0)