@@ -446,13 +446,13 @@ class NetCostHandler {
446446 * @param bb_coord_new The new bb calculated by this function
447447 */
448448 inline void update_bb_same_layer_ (ClusterNetId net_id,
449- const t_physical_tile_loc& pin_old_loc,
450- const t_physical_tile_loc& pin_new_loc,
451- const std::vector<t_2D_bb>& curr_bb_edge,
452- const std::vector<t_2D_bb>& curr_bb_coord,
453- vtr::NdMatrixProxy<int , 1 > bb_pin_sink_count_new,
454- std::vector<t_2D_bb>& bb_edge_new,
455- std::vector<t_2D_bb>& bb_coord_new);
449+ const t_physical_tile_loc& pin_old_loc,
450+ const t_physical_tile_loc& pin_new_loc,
451+ const std::vector<t_2D_bb>& curr_bb_edge,
452+ const std::vector<t_2D_bb>& curr_bb_coord,
453+ vtr::NdMatrixProxy<int , 1 > bb_pin_sink_count_new,
454+ std::vector<t_2D_bb>& bb_edge_new,
455+ std::vector<t_2D_bb>& bb_coord_new);
456456
457457 /* *
458458 * @brief Computes the bounding box from scratch using 2D bounding boxes (per-layer mode)
@@ -510,6 +510,16 @@ class NetCostHandler {
510510 */
511511 double get_net_wirelength_from_layer_bb_ (ClusterNetId net_id);
512512
513+ /* *
514+ * @brief Computes the inverse of average channel width for horizontal and
515+ * vertical channels within a bounding box.
516+ * @tparam BBT This can be either t_bb or t_2D_bb.
517+ * @param bb The bounding box for which the inverse of average channel width
518+ * within the bounding box is computed.
519+ * @return std::pair<double, double>
520+ * first -> The inverse of average channel width for horizontal channels.
521+ * second -> The inverse of average channel width for vertical channels.
522+ */
513523 template <typename BBT>
514524 std::pair<double , double > get_chanxy_cost_fac_ (const BBT& bb) {
515525 const int total_chanx_width = acc_chanx_width_[bb.ymax ] - acc_chanx_width_[bb.ymin - 1 ];
@@ -530,9 +540,9 @@ class NetCostHandler {
530540 * distributed across tiles, the cost factor will be the same for all bounding boxes, but it will still
531541 * weight z-directed vs. x- and y-directed connections appropriately.
532542 *
533- * @param bounding_box Bounding box of the net which chanz cost factor is to be calculated
543+ * @param bb Bounding box of the net which chanz cost factor is to be calculated
534544 * @return ChanZ cost factor
535545 */
536- float get_chanz_cost_factor_ (const t_bb& bounding_box );
546+ float get_chanz_cost_factor_ (const t_bb& bb );
537547
538548};
0 commit comments