@@ -58,18 +58,30 @@ class Placer {
5858 const std::optional<NocCostHandler>& noc_cost_handler () const ;
5959
6060 private:
61+ // / Holds placement algorithm parameters
6162 const t_placer_opts& placer_opts_;
63+ // / Holds timing analysis parameters
6264 const t_analysis_opts& analysis_opts_;
65+ // / Holds NoC-related parameters
6366 const t_noc_opts& noc_opts_;
67+ // / Placement cost terms with their normalization factors and total cost
6468 t_placer_costs costs_;
69+ // / Holds timing, runtime, and block location information
6570 PlacerState placer_state_;
71+ // / Random number generator used to select random blocks and locations
6672 vtr::RngContainer rng_;
73+ // / Computes and updates net bounding box cost
6774 NetCostHandler net_cost_handler_;
75+ // / Compute and updates NoC-related cost terms if NoC optimization is enabled
6876 std::optional<NocCostHandler> noc_cost_handler_;
77+ // / A delay model shared between multiple instances of this class.
6978 std::shared_ptr<PlaceDelayModel> place_delay_model_;
79+ // / Prints logs during placement
7080 const PlacementLogPrinter log_printer_;
81+ // / Indicates if flat routing resource graph and delay model is used. It should be false.
7182 const bool is_flat_;
7283
84+ // / Stores a placement state as a retrievable checkpoint in case the placement quality deteriorates later.
7385 t_placement_checkpoint placement_checkpoint_;
7486
7587 std::shared_ptr<SetupTimingInfo> timing_info_;
@@ -105,6 +117,12 @@ class Placer {
105117 */
106118 void check_place_ ();
107119
120+ /* *
121+ * Computes bounding box and timing cost to ensure it is
122+ * within a small error margin what we thing the cost is.
123+ * @return Number cost elements, i.e. BB and timing, that falls
124+ * outside the acceptable round-off error margin.
125+ */
108126 int check_placement_costs_ ();
109127};
110128
0 commit comments