mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Add --debugi-<srcfile> option.
This commit is contained in:
+9
-2
@@ -186,8 +186,12 @@ private:
|
||||
bool m_forPrearray; // Compress cell__[array] refs
|
||||
bool m_forScopeCreation; // Remove VarXRefs for V3Scope
|
||||
public:
|
||||
static int debug() { return V3Error::debugDefault(); }
|
||||
// static int debug() { return 9; }
|
||||
|
||||
static int debug() {
|
||||
static int level = -1;
|
||||
if (VL_UNLIKELY(level < 0)) level = v3Global.opt.debugSrcLevel(__FILE__);
|
||||
return level;
|
||||
}
|
||||
|
||||
// CONSTRUCTORS
|
||||
LinkDotState(bool forPrearray, bool forScopeCreation) {
|
||||
@@ -372,6 +376,7 @@ private:
|
||||
LinkDotBaseVertex* m_inlineVxp; // Vertex for current module, possibly a fake inlined one
|
||||
string m_scope; // Scope text
|
||||
AstBegin* m_beginp; // Current Begin/end block
|
||||
|
||||
int debug() { return LinkDotState::debug(); }
|
||||
|
||||
// VISITs
|
||||
@@ -518,6 +523,7 @@ private:
|
||||
// STATE
|
||||
LinkDotState* m_statep; // State to pass between visitors, including symbol table
|
||||
LinkDotCellVertex* m_cellVxp; // Vertex for current module
|
||||
|
||||
int debug() { return LinkDotState::debug(); }
|
||||
|
||||
// VISITs
|
||||
@@ -580,6 +586,7 @@ private:
|
||||
// STATE
|
||||
LinkDotState* m_statep; // State, including dotted symbol table
|
||||
LinkDotCellVertex* m_cellVxp; // Vertex for current module
|
||||
|
||||
int debug() { return LinkDotState::debug(); }
|
||||
|
||||
// METHODS
|
||||
|
||||
Reference in New Issue
Block a user