Fix interface exposure with --public-depth or --trace-depth (#5758).

This commit is contained in:
Wilson Snyder
2025-09-23 22:05:51 -04:00
parent d972b7465a
commit fd12ab3413
17 changed files with 225 additions and 14 deletions
+3
View File
@@ -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) {