@@ -350,23 +350,34 @@ class RouteTree {
350
350
free_list (_root);
351
351
}
352
352
353
- /* * Add the most recently finished wire segment to the routing tree, and
354
- * update the Tdel, etc. numbers for the rest of the routing tree. hptr
355
- * is the heap pointer of the SINK that was reached, and target_net_pin_index
356
- * is the net pin index corresponding to the SINK that was reached. This routine
357
- * returns a tuple: RouteTreeNode of the branch it adds to the route tree and
358
- * RouteTreeNode of the SINK it adds to the routing.
359
- * Locking operation: only one thread can update_from_heap() a RouteTree at a time. */
353
+ /* *
354
+ * @brief Add the most recently finished wire segment to the routing tree, and update the
355
+ * Tdel, etc. numbers for the rest of the routing tree.
356
+ *
357
+ * @param hptr The heap pointer of the SINK that was reached.
358
+ * @param target_net_pin_index The net pin index corresponding to the SINK that was reached.
359
+ * @param spatial_rt_lookup
360
+ * @param is_flat
361
+ * @param router_lookahead Only needed for the LookaheadProfiler.
362
+ * @param cost_params Only needed for the LookaheadProfiler.
363
+ * @param net_list Only needed for the LookaheadProfiler.
364
+ * @param net_id Only needed for the LookaheadProfiler.
365
+ * @param itry Only needed for the LookaheadProfiler. If this function is called outside of
366
+ * the router loop, this argument does not need to be specified.
367
+ *
368
+ * @return A tuple: RouteTreeNode of the branch it adds to the route tree and RouteTreeNode
369
+ * of the SINK it adds to the routing.
370
+ */
360
371
std::tuple<vtr::optional<const RouteTreeNode&>, vtr::optional<const RouteTreeNode&>>
361
372
update_from_heap (t_heap* hptr,
362
373
int target_net_pin_index,
363
374
SpatialRouteTreeLookup* spatial_rt_lookup,
364
375
bool is_flat,
365
376
const RouterLookahead& router_lookahead,
366
- const t_conn_cost_params cost_params,
377
+ const t_conn_cost_params& cost_params,
367
378
const Netlist<>& net_list,
368
379
const ParentNetId& net_id,
369
- const int itry = -1 );
380
+ int itry = -1 );
370
381
371
382
/* * Reload timing values (R_upstream, C_downstream, Tdel).
372
383
* Can take a RouteTreeNode& to do an incremental update.
@@ -504,7 +515,7 @@ class RouteTree {
504
515
int target_net_pin_index,
505
516
bool is_flat,
506
517
const RouterLookahead& router_lookahead,
507
- const t_conn_cost_params cost_params,
518
+ const t_conn_cost_params& cost_params,
508
519
const int itry,
509
520
const Netlist<>& net_list,
510
521
const ParentNetId& net_id);
0 commit comments