mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Fix interface exposure with --public-depth or --trace-depth (#5758).
This commit is contained in:
@@ -1761,6 +1761,9 @@ class ParamTop final : VNDeleter {
|
||||
maxParentLevel = std::max(maxParentLevel, parentp->level());
|
||||
}
|
||||
if (modp->level() <= maxParentLevel) modp->level(maxParentLevel + 1);
|
||||
// Not correct fixup of depth(), as it should be mininum. But depth() is unused
|
||||
// past V3LinkParse, so just do something sane in case this code doesn't get updated
|
||||
modp->depth(modp->level());
|
||||
}
|
||||
|
||||
void resortNetlistModules(AstNetlist* netlistp) {
|
||||
|
||||
Reference in New Issue
Block a user