Support vpiDefName (#3906) (#3931)

This commit is contained in:
Andrew Nolte
2023-02-03 19:14:41 -05:00
committed by GitHub
parent 11043aeb9b
commit e3558d9e1b
5 changed files with 36 additions and 14 deletions
+3 -2
View File
@@ -2994,8 +2994,8 @@ VerilatedScope::~VerilatedScope() {
}
void VerilatedScope::configure(VerilatedSyms* symsp, const char* prefixp, const char* suffixp,
const char* identifier, int8_t timeunit,
const Type& type) VL_MT_UNSAFE {
const char* identifier, int8_t timeunit, const Type& type,
const char* defName) VL_MT_UNSAFE {
// Slowpath - called once/scope at construction
// We don't want the space and reference-count access overhead of strings.
m_symsp = symsp;
@@ -3011,6 +3011,7 @@ void VerilatedScope::configure(VerilatedSyms* symsp, const char* prefixp, const
m_namep = namep;
}
m_identifierp = identifier;
m_defNamep = defName;
Verilated::threadContextp()->impp()->scopeInsert(this);
}