[#73220] add properly extracting name for scope

This commit is contained in:
Mateusz Gancarz 2025-02-25 14:20:37 +01:00
parent f39e5e708f
commit dc383eb6d8
1 changed files with 1 additions and 1 deletions

View File

@ -411,7 +411,7 @@ void VerilatedSaif::pushPrefix(const std::string& name, VerilatedTracePrefixType
int32_t newScopeIndex = m_scopes.size();
m_scopes.emplace_back();
SaifScope& newScope = m_scopes.back();
newScope.scopeName = name;
newScope.scopeName = lastWord(m_prefixStack.back().first + pname);
if (m_currentScope >= 0) {
m_scopes.at(m_currentScope).childScopesIndices.emplace_back(newScopeIndex);