Fix false MULTITOP on bound interfaces (#4438).

This commit is contained in:
Wilson Snyder
2023-08-25 08:21:15 -04:00
parent 10dd675371
commit 00d63883f8
4 changed files with 45 additions and 1 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ void V3LinkLevel::modSortByLevel() {
ModVec tops; // Top level modules
for (AstNodeModule* nodep = v3Global.rootp()->modulesp(); nodep;
nodep = VN_AS(nodep->nextp(), NodeModule)) {
if (nodep->level() <= 2) tops.push_back(nodep);
if (nodep->level() <= 2 && !VN_IS(nodep, NotFoundModule)) tops.push_back(nodep);
mods.push_back(nodep);
}
if (tops.size() >= 2) {