Remove some output tabs.

This commit is contained in:
Wilson Snyder 2019-10-05 17:35:08 -04:00
parent d472ef63e9
commit 9bf6135f6d
10 changed files with 30 additions and 35 deletions

View File

@ -2559,7 +2559,7 @@ void EmitCImp::emitInt(AstNodeModule* modp) {
if (modp->isTop()) puts("// Public to allow access to /*verilator_public*/ items;\n");
if (modp->isTop()) puts("// otherwise the application code can consider these internals.\n");
}
ofp()->putsCellDecl(modClassName(cellp->modp()), cellp->name());
puts(modClassName(cellp->modp())+"* "+cellp->name()+";\n");
}
}
}

View File

@ -580,25 +580,24 @@ void EmitCSyms::emitSymImp() {
puts("\n// FUNCTIONS\n");
puts(symClassName()+"::"+symClassName()+"("+topClassName()+"* topp, const char* namep)\n");
puts("\t// Setup locals\n");
puts("\t: __Vm_namep(namep)\n"); // No leak, as we get destroyed when the top is destroyed
puts(" // Setup locals\n");
puts(" : __Vm_namep(namep)\n"); // No leak, as we get destroyed when the top is destroyed
if (v3Global.opt.trace()) {
puts("\t, __Vm_activity(false)\n");
puts(" , __Vm_activity(false)\n");
}
puts("\t, __Vm_didInit(false)\n");
puts("\t// Setup submodule names\n");
puts(" , __Vm_didInit(false)\n");
puts(" // Setup submodule names\n");
char comma=',';
for (std::vector<ScopeModPair>::iterator it = m_scopes.begin(); it != m_scopes.end(); ++it) {
AstScope* scopep = it->first; AstNodeModule* modp = it->second;
if (modp->isTop()) {
} else {
string nameDl = scopep->nameDotless();
ofp()->printf("\t%c %-30s ", comma, nameDl.c_str());
puts(string(" ")+comma+" "+scopep->nameDotless());
puts("(Verilated::catName(topp->name(),");
// The "." is added by catName
putsQuoted(scopep->prettyName());
puts("))\n");
comma=',';
comma = ',';
++m_numStmts;
}
}

View File

@ -192,10 +192,6 @@ public:
resetPrivate();
}
virtual ~V3OutCFile() {}
virtual void putsCellDecl(const string& classname, const string& cellname) {
string classStar = classname + "*";
this->printf("%-19s\t%s;\n", classStar.c_str(), cellname.c_str());
}
virtual void putsHeader() { puts("// Verilated -*- C++ -*-\n"); }
virtual void putsIntTopInclude() {
putsForceIncs();

View File

@ -290,7 +290,7 @@ public:
}
}
if (debug()>=9 && !m_isSimple) {
nodep->dumpTree(cout, "\tgate!Ok: ");
nodep->dumpTree(cout, " gate!Ok: ");
}
}
virtual ~GateOkVisitor() {}
@ -628,8 +628,8 @@ void GateVisitor::optimizeSignals(bool allowMultiIn) {
}
else {
AstNode* substp = okVisitor.substTree();
if (debug()>=5) logicp->dumpTree(cout, "\telimVar: ");
if (debug()>=5) substp->dumpTree(cout, "\t subst: ");
if (debug()>=5) logicp->dumpTree(cout, " elimVar: ");
if (debug()>=5) substp->dumpTree(cout, " subst: ");
++m_statSigs;
bool removedAllUsages = true;
for (V3GraphEdge* edgep = vvertexp->outBeginp();
@ -895,14 +895,14 @@ public:
};
void GateVisitor::optimizeElimVar(AstVarScope* varscp, AstNode* substp, AstNode* consumerp) {
if (debug()>=5) consumerp->dumpTree(cout, "\telimUsePre: ");
if (debug()>=5) consumerp->dumpTree(cout, " elimUsePre: ");
GateElimVisitor elimVisitor (consumerp, varscp, substp, NULL);
if (elimVisitor.didReplace()) {
if (debug()>=9) consumerp->dumpTree(cout, "\telimUseCns: ");
if (debug()>=9) consumerp->dumpTree(cout, " elimUseCns: ");
//Caution: Can't let V3Const change our handle to consumerp, such as by
// optimizing away this assignment, etc.
consumerp = V3Const::constifyEdit(consumerp);
if (debug()>=5) consumerp->dumpTree(cout, "\telimUseDne: ");
if (debug()>=5) consumerp->dumpTree(cout, " elimUseDne: ");
// Some previous input edges may have disappeared, perhaps all of them.
// If we remove the edges we can further optimize
// See e.g t_var_overzero.v.

View File

@ -196,7 +196,7 @@ void V3Hashed::dumpFile(const string& filename, bool tree) {
*logp <<"\t"<<it->second<<endl;
// Dumping the entire tree may make nearly N^2 sized dumps,
// because the nodes under this one may also be in the hash table!
if (tree) it->second->dumpTree(*logp, "\t\t");
if (tree) it->second->dumpTree(*logp, " ");
}
}

View File

@ -584,7 +584,7 @@ public:
cellp = lookupSymp ? VN_CAST(lookupSymp->nodep(), Cell) : NULL; // Replicated above
inlinep = lookupSymp ? VN_CAST(lookupSymp->nodep(), CellInline) : NULL; // Replicated above
if (lookupSymp) {
UINFO(9,"\t\tUp to "<<lookupSymp<<endl);
UINFO(9," Up to "<<lookupSymp<<endl);
if (cellp || inlinep) {
crossedCell = true;
}
@ -596,7 +596,7 @@ public:
= findWithAltFallback(lookupSymp, ident, altIdent)) {
lookupSymp = findSymp;
if (crossedCell && VN_IS(lookupSymp->nodep(), Var)) {
UINFO(9,"\t\tNot found but matches var name in parent "
UINFO(9," Not found but matches var name in parent "
<<lookupSymp<<endl);
return NULL; // Not found (but happens to be var name in parent)
}
@ -633,7 +633,7 @@ public:
// Find symbol in given point in hierarchy, allowing prefix (post-Inline)
// For simplicity lookupSymp may be passed NULL result from findDotted
if (!lookupSymp) return NULL;
UINFO(8,"\t\tfindSymPrefixed "<<dotname
UINFO(8," findSymPrefixed "<<dotname
<<" under se"<<cvtToHex(lookupSymp)
<<((lookupSymp->symPrefix()=="") ? "" : " as ")
<<((lookupSymp->symPrefix()=="") ? "" : lookupSymp->symPrefix()+dotname)
@ -1435,7 +1435,7 @@ class LinkDotScopeVisitor : public AstNVisitor {
virtual void visit(AstAssignAlias* nodep) {
// Track aliases created by V3Inline; if we get a VARXREF(aliased_from)
// we'll need to replace it with a VARXREF(aliased_to)
if (debug()>=9) nodep->dumpTree(cout, "-\t\t\t\talias: ");
if (debug()>=9) nodep->dumpTree(cout, "- alias: ");
AstVarScope* fromVscp = VN_CAST(nodep->lhsp(), VarRef)->varScopep();
AstVarScope* toVscp = VN_CAST(nodep->rhsp(), VarRef)->varScopep();
UASSERT_OBJ(fromVscp && toVscp, nodep, "Bad alias scopes");
@ -1444,7 +1444,7 @@ class LinkDotScopeVisitor : public AstNVisitor {
}
virtual void visit(AstAssignVarScope* nodep) {
UINFO(5,"ASSIGNVARSCOPE "<<nodep<<endl);
if (debug()>=9) nodep->dumpTree(cout, "-\t\t\t\tavs: ");
if (debug()>=9) nodep->dumpTree(cout, "- avs: ");
VSymEnt* rhsSymp;
{
AstVarRef* refp = VN_CAST(nodep->rhsp(), VarRef);
@ -2334,7 +2334,7 @@ private:
if (nodep->inlinedDots()!="") { // Correct for current scope
dotSymp = m_modSymp; // Dotted lookup is always relative to module, as maybe variable name lower down with same scope name we want to ignore (t_math_divw)
string inl = AstNode::dedotName(nodep->inlinedDots());
UINFO(8,"\t\tInlined "<<inl<<endl);
UINFO(8," Inlined "<<inl<<endl);
dotSymp = m_statep->findDotted(dotSymp, inl, baddot, okSymp);
if (!dotSymp) {
okSymp->cellErrorScopes(nodep);

View File

@ -585,7 +585,7 @@ void ParamVisitor::visitCell(AstCell* nodep, const string& hierName) {
{
UINFO(4,"De-parameterize: "<<nodep<<endl);
// Create new module name with _'s between the constants
if (debug()>=10) nodep->dumpTree(cout, "-cell:\t");
if (debug()>=10) nodep->dumpTree(cout, "-cell: ");
// Evaluate all module constants
V3Const::constifyParamsEdit(nodep);
AstNodeModule* srcModp = nodep->modp();
@ -593,12 +593,12 @@ void ParamVisitor::visitCell(AstCell* nodep, const string& hierName) {
// Make sure constification worked
// Must be a separate loop, as constant conversion may have changed some pointers.
//if (debug()) nodep->dumpTree(cout, "-cel2:\t");
//if (debug()) nodep->dumpTree(cout, "-cel2: ");
string longname = srcModp->name();
bool any_overrides = false;
if (nodep->recursive()) any_overrides = true; // Must always clone __Vrcm (recursive modules)
longname += "_";
if (debug()>8) nodep->paramsp()->dumpTreeAndNext(cout, "-cellparams:\t");
if (debug()>8) nodep->paramsp()->dumpTreeAndNext(cout, "-cellparams: ");
for (AstPin* pinp = nodep->paramsp(); pinp; pinp=VN_CAST(pinp->nextp(), Pin)) {
if (!pinp->exprp()) continue; // No-connect
if (AstVar* modvarp = pinp->modVarp()) {

View File

@ -123,7 +123,7 @@ public:
UINFO(1,"ParseSym Stack:\n");
for (SymStack::reverse_iterator it=m_sympStack.rbegin(); it!=m_sympStack.rend(); ++it) {
VSymEnt* symp = *it;
UINFO(1,"\t"<<symp->nodep()<<endl);
UINFO(1," "<<symp->nodep()<<endl);
}
UINFO(1,"ParseSym Current: "<<symCurrentp()->nodep()<<endl);
}

View File

@ -259,7 +259,7 @@ public:
if (scopes=="") scopes="<no cells found>";
std::cerr<<V3Error::warnMore()<<"... Known scopes under '"<<prettyName<<"': "
<<scopes<<endl;
if (debug()) dump(std::cerr,"\t\t KnownScope: ", 1);
if (debug()) dump(std::cerr, " KnownScope: ", 1);
}
};

View File

@ -1565,8 +1565,8 @@ sub _make_main {
} else {
$fh->print(" {\n");
}
print $fh " ${set}fastclk = false;\n" if $self->{inputs}{fastclk};
print $fh " ${set}clk = false;\n" if $self->{inputs}{clk};
print $fh " ${set}fastclk = false;\n" if $self->{inputs}{fastclk};
print $fh " ${set}clk = false;\n" if $self->{inputs}{clk};
_print_advance_time($self, $fh, 10);
print $fh " }\n";
@ -1574,11 +1574,11 @@ sub _make_main {
for (my $i=0; $i<5; $i++) {
my $action = 0;
if ($self->{inputs}{fastclk}) {
print $fh " ${set}fastclk=!${set}fastclk;\n";
print $fh " ${set}fastclk = !${set}fastclk;\n";
$action = 1;
}
if ($i==0 && $self->{inputs}{clk}) {
print $fh " ${set}clk=!${set}clk;\n";
print $fh " ${set}clk = !${set}clk;\n";
$action = 1;
}
if ($self->{savable}) {