@@ -231,15 +231,15 @@ static PrimitiveVector calc_pb_type_capacity(const t_pb_type* pb_type,
231231 return capacity;
232232 }
233233 // For now, we simply mix the capacities of modes by taking the max of each
234- // dimension of the capcities . This provides an upper-bound on the amount of
234+ // dimension of the capacities . This provides an upper-bound on the amount of
235235 // primitives this pb can contain.
236236 for (int mode = 0 ; mode < pb_type->num_modes ; mode++) {
237237 PrimitiveVector mode_capacity = calc_mode_capacity (pb_type->modes [mode], memory_model_dims, dim_manager);
238238 capacity = PrimitiveVector::max (capacity, mode_capacity);
239239 }
240240
241- // A pb_type represents a heirarchy of physical blocks that can be implemented,
242- // with leaves of primitives at the bottom of the heirarchy . A pb_type will have
241+ // A pb_type represents a hierarchy of physical blocks that can be implemented,
242+ // with leaves of primitives at the bottom of the hierarchy . A pb_type will have
243243 // many children, each with their own physical cost; however, a parent pb_type
244244 // should not have higher cost than its children. For example, here we use
245245 // pin counts to represent cost. The children of the pb_type cannot use more
@@ -264,7 +264,7 @@ static PrimitiveVector calc_pb_type_capacity(const t_pb_type* pb_type,
264264}
265265
266266/* *
267- * @brief Calculate the cpacity of the given logical block type.
267+ * @brief Calculate the capacity of the given logical block type.
268268 */
269269static PrimitiveVector calc_logical_block_type_capacity (const t_logical_block_type& logical_block_type,
270270 const PrimitiveDimManager& dim_manager) {
@@ -372,7 +372,7 @@ static PrimitiveVector calc_block_mass(APBlockId blk_id,
372372namespace {
373373
374374/* *
375- * @brief A struct to hold information on pb types which act like one-hot primitves .
375+ * @brief A struct to hold information on pb types which act like one-hot primitives .
376376 */
377377struct OneHotPbType {
378378 // / @brief The root pb type which contains the modes which act in a one-hot
@@ -553,13 +553,13 @@ static void initialize_dim_manager(PrimitiveDimManager& dim_manager,
553553 }
554554 }
555555
556- // Count the number of occurences of each model in the netlist.
556+ // Count the number of occurrences of each model in the netlist.
557557 vtr::vector<LogicalModelId, unsigned > num_model_occurence (models.all_models ().size (), 0 );
558558 for (AtomBlockId blk_id : atom_netlist.blocks ()) {
559559 LogicalModelId model_id = atom_netlist.block_model (blk_id);
560560
561561 // If this model is not part of a shared dimension, just accumulate its
562- // number of occurences .
562+ // number of occurrences .
563563 int one_hot_id = model_one_hot_id[model_id];
564564 if (one_hot_id == -1 ) {
565565 num_model_occurence[model_id]++;
@@ -568,7 +568,7 @@ static void initialize_dim_manager(PrimitiveDimManager& dim_manager,
568568
569569 // If this model is part of a shared dimension, only accumulate into the
570570 // first shared model. This creates an accurate count of the number of
571- // occurences of the overall shared dimension in this first model id.
571+ // occurrences of the overall shared dimension in this first model id.
572572 const OneHotPbType& one_hot_pb_type = one_hot_pb_types[one_hot_id];
573573 LogicalModelId first_model_id = *one_hot_pb_type.shared_models .begin ();
574574 num_model_occurence[first_model_id]++;
0 commit comments