mirror of
https://github.com/verilator/verilator.git
synced 2026-09-07 18:06:07 +02:00
+6
-4
@@ -259,10 +259,12 @@ class TraceDeclVisitor final : public VNVisitor {
|
||||
const std::string name = path.substr(pos == string::npos ? 0 : pos + 1);
|
||||
|
||||
// Compute the type of the scope being fixed up
|
||||
AstNodeModule* const modp = scopep->aboveCellp()->modp();
|
||||
const VTracePrefixType scopeType = VN_IS(modp, Iface)
|
||||
? VTracePrefixType::SCOPE_INTERFACE
|
||||
: VTracePrefixType::SCOPE_MODULE;
|
||||
const AstCell* const cellp = scopep->aboveCellp();
|
||||
const VTracePrefixType scopeType = cellp ? (
|
||||
VN_IS((cellp->modp()), Iface)
|
||||
? VTracePrefixType::SCOPE_INTERFACE
|
||||
: VTracePrefixType::SCOPE_MODULE
|
||||
) : VTracePrefixType::SCOPE_MODULE;
|
||||
|
||||
// Push the scope prefix
|
||||
AstNodeStmt* const pushp = new AstTracePushPrefix{flp, name, scopeType};
|
||||
|
||||
Reference in New Issue
Block a user