Skip to content

Commit a481ad7

Browse files
[Spelling] Fixed Simple Spelling Mistakes in Route Dir
This is the last of the simple spelling mistakes in the VPR directory. The rest are variable name changes which are not hard, but should be isolated into their own commits. NOTE: The rr_graph.cpp and rr_graph2.cpp files were left behind to prevent issues with currently open PRs.
1 parent 0e9f8c2 commit a481ad7

38 files changed

+92
-96
lines changed

vpr/src/route/parallel_connection_router.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ static inline bool post_target_prune_node(float new_total_cost,
1717
// This is a correction factor to the forward cost to make the total
1818
// cost an under-estimate.
1919
// TODO: Should investigate creating a heuristic function that is
20-
// gaurenteed to be an under-estimate.
20+
// guaranteed to be an under-estimate.
2121
// NOTE: Found experimentally that using the original heuristic to order
2222
// the nodes in the queue and then post-target pruning based on the
2323
// under-estimating heuristic has better runtime.
@@ -80,7 +80,7 @@ static inline bool prune_node(RRNodeId inode,
8080
if (new_back_cost == best_back_cost) {
8181
#ifndef NON_DETERMINISTIC_PRUNING
8282
// With deterministic pruning, cannot always prune on ties.
83-
// In the case of a true tie, just prune, no need to explore neightbors
83+
// In the case of a true tie, just prune, no need to explore neighbors
8484
RREdgeId best_prev_edge = route_inf->prev_edge;
8585
if (new_prev_edge == best_prev_edge)
8686
return true;
@@ -95,7 +95,7 @@ static inline bool prune_node(RRNodeId inode,
9595
return false;
9696
// Finally, if this node is not coming from a preferred edge, prune
9797
// Deterministic version prefers a given EdgeID, so a unique path is returned since,
98-
// in the case of a tie, a determinstic path wins.
98+
// in the case of a tie, a deterministic path wins.
9999
// Is first preferred over second?
100100
auto is_preferred_edge = [](RREdgeId first, RREdgeId second) {
101101
return first < second;
@@ -134,10 +134,10 @@ static inline bool should_not_explore_neighbors(RRNodeId inode,
134134
const t_conn_cost_params& params) {
135135
#ifndef NON_DETERMINISTIC_PRUNING
136136
// For deterministic pruning, cannot enforce anything on the total cost since
137-
// traversal order is not gaurenteed. However, since total cost is used as a
137+
// traversal order is not guaranteed. However, since total cost is used as a
138138
// "key" to signify that this node is the last node that was pushed, we can
139139
// just check for equality. There is a chance this may cause some duplicates
140-
// for the deterministic case, but thats ok they will be handled.
140+
// for the deterministic case, but that's ok they will be handled.
141141
// TODO: Maybe consider having the non-deterministic version do this too.
142142
if (new_total_cost != rr_node_route_inf_[inode].path_cost)
143143
return true;

vpr/src/route/route_budgets.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ float route_budgets::minimax_PERT(std::shared_ptr<SetupHoldTimingInfo> orig_timi
333333
bool keep_in_bounds,
334334
slack_allocated_type slack_type) {
335335
/*This function uses weights to calculate how much slack to allocate to a connection.
336-
* The weights are deteremined by how much delay of the whole path is present in this connection*/
336+
* The weights are determined by how much delay of the whole path is present in this connection*/
337337

338338
std::shared_ptr<const tatum::SetupHoldTimingAnalyzer> timing_analyzer = orig_timing_info->setup_hold_analyzer();
339339
float total_path_delay = 0;
@@ -736,7 +736,7 @@ bool route_budgets::increase_min_budgets_if_struggling(float delay_increment,
736736
delay_max_budget[net_id][ipin] += 2 * delay_increment;
737737
}
738738

739-
// Increase short path criticality as well, this encourages the router to meet the lower delay budgets more aggresively
739+
// Increase short path criticality as well, this encourages the router to meet the lower delay budgets more aggressively
740740
if (short_path_crit[net_id][ipin] < MAX_SHORT_PATH_CRIT) short_path_crit[net_id][ipin] *= 2;
741741
}
742742
}
@@ -762,8 +762,6 @@ void route_budgets::increase_short_crit(ParentNetId net_id, float delay_decs) {
762762
// VTR_LOG("Increasing short path crit for net %d\n", net_id);
763763
for (auto pin_id : net_list_.net_sinks(net_id)) {
764764
int ipin = net_list_.pin_net_index(pin_id);
765-
// if (!once) VTR_LOG("Net %d crit %f scrit %f \n", net_id, pin_criticality[pin_id], budgeting_inf.get_crit_short_path(net_id, ipin));
766-
// once = true;
767765
short_path_crit[net_id][ipin] *= delay_decs;
768766
}
769767
num_times_congested[net_id] = 0;
@@ -772,8 +770,6 @@ void route_budgets::increase_short_crit(ParentNetId net_id, float delay_decs) {
772770
// if (num_times_congested[net_id] >= 9) {
773771
// for (auto pin_id : cluster_ctx.clb_nlist.net_sinks(net_id)) {
774772
// int ipin = cluster_ctx.clb_nlist.pin_net_index(pin_id);
775-
// // if (!once) VTR_LOG("Net %d crit %f scrit %f \n", net_id, pin_criticality[pin_id], budgeting_inf.get_crit_short_path(net_id, ipin));
776-
// // once = true;
777773
// delay_min_budget[net_id][ipin] *= 1.5;
778774
// keep_budget_in_bounds(delay_min_budget, net_id, pin_id);
779775
// }

vpr/src/route/route_common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ void add_to_mod_list(RRNodeId inode, std::vector<RRNodeId>& modified_rr_node_inf
837837
// so long as it is from the appropriate SRC).
838838
//
839839
// This correctly models 'full' equivalence (e.g. if there is a full crossbar between the outputs), but is too
840-
// optimistic for 'instance' equivalence (which typcially models the pin equivalence possible by swapping sub-block
840+
// optimistic for 'instance' equivalence (which typically models the pin equivalence possible by swapping sub-block
841841
// instances like BLEs). In particular, for the 'instance' equivalence case, some of the 'equivalent' block outputs
842842
// may be used by internal signals which are routed entirely *within* the block (i.e. the signals which never leave
843843
// the block). These signals effectively 'use-up' an output pin which should now be unavailable to the router.

vpr/src/route/route_net.tpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ inline NetResultFlags route_net(ConnectionRouterType& router,
161161
|| route_constraints.get_route_model_by_net_name(net_name) == e_clock_modeling::DEDICATED_NETWORK) {
162162
std::string clock_network_name = "";
163163

164-
// If a user-specified routing constratins exists for the curret net get the clock network name
164+
// If a user-specified routing constraints exists for the current net get the clock network name
165165
// from the constraints file, otherwise use the default clock network name
166166
if (route_constraints.has_routing_constraint(net_name)) {
167167
clock_network_name = route_constraints.get_routing_network_name_by_net_name(net_name);

vpr/src/route/route_profiling.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ void time_on_fanout_analysis() {
103103
entire_net_rerouted, entire_tree_pruned, part_tree_preserved);
104104
VTR_LOG("%d connections marked for forced reroute, %d forced reroutes performed\n", connections_forced_to_reroute, connections_rerouted_due_to_forcing);
105105
// using the global time_on_fanout and itry_on_fanout
106-
VTR_LOG("fanout low time (s) attemps rebuild tree time (s) finished sinks rerouted sinks\n");
106+
VTR_LOG("fanout low time (s) attempts rebuild tree time (s) finished sinks rerouted sinks\n");
107107
for (size_t bin = 0; bin < time_on_fanout.size(); ++bin) {
108108
if (itry_on_fanout[bin]) { // avoid printing the many 0 bins
109-
VTR_LOG("%4d %14.3f %12d %14.3f %12d %12d\n",
109+
VTR_LOG("%4d %14.3f %12d %14.3f %12d %12d\n",
110110
bin * fanout_per_bin,
111111
time_on_fanout[bin],
112112
itry_on_fanout[bin],
@@ -124,7 +124,7 @@ void time_on_fanout_analysis() {
124124
}
125125

126126
void time_on_criticality_analysis() {
127-
VTR_LOG("criticality low time (s) attemps\n");
127+
VTR_LOG("criticality low time (s) attempts\n");
128128
for (size_t bin = 0; bin < time_on_criticality.size(); ++bin) {
129129
if (itry_on_criticality[bin]) { // avoid printing the many 0 bins
130130
VTR_LOG("%4f %14.3f %12d\n", bin * criticality_per_bin, time_on_criticality[bin], itry_on_criticality[bin]);

vpr/src/route/route_tree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ RouteTree::update_unbuffered_ancestors_C_downstream(RouteTreeNode& from_node) {
291291

292292
/* Having set the value of C_downstream_addition, we must check whether the parent switch
293293
* is a buffered or unbuffered switch with the if statement below. If the parent switch is
294-
* a buffered switch, then the parent node's downsteam capacitance is increased by the
294+
* a buffered switch, then the parent node's downstream capacitance is increased by the
295295
* value of the parent switch's internal capacitance in the if statement below.
296296
* Correspondingly, the ancestors' downstream capacitance will be updated by the same
297297
* value through the while loop. Otherwise, if the parent switch is unbuffered, then

vpr/src/route/route_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ void prune_unused_non_configurable_nets(CBRR& connections_inf,
130130

131131
/** If flat_routing and router_opt_choke_points are true, there are some choke points inside the cluster which would increase the convergence time of routing.
132132
* To address this issue, the congestion cost of those choke points needs to decrease. This function identify those choke points for each net,
133-
* and since the amount of congestion reduction is dependant on the number sinks reachable from that choke point, it also store the number of reachable sinks
133+
* and since the amount of congestion reduction is dependent on the number sinks reachable from that choke point, it also store the number of reachable sinks
134134
* for each choke point.
135135
* @param net_list
136136
* @param net_terminal_groups [Net_id][group_id] -> rr_node_id of the pins in the group

vpr/src/route/router_lookahead/router_lookahead_compressed_map.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ static util::Cost_Entry get_nearby_cost_entry_compressed_lookahead(int from_laye
245245
/* compute the slope from x,y to 0,0 and then move towards 0,0 by one unit to get the coordinates
246246
* of the cost entry to be copied */
247247

248-
//VTR_ASSERT(x > 0 || y > 0); //Asertion fails in practise. TODO: debug
248+
//VTR_ASSERT(x > 0 || y > 0); //Assertion fails in practise. TODO: debug
249249

250250
float slope;
251251
if (x == 0) {

vpr/src/route/router_lookahead/router_lookahead_cost_map.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#endif
1515

1616
// Lookahead penalties constants
17-
// Penalities are added for deltas that are outside of a specific segment bounding box region.
17+
// Penalties are added for deltas that are outside of a specific segment bounding box region.
1818
// These penalties are calculated based on the distance of the requested delta to a valid closest point of the bounding
1919
// box.
2020

vpr/src/route/router_lookahead/router_lookahead_cost_map.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* Originally, the first dimension was used to differentiate the lookahead between CHANX and CHANY nodes. It turns out
1818
* that this distinction leads to worse results when using the extended map lookahead, therefore, this dimension of the cost map
19-
* has been collapsed, therefore this first dimention is virtually unused, but is kept to have the extended map lookahead as close
19+
* has been collapsed, therefore this first dimension is virtually unused, but is kept to have the extended map lookahead as close
2020
* as possible to the original extended map.
2121
*/
2222
class CostMap {

0 commit comments

Comments
 (0)