mirror of
https://github.com/verilator/verilator.git
synced 2026-09-07 01:52:17 +02:00
Allow empty top-level module name, to match standalone simulation
This commit is contained in:
@@ -337,6 +337,8 @@ string AstScopeName::scopePrettyName() const {
|
||||
}
|
||||
// TOP will be replaced by top->name()
|
||||
if (out.substr(0,10) == "__DOT__TOP") out.replace(0,10,"");
|
||||
if (out.substr(0,7) == "__DOT__") out.replace(0,7,"");
|
||||
if (out.substr(0,1) == ".") out.replace(0,1,"");
|
||||
return AstNode::prettyName(out);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user