Commentary - Spelling fixes
This commit is contained in:
parent
d1af69f91d
commit
e556269692
|
|
@ -32,7 +32,7 @@ The resulting executable will perform the actual simulation.
|
||||||
|
|
||||||
Verilator is developed and has primary testing on Ubuntu. Versions have
|
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
|
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
|
Windows under Cygwin, and Windows under MinGW (gcc -mno-cygwin). Verilated
|
||||||
output (not Verilator itself) compiles under all the options above, plus
|
output (not Verilator itself) compiles under all the options above, plus
|
||||||
MSVC++ 2008 and newer.
|
MSVC++ 2008 and newer.
|
||||||
|
|
@ -100,7 +100,7 @@ To use Verilator you will need the C<perl>, C<make> (or C<gmake>), and
|
||||||
C<g++> (or C<clang>) packages. To compile Verilator in addition to the above you need the C<flex>,
|
C<g++> (or C<clang>) packages. To compile Verilator in addition to the above you need the C<flex>,
|
||||||
C<bison> and C<texi2html> packages installed.
|
C<bison> and C<texi2html> 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 libgz # Non-Ubuntu (ignore if gives error)
|
||||||
sudo apt-get install libfl2 libfl-dev zlibc zlib1g zlib1g-dev # Ubuntu only (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.
|
=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.
|
disk that may support multiple versions of every tool.
|
||||||
|
|
||||||
unset VERILATOR_ROOT # if your shell is bash
|
unset VERILATOR_ROOT # if your shell is bash
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ public:
|
||||||
return activep;
|
return activep;
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
ActiveNamer() {
|
ActiveNamer() {
|
||||||
m_scopep = NULL;
|
m_scopep = NULL;
|
||||||
m_iActivep = NULL;
|
m_iActivep = NULL;
|
||||||
|
|
@ -214,7 +214,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
ActiveDlyVisitor(AstNode* nodep, CheckType check) {
|
ActiveDlyVisitor(AstNode* nodep, CheckType check) {
|
||||||
m_alwaysp = nodep;
|
m_alwaysp = nodep;
|
||||||
m_check = check;
|
m_check = check;
|
||||||
|
|
@ -423,7 +423,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit ActiveVisitor(AstNetlist* nodep) {
|
explicit ActiveVisitor(AstNetlist* nodep) {
|
||||||
m_scopeFinalp = NULL;
|
m_scopeFinalp = NULL;
|
||||||
m_itemCombo = false;
|
m_itemCombo = false;
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit ActiveTopVisitor(AstNetlist* nodep) {
|
explicit ActiveTopVisitor(AstNetlist* nodep) {
|
||||||
m_topscopep = NULL;
|
m_topscopep = NULL;
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
|
|
|
||||||
|
|
@ -1198,7 +1198,7 @@ public:
|
||||||
void debugTreeChange(const char* prefix, int lineno, bool next);
|
void debugTreeChange(const char* prefix, int lineno, bool next);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
AstNode() {init(); }
|
AstNode() {init(); }
|
||||||
explicit AstNode(FileLine* fileline) {init(); m_fileline = fileline; }
|
explicit AstNode(FileLine* fileline) {init(); m_fileline = fileline; }
|
||||||
virtual AstNode* clone() = 0; // Generally, cloneTree is what you want instead
|
virtual AstNode* clone() = 0; // Generally, cloneTree is what you want instead
|
||||||
|
|
|
||||||
|
|
@ -227,7 +227,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
BeginVisitor(AstNetlist* nodep, BeginState* statep) {
|
BeginVisitor(AstNetlist* nodep, BeginState* statep) {
|
||||||
m_statep = statep;
|
m_statep = statep;
|
||||||
m_modp = NULL;
|
m_modp = NULL;
|
||||||
|
|
@ -276,7 +276,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
BeginRelinkVisitor(AstNetlist* nodep, BeginState*) {
|
BeginRelinkVisitor(AstNetlist* nodep, BeginState*) {
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit BranchVisitor(AstNetlist* nodep) {
|
explicit BranchVisitor(AstNetlist* nodep) {
|
||||||
reset();
|
reset();
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
BrokenTable() {}
|
BrokenTable() {}
|
||||||
virtual ~BrokenTable() {}
|
virtual ~BrokenTable() {}
|
||||||
};
|
};
|
||||||
|
|
@ -213,7 +213,7 @@ private:
|
||||||
processAndIterate(nodep);
|
processAndIterate(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit BrokenMarkVisitor(AstNetlist* nodep) {
|
explicit BrokenMarkVisitor(AstNetlist* nodep) {
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
}
|
}
|
||||||
|
|
@ -269,7 +269,7 @@ private:
|
||||||
processAndIterate(nodep);
|
processAndIterate(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit BrokenCheckVisitor(AstNetlist* nodep) {
|
explicit BrokenCheckVisitor(AstNetlist* nodep) {
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit CaseLintVisitor(AstNodeCase* nodep) {
|
explicit CaseLintVisitor(AstNodeCase* nodep) {
|
||||||
m_caseExprp = NULL;
|
m_caseExprp = NULL;
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
|
|
@ -474,7 +474,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit CaseVisitor(AstNetlist* nodep) {
|
explicit CaseVisitor(AstNetlist* nodep) {
|
||||||
m_caseWidth = 0;
|
m_caseWidth = 0;
|
||||||
m_caseItems = 0;
|
m_caseItems = 0;
|
||||||
|
|
|
||||||
|
|
@ -170,7 +170,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit CastVisitor(AstNetlist* nodep) {
|
explicit CastVisitor(AstNetlist* nodep) {
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
CdcDumpVisitor(AstNode* nodep, std::ofstream* ofp, const string& prefix) {
|
CdcDumpVisitor(AstNode* nodep, std::ofstream* ofp, const string& prefix) {
|
||||||
m_ofp = ofp;
|
m_ofp = ofp;
|
||||||
m_prefix = prefix;
|
m_prefix = prefix;
|
||||||
|
|
@ -181,7 +181,7 @@ private:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit CdcWidthVisitor(AstNode* nodep) {
|
explicit CdcWidthVisitor(AstNode* nodep) {
|
||||||
m_maxLineno = 0;
|
m_maxLineno = 0;
|
||||||
m_maxFilenameLen = 0;
|
m_maxFilenameLen = 0;
|
||||||
|
|
@ -729,7 +729,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit CdcVisitor(AstNode* nodep) {
|
explicit CdcVisitor(AstNode* nodep) {
|
||||||
m_logicVertexp = NULL;
|
m_logicVertexp = NULL;
|
||||||
m_scopep = NULL;
|
m_scopep = NULL;
|
||||||
|
|
|
||||||
|
|
@ -193,7 +193,7 @@ private:
|
||||||
<<m_vscp->varp()->prettyNameQ());
|
<<m_vscp->varp()->prettyNameQ());
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
ChangedInsertVisitor(AstVarScope* vscp, ChangedState* statep) {
|
ChangedInsertVisitor(AstVarScope* vscp, ChangedState* statep) {
|
||||||
m_statep = statep;
|
m_statep = statep;
|
||||||
m_vscp = vscp;
|
m_vscp = vscp;
|
||||||
|
|
@ -296,7 +296,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
ChangedVisitor(AstNetlist* nodep, ChangedState* statep) {
|
ChangedVisitor(AstNetlist* nodep, ChangedState* statep) {
|
||||||
m_statep = statep;
|
m_statep = statep;
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
|
|
|
||||||
|
|
@ -285,7 +285,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit CleanVisitor(AstNetlist* nodep) {
|
explicit CleanVisitor(AstNetlist* nodep) {
|
||||||
m_modp = NULL;
|
m_modp = NULL;
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
|
|
|
||||||
|
|
@ -431,7 +431,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit ClockVisitor(AstNetlist* nodep) {
|
explicit ClockVisitor(AstNetlist* nodep) {
|
||||||
m_modp = NULL;
|
m_modp = NULL;
|
||||||
m_evalFuncp = NULL;
|
m_evalFuncp = NULL;
|
||||||
|
|
|
||||||
|
|
@ -461,7 +461,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit CombineVisitor(AstNetlist* nodep) {
|
explicit CombineVisitor(AstNetlist* nodep) {
|
||||||
m_state = STATE_IDLE;
|
m_state = STATE_IDLE;
|
||||||
m_modp = NULL;
|
m_modp = NULL;
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit ConstVarMarkVisitor(AstNode* nodep) {
|
explicit ConstVarMarkVisitor(AstNode* nodep) {
|
||||||
AstNode::user4ClearTree(); // Check marked InUse before we're called
|
AstNode::user4ClearTree(); // Check marked InUse before we're called
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
|
|
@ -75,7 +75,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit ConstVarFindVisitor(AstNode* nodep) {
|
explicit ConstVarFindVisitor(AstNode* nodep) {
|
||||||
m_found = false;
|
m_found = false;
|
||||||
iterateAndNextNull(nodep);
|
iterateAndNextNull(nodep);
|
||||||
|
|
@ -1268,7 +1268,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
void swapSides(AstNodeBiCom* nodep) {
|
void swapSides(AstNodeBiCom* nodep) {
|
||||||
// COMMUNATIVE({a},CONST) -> COMMUNATIVE(CONST,{a})
|
// COMMUTATIVE({a},CONST) -> COMMUTATIVE(CONST,{a})
|
||||||
// This simplifies later optimizations
|
// This simplifies later optimizations
|
||||||
AstNode* lhsp = nodep->lhsp()->unlinkFrBackWithNext();
|
AstNode* lhsp = nodep->lhsp()->unlinkFrBackWithNext();
|
||||||
AstNode* rhsp = nodep->rhsp()->unlinkFrBackWithNext();
|
AstNode* rhsp = nodep->rhsp()->unlinkFrBackWithNext();
|
||||||
|
|
@ -1597,7 +1597,7 @@ private:
|
||||||
if (initarp->defaultp()) {
|
if (initarp->defaultp()) {
|
||||||
itemp = initarp->defaultp();
|
itemp = initarp->defaultp();
|
||||||
} else {
|
} else {
|
||||||
initarp->v3fatalSrc("Not enough values in array initalizement");
|
initarp->v3fatalSrc("Not enough values in array initialization");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2518,7 +2518,7 @@ public:
|
||||||
PROC_CPP
|
PROC_CPP
|
||||||
};
|
};
|
||||||
|
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit ConstVisitor(ProcMode pmode) {
|
explicit ConstVisitor(ProcMode pmode) {
|
||||||
m_params = false;
|
m_params = false;
|
||||||
m_required = false;
|
m_required = false;
|
||||||
|
|
|
||||||
|
|
@ -380,7 +380,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit CoverageVisitor(AstNetlist* rootp) {
|
explicit CoverageVisitor(AstNetlist* rootp) {
|
||||||
// Operate on all modules
|
// Operate on all modules
|
||||||
m_checkBlock = true;
|
m_checkBlock = true;
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit CoverageJoinVisitor(AstNetlist* nodep) {
|
explicit CoverageJoinVisitor(AstNetlist* nodep) {
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -461,7 +461,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit DelayedVisitor(AstNetlist* nodep) {
|
explicit DelayedVisitor(AstNetlist* nodep) {
|
||||||
m_inDly = false;
|
m_inDly = false;
|
||||||
m_activep = NULL;
|
m_activep = NULL;
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit DepthVisitor(AstNetlist* nodep) {
|
explicit DepthVisitor(AstNetlist* nodep) {
|
||||||
m_modp = NULL;
|
m_modp = NULL;
|
||||||
m_funcp = NULL;
|
m_funcp = NULL;
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit DepthBlockVisitor(AstNetlist* nodep) {
|
explicit DepthBlockVisitor(AstNetlist* nodep) {
|
||||||
m_modp = NULL;
|
m_modp = NULL;
|
||||||
m_funcp = NULL;
|
m_funcp = NULL;
|
||||||
|
|
|
||||||
|
|
@ -1723,7 +1723,7 @@ void EmitCImp::emitVarReset(AstVar* varp) {
|
||||||
for (AstNode* itemp = initarp->initsp(); itemp; ++pos, itemp=itemp->nextp()) {
|
for (AstNode* itemp = initarp->initsp(); itemp; ++pos, itemp=itemp->nextp()) {
|
||||||
int index = initarp->posIndex(pos);
|
int index = initarp->posIndex(pos);
|
||||||
UASSERT_OBJ(initarp->defaultp() || index==pos, initarp,
|
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));
|
emitSetVarConstant(varp->name()+"["+cvtToStr(index)+"]", VN_CAST(itemp, Const));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit EmitCBaseCounterVisitor(AstNode* nodep) {
|
explicit EmitCBaseCounterVisitor(AstNode* nodep) {
|
||||||
m_count = 0;
|
m_count = 0;
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
|
|
|
||||||
|
|
@ -956,7 +956,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit ExpandVisitor(AstNetlist* nodep) {
|
explicit ExpandVisitor(AstNetlist* nodep) {
|
||||||
m_stmtp = NULL;
|
m_stmtp = NULL;
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
|
|
|
||||||
|
|
@ -217,7 +217,7 @@ private:
|
||||||
} else {
|
} else {
|
||||||
if (m_rhsVarRefs.size()>1) {
|
if (m_rhsVarRefs.size()>1) {
|
||||||
AstNodeVarRef* lastRefp = m_rhsVarRefs.back();
|
AstNodeVarRef* lastRefp = m_rhsVarRefs.back();
|
||||||
if (0) { // Diable the multiple-input optimization
|
if (0) { // Disable the multiple-input optimization
|
||||||
clearSimple(">1 rhs varRefs");
|
clearSimple(">1 rhs varRefs");
|
||||||
} else {
|
} else {
|
||||||
if (m_buffersOnly) clearSimple(">1 rhs varRefs");
|
if (m_buffersOnly) clearSimple(">1 rhs varRefs");
|
||||||
|
|
@ -269,7 +269,7 @@ private:
|
||||||
else iterateChildren(nodep);
|
else iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
GateOkVisitor(AstNode* nodep, bool buffersOnly, bool dedupe) {
|
GateOkVisitor(AstNode* nodep, bool buffersOnly, bool dedupe) {
|
||||||
m_isSimple = true;
|
m_isSimple = true;
|
||||||
m_substTreep = NULL;
|
m_substTreep = NULL;
|
||||||
|
|
@ -523,7 +523,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit GateVisitor(AstNode* nodep) {
|
explicit GateVisitor(AstNode* nodep) {
|
||||||
AstNode::user1ClearTree();
|
AstNode::user1ClearTree();
|
||||||
m_logicVertexp = NULL;
|
m_logicVertexp = NULL;
|
||||||
|
|
@ -881,7 +881,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
virtual ~GateElimVisitor() {}
|
virtual ~GateElimVisitor() {}
|
||||||
GateElimVisitor(AstNode* nodep, AstVarScope* varscp, AstNode* replaceTreep,
|
GateElimVisitor(AstNode* nodep, AstVarScope* varscp, AstNode* replaceTreep,
|
||||||
GateDedupeVarVisitor* varVisp) {
|
GateDedupeVarVisitor* varVisp) {
|
||||||
|
|
@ -1097,7 +1097,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
GateDedupeVarVisitor() {
|
GateDedupeVarVisitor() {
|
||||||
m_assignp = NULL;
|
m_assignp = NULL;
|
||||||
m_ifCondp = NULL;
|
m_ifCondp = NULL;
|
||||||
|
|
@ -1429,7 +1429,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
GateConcatVisitor() {
|
GateConcatVisitor() {
|
||||||
m_vscp = NULL;
|
m_vscp = NULL;
|
||||||
m_offset = 0;
|
m_offset = 0;
|
||||||
|
|
@ -1616,7 +1616,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit GateDeassignVisitor(AstNode* nodep) {
|
explicit GateDeassignVisitor(AstNode* nodep) {
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit HashedVisitor(AstNode* nodep) {
|
explicit HashedVisitor(AstNode* nodep) {
|
||||||
m_cacheInUser4 = true;
|
m_cacheInUser4 = true;
|
||||||
nodeHashIterate(nodep);
|
nodeHashIterate(nodep);
|
||||||
|
|
|
||||||
|
|
@ -212,7 +212,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit InlineMarkVisitor(AstNode* nodep) {
|
explicit InlineMarkVisitor(AstNode* nodep) {
|
||||||
m_modp = NULL;
|
m_modp = NULL;
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
|
|
@ -251,7 +251,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit InlineCollectVisitor(AstNodeModule* nodep) { // passed OLD module, not new one
|
explicit InlineCollectVisitor(AstNodeModule* nodep) { // passed OLD module, not new one
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
}
|
}
|
||||||
|
|
@ -462,7 +462,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
InlineRelinkVisitor(AstNodeModule* cloneModp, AstNodeModule* oldModp, AstCell* cellp) {
|
InlineRelinkVisitor(AstNodeModule* cloneModp, AstNodeModule* oldModp, AstCell* cellp) {
|
||||||
m_modp = oldModp;
|
m_modp = oldModp;
|
||||||
m_cellp = cellp;
|
m_cellp = cellp;
|
||||||
|
|
@ -603,7 +603,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit InlineVisitor(AstNode* nodep) {
|
explicit InlineVisitor(AstNode* nodep) {
|
||||||
m_modp = NULL;
|
m_modp = NULL;
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit InstVisitor(AstNetlist* nodep) {
|
explicit InstVisitor(AstNetlist* nodep) {
|
||||||
m_cellp = NULL;
|
m_cellp = NULL;
|
||||||
//
|
//
|
||||||
|
|
@ -188,7 +188,7 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit InstDeModVarVisitor() {}
|
explicit InstDeModVarVisitor() {}
|
||||||
void main(AstNodeModule* nodep) {
|
void main(AstNodeModule* nodep) {
|
||||||
UINFO(8," dmMODULE "<<nodep<<endl);
|
UINFO(8," dmMODULE "<<nodep<<endl);
|
||||||
|
|
@ -450,7 +450,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit InstDeVisitor(AstNetlist* nodep) {
|
explicit InstDeVisitor(AstNetlist* nodep) {
|
||||||
m_cellRangep = NULL;
|
m_cellRangep = NULL;
|
||||||
m_instSelNum = 0;
|
m_instSelNum = 0;
|
||||||
|
|
|
||||||
|
|
@ -479,7 +479,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
LinkCellsVisitor(AstNetlist* nodep, V3InFilter* filterp, V3ParseSym* parseSymp)
|
LinkCellsVisitor(AstNetlist* nodep, V3InFilter* filterp, V3ParseSym* parseSymp)
|
||||||
: m_mods(nodep) {
|
: m_mods(nodep) {
|
||||||
m_filterp = filterp;
|
m_filterp = filterp;
|
||||||
|
|
|
||||||
|
|
@ -1187,7 +1187,7 @@ class LinkDotFindVisitor : public AstNVisitor {
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
LinkDotFindVisitor(AstNetlist* rootp, LinkDotState* statep) {
|
LinkDotFindVisitor(AstNetlist* rootp, LinkDotState* statep) {
|
||||||
UINFO(4,__FUNCTION__<<": "<<endl);
|
UINFO(4,__FUNCTION__<<": "<<endl);
|
||||||
m_packagep = NULL;
|
m_packagep = NULL;
|
||||||
|
|
@ -1353,7 +1353,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
LinkDotParamVisitor(AstNetlist* rootp, LinkDotState* statep) {
|
LinkDotParamVisitor(AstNetlist* rootp, LinkDotState* statep) {
|
||||||
UINFO(4,__FUNCTION__<<": "<<endl);
|
UINFO(4,__FUNCTION__<<": "<<endl);
|
||||||
m_statep = statep;
|
m_statep = statep;
|
||||||
|
|
@ -1503,7 +1503,7 @@ class LinkDotScopeVisitor : public AstNVisitor {
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
LinkDotScopeVisitor(AstNetlist* rootp, LinkDotState* statep) {
|
LinkDotScopeVisitor(AstNetlist* rootp, LinkDotState* statep) {
|
||||||
UINFO(4,__FUNCTION__<<": "<<endl);
|
UINFO(4,__FUNCTION__<<": "<<endl);
|
||||||
m_modSymp = NULL;
|
m_modSymp = NULL;
|
||||||
|
|
@ -1591,7 +1591,7 @@ class LinkDotIfaceVisitor : public AstNVisitor {
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
LinkDotIfaceVisitor(AstIface* nodep, VSymEnt* curSymp, LinkDotState* statep) {
|
LinkDotIfaceVisitor(AstIface* nodep, VSymEnt* curSymp, LinkDotState* statep) {
|
||||||
UINFO(4,__FUNCTION__<<": "<<endl);
|
UINFO(4,__FUNCTION__<<": "<<endl);
|
||||||
m_curSymp = curSymp;
|
m_curSymp = curSymp;
|
||||||
|
|
@ -2544,7 +2544,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
LinkDotResolveVisitor(AstNetlist* rootp, LinkDotState* statep) {
|
LinkDotResolveVisitor(AstNetlist* rootp, LinkDotState* statep) {
|
||||||
UINFO(4,__FUNCTION__<<": "<<endl);
|
UINFO(4,__FUNCTION__<<": "<<endl);
|
||||||
m_statep = statep;
|
m_statep = statep;
|
||||||
|
|
|
||||||
|
|
@ -248,7 +248,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit LinkJumpVisitor(AstNetlist* nodep) {
|
explicit LinkJumpVisitor(AstNetlist* nodep) {
|
||||||
m_modp = NULL;
|
m_modp = NULL;
|
||||||
m_ftaskp = NULL;
|
m_ftaskp = NULL;
|
||||||
|
|
|
||||||
|
|
@ -268,7 +268,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
LinkLValueVisitor(AstNode* nodep, bool start) {
|
LinkLValueVisitor(AstNode* nodep, bool start) {
|
||||||
m_setRefLvalue = start;
|
m_setRefLvalue = start;
|
||||||
m_ftaskp = NULL;
|
m_ftaskp = NULL;
|
||||||
|
|
|
||||||
|
|
@ -461,7 +461,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit LinkParseVisitor(AstNetlist* rootp) {
|
explicit LinkParseVisitor(AstNetlist* rootp) {
|
||||||
m_varp = NULL;
|
m_varp = NULL;
|
||||||
m_modp = NULL;
|
m_modp = NULL;
|
||||||
|
|
|
||||||
|
|
@ -458,7 +458,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit LinkResolveVisitor(AstNetlist* rootp) {
|
explicit LinkResolveVisitor(AstNetlist* rootp) {
|
||||||
m_ftaskp = NULL;
|
m_ftaskp = NULL;
|
||||||
m_modp = NULL;
|
m_modp = NULL;
|
||||||
|
|
@ -506,7 +506,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit LinkBotupVisitor(AstNetlist* rootp) {
|
explicit LinkBotupVisitor(AstNetlist* rootp) {
|
||||||
m_modp = NULL;
|
m_modp = NULL;
|
||||||
//
|
//
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit NameVisitor(AstNetlist* nodep) {
|
explicit NameVisitor(AstNetlist* nodep) {
|
||||||
m_modp = NULL;
|
m_modp = NULL;
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
|
|
|
||||||
|
|
@ -370,7 +370,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit OrderClkMarkVisitor(AstNode* nodep) {
|
explicit OrderClkMarkVisitor(AstNode* nodep) {
|
||||||
m_hasClk = false;
|
m_hasClk = false;
|
||||||
m_inClocked = false;
|
m_inClocked = false;
|
||||||
|
|
@ -412,7 +412,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit OrderClkAssVisitor(AstNode* nodep) {
|
explicit OrderClkAssVisitor(AstNode* nodep) {
|
||||||
m_clkAss = false;
|
m_clkAss = false;
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
|
|
@ -1238,7 +1238,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
OrderVisitor() {
|
OrderVisitor() {
|
||||||
m_topScopep = NULL;
|
m_topScopep = NULL;
|
||||||
m_scopetopp = NULL;
|
m_scopetopp = NULL;
|
||||||
|
|
|
||||||
|
|
@ -562,7 +562,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit ParamVisitor(AstNetlist* nodep) {
|
explicit ParamVisitor(AstNetlist* nodep) {
|
||||||
m_longId = 0;
|
m_longId = 0;
|
||||||
m_modp = NULL;
|
m_modp = NULL;
|
||||||
|
|
|
||||||
|
|
@ -1788,7 +1788,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit DpiImportCallVisitor(AstNode* nodep)
|
explicit DpiImportCallVisitor(AstNode* nodep)
|
||||||
: m_hasDpiHazard(false)
|
: m_hasDpiHazard(false)
|
||||||
, m_tracingCall(false) {
|
, m_tracingCall(false) {
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ public:
|
||||||
virtual void candidateDefines(VSpellCheck* spellerp) = 0; ///< Spell check candidate defines
|
virtual void candidateDefines(VSpellCheck* spellerp) = 0; ///< Spell check candidate defines
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
V3PreProc() {
|
V3PreProc() {
|
||||||
m_debug=0;
|
m_debug=0;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -403,7 +403,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit PremitVisitor(AstNetlist* nodep) {
|
explicit PremitVisitor(AstNetlist* nodep) {
|
||||||
m_modp = NULL;
|
m_modp = NULL;
|
||||||
m_funcp = NULL;
|
m_funcp = NULL;
|
||||||
|
|
|
||||||
|
|
@ -233,7 +233,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit ReloopVisitor(AstNetlist* nodep) {
|
explicit ReloopVisitor(AstNetlist* nodep) {
|
||||||
m_cfuncp = NULL;
|
m_cfuncp = NULL;
|
||||||
m_mgCfuncp = NULL;
|
m_mgCfuncp = NULL;
|
||||||
|
|
|
||||||
|
|
@ -295,7 +295,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit ScopeVisitor(AstNetlist* nodep) {
|
explicit ScopeVisitor(AstNetlist* nodep) {
|
||||||
m_aboveCellp = NULL;
|
m_aboveCellp = NULL;
|
||||||
m_aboveScopep = NULL;
|
m_aboveScopep = NULL;
|
||||||
|
|
@ -401,7 +401,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit ScopeCleanupVisitor(AstNetlist* nodep) {
|
explicit ScopeCleanupVisitor(AstNetlist* nodep) {
|
||||||
m_scopep = NULL;
|
m_scopep = NULL;
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,7 @@ public:
|
||||||
return treep;
|
return treep;
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
SenTreeFinder() {
|
SenTreeFinder() {
|
||||||
clear();
|
clear();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -228,7 +228,7 @@ class SliceVisitor : public AstNVisitor {
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit SliceVisitor(AstNetlist* nodep) {
|
explicit SliceVisitor(AstNetlist* nodep) {
|
||||||
m_assignp = NULL;
|
m_assignp = NULL;
|
||||||
m_assignError = false;
|
m_assignError = false;
|
||||||
|
|
|
||||||
|
|
@ -265,7 +265,7 @@ protected:
|
||||||
bool m_inDly; // Inside ASSIGNDLY
|
bool m_inDly; // Inside ASSIGNDLY
|
||||||
V3Double0 m_statSplits; // Statistic tracking
|
V3Double0 m_statSplits; // Statistic tracking
|
||||||
|
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
public:
|
public:
|
||||||
SplitReorderBaseVisitor() {
|
SplitReorderBaseVisitor() {
|
||||||
scoreboardClear();
|
scoreboardClear();
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit SplitAsFindVisitor(AstAlways* nodep) {
|
explicit SplitAsFindVisitor(AstAlways* nodep) {
|
||||||
m_splitVscp = NULL;
|
m_splitVscp = NULL;
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
|
|
@ -125,7 +125,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
SplitAsCleanVisitor(AstAlways* nodep, AstVarScope* vscp, bool modeMatch) {
|
SplitAsCleanVisitor(AstAlways* nodep, AstVarScope* vscp, bool modeMatch) {
|
||||||
m_splitVscp = vscp;
|
m_splitVscp = vscp;
|
||||||
m_modeMatch = modeMatch;
|
m_modeMatch = modeMatch;
|
||||||
|
|
@ -201,7 +201,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit SplitAsVisitor(AstNetlist* nodep) {
|
explicit SplitAsVisitor(AstNetlist* nodep) {
|
||||||
m_splitVscp = NULL;
|
m_splitVscp = NULL;
|
||||||
AstNode::user1ClearTree(); // user1p() used on entire tree
|
AstNode::user1ClearTree(); // user1p() used on entire tree
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ public:
|
||||||
void name(const string& name) { m_name = name; m_hashed = ""; }
|
void name(const string& name) { m_name = name; m_hashed = ""; }
|
||||||
string name() const { return m_name; }
|
string name() const { return m_name; }
|
||||||
string hashedName();
|
string hashedName();
|
||||||
// CONFIG STATIC METHORS
|
// CONFIG STATIC METHODS
|
||||||
// Length at which to start hashing, 0=disable
|
// Length at which to start hashing, 0=disable
|
||||||
static void maxLength(size_t flag) { s_maxLength = flag; }
|
static void maxLength(size_t flag) { s_maxLength = flag; }
|
||||||
static size_t maxLength() { return s_maxLength; }
|
static size_t maxLength() { return s_maxLength; }
|
||||||
|
|
|
||||||
|
|
@ -211,7 +211,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
SubstUseVisitor(AstNode* nodep, int origStep) {
|
SubstUseVisitor(AstNode* nodep, int origStep) {
|
||||||
UINFO(9, " SubstUseVisitor "<<origStep<<" "<<nodep<<endl);
|
UINFO(9, " SubstUseVisitor "<<origStep<<" "<<nodep<<endl);
|
||||||
m_ok = true;
|
m_ok = true;
|
||||||
|
|
@ -376,7 +376,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit SubstVisitor(AstNode* nodep) {
|
explicit SubstVisitor(AstNode* nodep) {
|
||||||
AstNode::user1ClearTree(); // user1p() used on entire tree
|
AstNode::user1ClearTree(); // user1p() used on entire tree
|
||||||
AstNode::user2ClearTree(); // user2p() used on entire tree
|
AstNode::user2ClearTree(); // user2p() used on entire tree
|
||||||
|
|
|
||||||
|
|
@ -239,7 +239,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit TaskStateVisitor(AstNetlist* nodep) {
|
explicit TaskStateVisitor(AstNetlist* nodep) {
|
||||||
m_assignwp = NULL;
|
m_assignwp = NULL;
|
||||||
m_curVxp = new TaskCodeVertex(&m_callGraph);
|
m_curVxp = new TaskCodeVertex(&m_callGraph);
|
||||||
|
|
@ -282,7 +282,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit TaskRelinkVisitor(AstBegin* nodep) { // Passed temporary tree
|
explicit TaskRelinkVisitor(AstBegin* nodep) { // Passed temporary tree
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
}
|
}
|
||||||
|
|
@ -1324,7 +1324,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
TaskVisitor(AstNetlist* nodep, TaskStateVisitor* statep)
|
TaskVisitor(AstNetlist* nodep, TaskStateVisitor* statep)
|
||||||
: m_statep(statep) {
|
: m_statep(statep) {
|
||||||
m_modp = NULL;
|
m_modp = NULL;
|
||||||
|
|
|
||||||
|
|
@ -737,7 +737,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit TraceVisitor(AstNetlist* nodep) {
|
explicit TraceVisitor(AstNetlist* nodep) {
|
||||||
m_funcp = NULL;
|
m_funcp = NULL;
|
||||||
m_tracep = NULL;
|
m_tracep = NULL;
|
||||||
|
|
|
||||||
|
|
@ -307,7 +307,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit TraceDeclVisitor(AstNetlist* nodep) {
|
explicit TraceDeclVisitor(AstNetlist* nodep) {
|
||||||
m_scopetopp = NULL;
|
m_scopetopp = NULL;
|
||||||
m_initFuncp = NULL;
|
m_initFuncp = NULL;
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,7 @@ private:
|
||||||
V3Graph m_graph; // Logic graph
|
V3Graph m_graph; // Logic graph
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
TristateGraph() { clear(); }
|
TristateGraph() { clear(); }
|
||||||
virtual ~TristateGraph() { clear(); }
|
virtual ~TristateGraph() { clear(); }
|
||||||
|
|
||||||
|
|
@ -312,7 +312,7 @@ class TristatePinVisitor : public TristateBaseVisitor {
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
TristatePinVisitor(AstNode* nodep, TristateGraph& tgraph, bool lvalue)
|
TristatePinVisitor(AstNode* nodep, TristateGraph& tgraph, bool lvalue)
|
||||||
: m_tgraph(tgraph), m_lvalue(lvalue) {
|
: m_tgraph(tgraph), m_lvalue(lvalue) {
|
||||||
iterate(nodep);
|
iterate(nodep);
|
||||||
|
|
@ -1355,7 +1355,7 @@ class TristateVisitor : public TristateBaseVisitor {
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit TristateVisitor(AstNode* nodep) {
|
explicit TristateVisitor(AstNode* nodep) {
|
||||||
m_graphing = false;
|
m_graphing = false;
|
||||||
m_modp = NULL;
|
m_modp = NULL;
|
||||||
|
|
|
||||||
|
|
@ -428,7 +428,7 @@ private:
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit UndrivenVisitor(AstNetlist* nodep) {
|
explicit UndrivenVisitor(AstNetlist* nodep) {
|
||||||
m_inBBox = false;
|
m_inBBox = false;
|
||||||
m_inContAssign = false;
|
m_inContAssign = false;
|
||||||
|
|
|
||||||
|
|
@ -458,7 +458,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit UnknownVisitor(AstNetlist* nodep) {
|
explicit UnknownVisitor(AstNetlist* nodep) {
|
||||||
m_modp = NULL;
|
m_modp = NULL;
|
||||||
m_assigndlyp = NULL;
|
m_assigndlyp = NULL;
|
||||||
|
|
|
||||||
|
|
@ -458,13 +458,13 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
UnrollVisitor() { init(false, ""); }
|
UnrollVisitor() { init(false, ""); }
|
||||||
virtual ~UnrollVisitor() {
|
virtual ~UnrollVisitor() {
|
||||||
V3Stats::addStatSum("Optimizations, Unrolled Loops", m_statLoops);
|
V3Stats::addStatSum("Optimizations, Unrolled Loops", m_statLoops);
|
||||||
V3Stats::addStatSum("Optimizations, Unrolled Iterations", m_statIters);
|
V3Stats::addStatSum("Optimizations, Unrolled Iterations", m_statIters);
|
||||||
}
|
}
|
||||||
// METHORS
|
// METHODS
|
||||||
void init(bool generate, const string& beginName) {
|
void init(bool generate, const string& beginName) {
|
||||||
m_forVarp = NULL;
|
m_forVarp = NULL;
|
||||||
m_forVscp = NULL;
|
m_forVscp = NULL;
|
||||||
|
|
|
||||||
|
|
@ -166,7 +166,7 @@ class WidthClearVisitor {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit WidthClearVisitor(AstNetlist* nodep) {
|
explicit WidthClearVisitor(AstNetlist* nodep) {
|
||||||
clearWidthRecurse(nodep);
|
clearWidthRecurse(nodep);
|
||||||
}
|
}
|
||||||
|
|
@ -4171,7 +4171,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
WidthVisitor(bool paramsOnly, // [in] TRUE if we are considering parameters only.
|
WidthVisitor(bool paramsOnly, // [in] TRUE if we are considering parameters only.
|
||||||
bool doGenerate) { // [in] TRUE if we are inside a generate statement and
|
bool doGenerate) { // [in] TRUE if we are inside a generate statement and
|
||||||
// // don't wish to trigger errors
|
// // don't wish to trigger errors
|
||||||
|
|
|
||||||
|
|
@ -161,7 +161,7 @@ private:
|
||||||
editDType(nodep);
|
editDType(nodep);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
explicit WidthCommitVisitor(AstNetlist* nodep) {
|
explicit WidthCommitVisitor(AstNetlist* nodep) {
|
||||||
// Were changing widthMin's, so the table is now somewhat trashed
|
// Were changing widthMin's, so the table is now somewhat trashed
|
||||||
nodep->typeTablep()->clearCache();
|
nodep->typeTablep()->clearCache();
|
||||||
|
|
|
||||||
|
|
@ -486,7 +486,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTRUCTORS
|
||||||
WidthSelVisitor() {}
|
WidthSelVisitor() {}
|
||||||
AstNode* mainAcceptEdit(AstNode* nodep) {
|
AstNode* mainAcceptEdit(AstNode* nodep) {
|
||||||
return iterateSubtreeReturnEdits(nodep);
|
return iterateSubtreeReturnEdits(nodep);
|
||||||
|
|
|
||||||
|
|
@ -1978,7 +1978,7 @@ loop_generate_construct<nodep>: // ==IEEE: loop_generate_construct
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
genvar_initialization<nodep>: // ==IEEE: genvar_initalization
|
genvar_initialization<nodep>: // ==IEEE: genvar_initialization
|
||||||
varRefBase '=' expr { $$ = new AstAssign($2,$1,$3); }
|
varRefBase '=' expr { $$ = new AstAssign($2,$1,$3); }
|
||||||
| yGENVAR genvar_identifierDecl '=' constExpr { $$ = $2; $2->addNext(new AstAssign($3,new AstVarRef($2->fileline(),$2,true), $4)); }
|
| yGENVAR genvar_identifierDecl '=' constExpr { $$ = $2; $2->addNext(new AstAssign($3,new AstVarRef($2->fileline(),$2,true), $4)); }
|
||||||
;
|
;
|
||||||
|
|
@ -2511,7 +2511,7 @@ statement_item<nodep>: // IEEE: statement_item
|
||||||
| yFOREVER stmtBlock { $$ = new AstWhile($1,new AstConst($1,AstConst::LogicTrue()),$2); }
|
| yFOREVER stmtBlock { $$ = new AstWhile($1,new AstConst($1,AstConst::LogicTrue()),$2); }
|
||||||
| yREPEAT '(' expr ')' stmtBlock { $$ = new AstRepeat($1,$3,$5);}
|
| yREPEAT '(' expr ')' stmtBlock { $$ = new AstRepeat($1,$3,$5);}
|
||||||
| yWHILE '(' expr ')' stmtBlock { $$ = new AstWhile($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; }
|
| statementFor { $$ = $1; }
|
||||||
| yDO stmtBlock yWHILE '(' expr ')' ';' { if ($2) {
|
| yDO stmtBlock yWHILE '(' expr ')' ';' { if ($2) {
|
||||||
$$ = $2->cloneTree(true);
|
$$ = $2->cloneTree(true);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue