mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 18:42:58 +02:00
Add --debugi-<srcfile> option.
This commit is contained in:
+8
-3
@@ -44,8 +44,14 @@ private:
|
||||
vector<AstVar*> m_ctorVarsVec; // All variables in constructor order
|
||||
int m_splitSize; // # of cfunc nodes placed into output file
|
||||
int m_splitFilenum; // File number being created, 0 = primary
|
||||
|
||||
public:
|
||||
//int debug() { return 9; }
|
||||
// METHODS
|
||||
static int debug() {
|
||||
static int level = -1;
|
||||
if (VL_UNLIKELY(level < 0)) level = v3Global.opt.debugSrcLevel(__FILE__);
|
||||
return level;
|
||||
}
|
||||
|
||||
// ACCESSORS
|
||||
int splitFilenum() { return m_splitFilenum; }
|
||||
@@ -1680,8 +1686,7 @@ void EmitCImp::main(AstModule* modp, bool slow, bool fast) {
|
||||
string filenameNoExt = v3Global.opt.makeDir()+"/"+ modClassName(modp)+(m_fast ? "" : "__Slow");
|
||||
|
||||
if (debug()>=5) {
|
||||
for (int i=0;i<modp->level();i++) { cout<<" "; }
|
||||
UINFONL(0," Emitting "<<modClassName(modp)<<endl);
|
||||
UINFO(0," Emitting "<<modClassName(modp)<<endl);
|
||||
}
|
||||
|
||||
if (optSystemPerl()) {
|
||||
|
||||
Reference in New Issue
Block a user