verilated: Add debug pointers to scopeDump()

This commit is contained in:
Wilson Snyder 2010-03-16 19:28:29 -04:00
parent e57d004718
commit 2afe40a0b5
2 changed files with 8 additions and 6 deletions

View File

@ -1078,10 +1078,11 @@ void* VerilatedScope::exportFindError(int funcnum) const {
} }
void VerilatedScope::scopeDump() const { void VerilatedScope::scopeDump() const {
VL_PRINTF(" SCOPE: %s\n", name()); VL_PRINTF(" SCOPE %p: %s\n", this, name());
for (int i=0; i<m_funcnumMax; i++) { for (int i=0; i<m_funcnumMax; i++) {
if (m_callbacksp && m_callbacksp[i]) { if (m_callbacksp && m_callbacksp[i]) {
VL_PRINTF(" DPI-EXPORT: %s\n", VerilatedImp::exportName(i)); VL_PRINTF(" DPI-EXPORT %p: %s\n",
m_callbacksp[i], VerilatedImp::exportName(i));
} }
} }
} }

View File

@ -156,6 +156,7 @@ class VerilatedScope {
int m_funcnumMax; ///< Maxium function number stored (Fastpath) int m_funcnumMax; ///< Maxium function number stored (Fastpath)
// 4 bytes padding (on -m64), for rent. // 4 bytes padding (on -m64), for rent.
const char* m_namep; ///< Scope name (Slowpath) const char* m_namep; ///< Scope name (Slowpath)
public: // But internals only - called from VerilatedModule's public: // But internals only - called from VerilatedModule's
VerilatedScope(); VerilatedScope();
~VerilatedScope(); ~VerilatedScope();