From e556269692d0984073eb01c5daed4870109b5e53 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 12 Sep 2019 07:22:22 -0400 Subject: [PATCH] Commentary - Spelling fixes --- README.pod | 6 +++--- src/V3Active.cpp | 6 +++--- src/V3ActiveTop.cpp | 2 +- src/V3Ast.h | 2 +- src/V3Begin.cpp | 4 ++-- src/V3Branch.cpp | 2 +- src/V3Broken.cpp | 6 +++--- src/V3Case.cpp | 4 ++-- src/V3Cast.cpp | 2 +- src/V3Cdc.cpp | 6 +++--- src/V3Changed.cpp | 4 ++-- src/V3Clean.cpp | 2 +- src/V3Clock.cpp | 2 +- src/V3Combine.cpp | 2 +- src/V3Const.cpp | 10 +++++----- src/V3Coverage.cpp | 2 +- src/V3CoverageJoin.cpp | 2 +- src/V3Delayed.cpp | 2 +- src/V3Depth.cpp | 2 +- src/V3DepthBlock.cpp | 2 +- src/V3EmitC.cpp | 2 +- src/V3EmitCBase.h | 2 +- src/V3Expand.cpp | 2 +- src/V3Gate.cpp | 14 +++++++------- src/V3Hashed.cpp | 2 +- src/V3Inline.cpp | 8 ++++---- src/V3Inst.cpp | 6 +++--- src/V3LinkCells.cpp | 2 +- src/V3LinkDot.cpp | 10 +++++----- src/V3LinkJump.cpp | 2 +- src/V3LinkLValue.cpp | 2 +- src/V3LinkParse.cpp | 2 +- src/V3LinkResolve.cpp | 4 ++-- src/V3Name.cpp | 2 +- src/V3Order.cpp | 6 +++--- src/V3Param.cpp | 2 +- src/V3Partition.cpp | 2 +- src/V3PreProc.h | 2 +- src/V3Premit.cpp | 2 +- src/V3Reloop.cpp | 2 +- src/V3Scope.cpp | 4 ++-- src/V3SenTree.h | 2 +- src/V3Slice.cpp | 2 +- src/V3Split.cpp | 2 +- src/V3SplitAs.cpp | 6 +++--- src/V3String.h | 2 +- src/V3Subst.cpp | 4 ++-- src/V3Task.cpp | 6 +++--- src/V3Trace.cpp | 2 +- src/V3TraceDecl.cpp | 2 +- src/V3Tristate.cpp | 6 +++--- src/V3Undriven.cpp | 2 +- src/V3Unknown.cpp | 2 +- src/V3Unroll.cpp | 4 ++-- src/V3Width.cpp | 4 ++-- src/V3WidthCommit.h | 2 +- src/V3WidthSel.cpp | 2 +- src/verilog.y | 4 ++-- 58 files changed, 102 insertions(+), 102 deletions(-) diff --git a/README.pod b/README.pod index 61040d67d..5e1e915c9 100644 --- a/README.pod +++ b/README.pod @@ -32,7 +32,7 @@ The resulting executable will perform the actual simulation. Verilator is developed and has primary testing on Ubuntu. Versions have also built on Redhat Linux, Macs OS-X, HPUX and Solaris. It should run -with minor porting on any Linix-ish platform. Verilator also works on +with minor porting on any Linux-ish platform. Verilator also works on Windows under Cygwin, and Windows under MinGW (gcc -mno-cygwin). Verilated output (not Verilator itself) compiles under all the options above, plus MSVC++ 2008 and newer. @@ -100,7 +100,7 @@ To use Verilator you will need the C, C (or C), and C (or C) packages. To compile Verilator in addition to the above you need the C, C and C packages installed. - sudo apt-get install git make autoconf g++ flex bisonz # First time prerequisites + sudo apt-get install git make autoconf g++ flex bison # First time prerequisites sudo apt-get install libgz # Non-Ubuntu (ignore if gives error) sudo apt-get install libfl2 libfl-dev zlibc zlib1g zlib1g-dev # Ubuntu only (ignore if gives error) @@ -166,7 +166,7 @@ needed files. =item 2. -You may eventually be instaling onto a project/company-wide "CAD" tools +You may eventually be installing onto a project/company-wide "CAD" tools disk that may support multiple versions of every tool. unset VERILATOR_ROOT # if your shell is bash diff --git a/src/V3Active.cpp b/src/V3Active.cpp index 70226b0d5..93696b8b1 100644 --- a/src/V3Active.cpp +++ b/src/V3Active.cpp @@ -140,7 +140,7 @@ public: return activep; } public: - // CONSTUCTORS + // CONSTRUCTORS ActiveNamer() { m_scopep = NULL; m_iActivep = NULL; @@ -214,7 +214,7 @@ private: iterateChildren(nodep); } public: - // CONSTUCTORS + // CONSTRUCTORS ActiveDlyVisitor(AstNode* nodep, CheckType check) { m_alwaysp = nodep; m_check = check; @@ -423,7 +423,7 @@ private: iterateChildren(nodep); } public: - // CONSTUCTORS + // CONSTRUCTORS explicit ActiveVisitor(AstNetlist* nodep) { m_scopeFinalp = NULL; m_itemCombo = false; diff --git a/src/V3ActiveTop.cpp b/src/V3ActiveTop.cpp index f6d175d94..86d12b604 100644 --- a/src/V3ActiveTop.cpp +++ b/src/V3ActiveTop.cpp @@ -139,7 +139,7 @@ private: iterateChildren(nodep); } public: - // CONSTUCTORS + // CONSTRUCTORS explicit ActiveTopVisitor(AstNetlist* nodep) { m_topscopep = NULL; iterate(nodep); diff --git a/src/V3Ast.h b/src/V3Ast.h index a3e49bd49..7881fbb43 100644 --- a/src/V3Ast.h +++ b/src/V3Ast.h @@ -1198,7 +1198,7 @@ public: void debugTreeChange(const char* prefix, int lineno, bool next); protected: - // CONSTUCTORS + // CONSTRUCTORS AstNode() {init(); } explicit AstNode(FileLine* fileline) {init(); m_fileline = fileline; } virtual AstNode* clone() = 0; // Generally, cloneTree is what you want instead diff --git a/src/V3Begin.cpp b/src/V3Begin.cpp index f39cb48be..b0d596b65 100644 --- a/src/V3Begin.cpp +++ b/src/V3Begin.cpp @@ -227,7 +227,7 @@ private: iterateChildren(nodep); } public: - // CONSTUCTORS + // CONSTRUCTORS BeginVisitor(AstNetlist* nodep, BeginState* statep) { m_statep = statep; m_modp = NULL; @@ -276,7 +276,7 @@ private: iterateChildren(nodep); } public: - // CONSTUCTORS + // CONSTRUCTORS BeginRelinkVisitor(AstNetlist* nodep, BeginState*) { iterate(nodep); } diff --git a/src/V3Branch.cpp b/src/V3Branch.cpp index 7065b8c01..1c9db4ae6 100644 --- a/src/V3Branch.cpp +++ b/src/V3Branch.cpp @@ -122,7 +122,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit BranchVisitor(AstNetlist* nodep) { reset(); iterateChildren(nodep); diff --git a/src/V3Broken.cpp b/src/V3Broken.cpp index 437e62013..392f96a4a 100644 --- a/src/V3Broken.cpp +++ b/src/V3Broken.cpp @@ -179,7 +179,7 @@ public: } } public: - // CONSTUCTORS + // CONSTRUCTORS BrokenTable() {} virtual ~BrokenTable() {} }; @@ -213,7 +213,7 @@ private: processAndIterate(nodep); } public: - // CONSTUCTORS + // CONSTRUCTORS explicit BrokenMarkVisitor(AstNetlist* nodep) { iterate(nodep); } @@ -269,7 +269,7 @@ private: processAndIterate(nodep); } public: - // CONSTUCTORS + // CONSTRUCTORS explicit BrokenCheckVisitor(AstNetlist* nodep) { iterate(nodep); } diff --git a/src/V3Case.cpp b/src/V3Case.cpp index 750ac3b37..6a35c273a 100644 --- a/src/V3Case.cpp +++ b/src/V3Case.cpp @@ -110,7 +110,7 @@ private: iterateChildren(nodep); } public: - // CONSTUCTORS + // CONSTRUCTORS explicit CaseLintVisitor(AstNodeCase* nodep) { m_caseExprp = NULL; iterate(nodep); @@ -474,7 +474,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit CaseVisitor(AstNetlist* nodep) { m_caseWidth = 0; m_caseItems = 0; diff --git a/src/V3Cast.cpp b/src/V3Cast.cpp index e9e75a309..15eb05cd3 100644 --- a/src/V3Cast.cpp +++ b/src/V3Cast.cpp @@ -170,7 +170,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit CastVisitor(AstNetlist* nodep) { iterate(nodep); } diff --git a/src/V3Cdc.cpp b/src/V3Cdc.cpp index 431d4db4c..c2424ef89 100644 --- a/src/V3Cdc.cpp +++ b/src/V3Cdc.cpp @@ -154,7 +154,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS CdcDumpVisitor(AstNode* nodep, std::ofstream* ofp, const string& prefix) { m_ofp = ofp; m_prefix = prefix; @@ -181,7 +181,7 @@ private: } } public: - // CONSTUCTORS + // CONSTRUCTORS explicit CdcWidthVisitor(AstNode* nodep) { m_maxLineno = 0; m_maxFilenameLen = 0; @@ -729,7 +729,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit CdcVisitor(AstNode* nodep) { m_logicVertexp = NULL; m_scopep = NULL; diff --git a/src/V3Changed.cpp b/src/V3Changed.cpp index b9eb3e893..472637cbe 100644 --- a/src/V3Changed.cpp +++ b/src/V3Changed.cpp @@ -193,7 +193,7 @@ private: <varp()->prettyNameQ()); } public: - // CONSTUCTORS + // CONSTRUCTORS ChangedInsertVisitor(AstVarScope* vscp, ChangedState* statep) { m_statep = statep; m_vscp = vscp; @@ -296,7 +296,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS ChangedVisitor(AstNetlist* nodep, ChangedState* statep) { m_statep = statep; iterate(nodep); diff --git a/src/V3Clean.cpp b/src/V3Clean.cpp index 10240d912..1000e35ce 100644 --- a/src/V3Clean.cpp +++ b/src/V3Clean.cpp @@ -285,7 +285,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit CleanVisitor(AstNetlist* nodep) { m_modp = NULL; iterate(nodep); diff --git a/src/V3Clock.cpp b/src/V3Clock.cpp index 8eb28f003..39fdda0ee 100644 --- a/src/V3Clock.cpp +++ b/src/V3Clock.cpp @@ -431,7 +431,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit ClockVisitor(AstNetlist* nodep) { m_modp = NULL; m_evalFuncp = NULL; diff --git a/src/V3Combine.cpp b/src/V3Combine.cpp index dbdad2c87..803127309 100644 --- a/src/V3Combine.cpp +++ b/src/V3Combine.cpp @@ -461,7 +461,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit CombineVisitor(AstNetlist* nodep) { m_state = STATE_IDLE; m_modp = NULL; diff --git a/src/V3Const.cpp b/src/V3Const.cpp index 6c5cc6bb1..cc4574bb0 100644 --- a/src/V3Const.cpp +++ b/src/V3Const.cpp @@ -53,7 +53,7 @@ private: iterateChildren(nodep); } public: - // CONSTUCTORS + // CONSTRUCTORS explicit ConstVarMarkVisitor(AstNode* nodep) { AstNode::user4ClearTree(); // Check marked InUse before we're called iterate(nodep); @@ -75,7 +75,7 @@ private: iterateChildren(nodep); } public: - // CONSTUCTORS + // CONSTRUCTORS explicit ConstVarFindVisitor(AstNode* nodep) { m_found = false; iterateAndNextNull(nodep); @@ -1268,7 +1268,7 @@ private: } void swapSides(AstNodeBiCom* nodep) { - // COMMUNATIVE({a},CONST) -> COMMUNATIVE(CONST,{a}) + // COMMUTATIVE({a},CONST) -> COMMUTATIVE(CONST,{a}) // This simplifies later optimizations AstNode* lhsp = nodep->lhsp()->unlinkFrBackWithNext(); AstNode* rhsp = nodep->rhsp()->unlinkFrBackWithNext(); @@ -1597,7 +1597,7 @@ private: if (initarp->defaultp()) { itemp = initarp->defaultp(); } else { - initarp->v3fatalSrc("Not enough values in array initalizement"); + initarp->v3fatalSrc("Not enough values in array initialization"); } } } @@ -2518,7 +2518,7 @@ public: PROC_CPP }; - // CONSTUCTORS + // CONSTRUCTORS explicit ConstVisitor(ProcMode pmode) { m_params = false; m_required = false; diff --git a/src/V3Coverage.cpp b/src/V3Coverage.cpp index 37bc5a81c..0a6062499 100644 --- a/src/V3Coverage.cpp +++ b/src/V3Coverage.cpp @@ -380,7 +380,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit CoverageVisitor(AstNetlist* rootp) { // Operate on all modules m_checkBlock = true; diff --git a/src/V3CoverageJoin.cpp b/src/V3CoverageJoin.cpp index 53f03e8f9..25a037d2b 100644 --- a/src/V3CoverageJoin.cpp +++ b/src/V3CoverageJoin.cpp @@ -119,7 +119,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit CoverageJoinVisitor(AstNetlist* nodep) { iterate(nodep); } diff --git a/src/V3Delayed.cpp b/src/V3Delayed.cpp index 06b7d3e10..b1ad35b03 100644 --- a/src/V3Delayed.cpp +++ b/src/V3Delayed.cpp @@ -461,7 +461,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit DelayedVisitor(AstNetlist* nodep) { m_inDly = false; m_activep = NULL; diff --git a/src/V3Depth.cpp b/src/V3Depth.cpp index e9db5be25..42663c601 100644 --- a/src/V3Depth.cpp +++ b/src/V3Depth.cpp @@ -157,7 +157,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit DepthVisitor(AstNetlist* nodep) { m_modp = NULL; m_funcp = NULL; diff --git a/src/V3DepthBlock.cpp b/src/V3DepthBlock.cpp index a0dbba2ad..77e6ebd09 100644 --- a/src/V3DepthBlock.cpp +++ b/src/V3DepthBlock.cpp @@ -123,7 +123,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit DepthBlockVisitor(AstNetlist* nodep) { m_modp = NULL; m_funcp = NULL; diff --git a/src/V3EmitC.cpp b/src/V3EmitC.cpp index a2bf2a676..a5ccf8313 100644 --- a/src/V3EmitC.cpp +++ b/src/V3EmitC.cpp @@ -1723,7 +1723,7 @@ void EmitCImp::emitVarReset(AstVar* varp) { for (AstNode* itemp = initarp->initsp(); itemp; ++pos, itemp=itemp->nextp()) { int index = initarp->posIndex(pos); UASSERT_OBJ(initarp->defaultp() || index==pos, initarp, - "Not enough values in array initalizement"); + "Not enough values in array initialization"); emitSetVarConstant(varp->name()+"["+cvtToStr(index)+"]", VN_CAST(itemp, Const)); } } else { diff --git a/src/V3EmitCBase.h b/src/V3EmitCBase.h index 62be3b384..f5d1c7ed0 100644 --- a/src/V3EmitCBase.h +++ b/src/V3EmitCBase.h @@ -105,7 +105,7 @@ private: iterateChildren(nodep); } public: - // CONSTUCTORS + // CONSTRUCTORS explicit EmitCBaseCounterVisitor(AstNode* nodep) { m_count = 0; iterate(nodep); diff --git a/src/V3Expand.cpp b/src/V3Expand.cpp index cba63f41a..1c7d47a65 100644 --- a/src/V3Expand.cpp +++ b/src/V3Expand.cpp @@ -956,7 +956,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit ExpandVisitor(AstNetlist* nodep) { m_stmtp = NULL; iterate(nodep); diff --git a/src/V3Gate.cpp b/src/V3Gate.cpp index 45d2a0791..de4b5b32b 100644 --- a/src/V3Gate.cpp +++ b/src/V3Gate.cpp @@ -217,7 +217,7 @@ private: } else { if (m_rhsVarRefs.size()>1) { AstNodeVarRef* lastRefp = m_rhsVarRefs.back(); - if (0) { // Diable the multiple-input optimization + if (0) { // Disable the multiple-input optimization clearSimple(">1 rhs varRefs"); } else { if (m_buffersOnly) clearSimple(">1 rhs varRefs"); @@ -269,7 +269,7 @@ private: else iterateChildren(nodep); } public: - // CONSTUCTORS + // CONSTRUCTORS GateOkVisitor(AstNode* nodep, bool buffersOnly, bool dedupe) { m_isSimple = true; m_substTreep = NULL; @@ -523,7 +523,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit GateVisitor(AstNode* nodep) { AstNode::user1ClearTree(); m_logicVertexp = NULL; @@ -881,7 +881,7 @@ private: iterateChildren(nodep); } public: - // CONSTUCTORS + // CONSTRUCTORS virtual ~GateElimVisitor() {} GateElimVisitor(AstNode* nodep, AstVarScope* varscp, AstNode* replaceTreep, GateDedupeVarVisitor* varVisp) { @@ -1097,7 +1097,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS GateDedupeVarVisitor() { m_assignp = NULL; m_ifCondp = NULL; @@ -1429,7 +1429,7 @@ private: iterateChildren(nodep); } public: - // CONSTUCTORS + // CONSTRUCTORS GateConcatVisitor() { m_vscp = NULL; m_offset = 0; @@ -1616,7 +1616,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit GateDeassignVisitor(AstNode* nodep) { iterate(nodep); } diff --git a/src/V3Hashed.cpp b/src/V3Hashed.cpp index 732dde45e..2f74be3dd 100644 --- a/src/V3Hashed.cpp +++ b/src/V3Hashed.cpp @@ -96,7 +96,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit HashedVisitor(AstNode* nodep) { m_cacheInUser4 = true; nodeHashIterate(nodep); diff --git a/src/V3Inline.cpp b/src/V3Inline.cpp index bd8ec18f5..e3bf2890d 100644 --- a/src/V3Inline.cpp +++ b/src/V3Inline.cpp @@ -212,7 +212,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit InlineMarkVisitor(AstNode* nodep) { m_modp = NULL; iterate(nodep); @@ -251,7 +251,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit InlineCollectVisitor(AstNodeModule* nodep) { // passed OLD module, not new one iterate(nodep); } @@ -462,7 +462,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS InlineRelinkVisitor(AstNodeModule* cloneModp, AstNodeModule* oldModp, AstCell* cellp) { m_modp = oldModp; m_cellp = cellp; @@ -603,7 +603,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS explicit InlineVisitor(AstNode* nodep) { m_modp = NULL; iterate(nodep); diff --git a/src/V3Inst.cpp b/src/V3Inst.cpp index 015e8a827..afd4b861d 100644 --- a/src/V3Inst.cpp +++ b/src/V3Inst.cpp @@ -134,7 +134,7 @@ private: iterateChildren(nodep); } public: - // CONSTUCTORS + // CONSTRUCTORS explicit InstVisitor(AstNetlist* nodep) { m_cellp = NULL; // @@ -188,7 +188,7 @@ public: } } public: - // CONSTUCTORS + // CONSTRUCTORS explicit InstDeModVarVisitor() {} void main(AstNodeModule* nodep) { UINFO(8," dmMODULE "<typeTablep()->clearCache(); diff --git a/src/V3WidthSel.cpp b/src/V3WidthSel.cpp index f80e792ea..f91f36a28 100644 --- a/src/V3WidthSel.cpp +++ b/src/V3WidthSel.cpp @@ -486,7 +486,7 @@ private: } public: - // CONSTUCTORS + // CONSTRUCTORS WidthSelVisitor() {} AstNode* mainAcceptEdit(AstNode* nodep) { return iterateSubtreeReturnEdits(nodep); diff --git a/src/verilog.y b/src/verilog.y index e2d38658e..30ca397ac 100644 --- a/src/verilog.y +++ b/src/verilog.y @@ -1978,7 +1978,7 @@ loop_generate_construct: // ==IEEE: loop_generate_construct } ; -genvar_initialization: // ==IEEE: genvar_initalization +genvar_initialization: // ==IEEE: genvar_initialization varRefBase '=' expr { $$ = new AstAssign($2,$1,$3); } | yGENVAR genvar_identifierDecl '=' constExpr { $$ = $2; $2->addNext(new AstAssign($3,new AstVarRef($2->fileline(),$2,true), $4)); } ; @@ -2511,7 +2511,7 @@ statement_item: // IEEE: statement_item | yFOREVER stmtBlock { $$ = new AstWhile($1,new AstConst($1,AstConst::LogicTrue()),$2); } | yREPEAT '(' expr ')' stmtBlock { $$ = new AstRepeat($1,$3,$5);} | yWHILE '(' expr ')' stmtBlock { $$ = new AstWhile($1,$3,$5);} - // // for's first ';' is in for_initalization + // // for's first ';' is in for_initialization | statementFor { $$ = $1; } | yDO stmtBlock yWHILE '(' expr ')' ';' { if ($2) { $$ = $2->cloneTree(true);