diff --git a/elaborate.cc b/elaborate.cc index 332c976eb..e04189f3f 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -3906,7 +3906,7 @@ Design* elaborate(listroots) // Get the module definition for this root instance. Module *rmod = (*mod).second; - // Make the root scope. This makes a NetScoep object and + // Make the root scope. This makes a NetScope object and // pushes it into the list of root scopes in the Design. NetScope*scope = des->make_root_scope(*root); @@ -3919,7 +3919,7 @@ Design* elaborate(listroots) des->set_precision(rmod->time_precision); - // Save this scope, along with its defintion, in the + // Save this scope, along with its definition, in the // "root_elems" list for later passes. struct root_elem *r = new struct root_elem; r->mod = rmod; diff --git a/netmisc.cc b/netmisc.cc index e6e6e5659..7f82fd129 100644 --- a/netmisc.cc +++ b/netmisc.cc @@ -245,16 +245,16 @@ bool eval_as_double(double&value, NetExpr*expr) } /* - * At the parser level, a name component it a name with a collection + * At the parser level, a name component is a name with a collection * of expressions. For example foo[N] is the name "foo" and the index * expression "N". This function takes as input the name component and - * returns the path component name. It will evaulate the index + * returns the path component name. It will evaluate the index * expression if it is present. */ hname_t eval_path_component(Design*des, NetScope*scope, const name_component_t&comp) { - // No index exression, so the path component is an undecorated + // No index expression, so the path component is an undecorated // name, for example "foo". if (comp.index.empty()) return hname_t(comp.name); @@ -284,7 +284,7 @@ hname_t eval_path_component(Design*des, NetScope*scope, } // Darn, the expression doesn't evaluate to a constant. That's - // and error to be reported. And make up a fake index value to + // an error to be reported. And make up a fake index value to // return to the caller. cerr << index.msb->get_fileline() << ": error: " << "Scope index expression is not constant: "