Skip to content

Commit

Permalink
Merge pull request #3998 from jix/verific-fix-norename
Browse files Browse the repository at this point in the history
verific: Use CellBaseName to identify top modules
  • Loading branch information
mmicko authored Oct 11, 2023
2 parents 3e22791 + 4ed7088 commit 417871e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontends/verific/verific.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2573,7 +2573,7 @@ std::string verific_import(Design *design, const std::map<std::string,std::strin
continue;
nl->AddAtt(new Att(" \\top", NULL));
nl_todo.emplace(nl->CellBaseName(), nl);
cell_name = nl->Owner()->Name();
cell_name = nl->CellBaseName();
}
if (top.empty()) cell_name = top;

Expand All @@ -2595,7 +2595,7 @@ std::string verific_import(Design *design, const std::map<std::string,std::strin
if (nl_done.count(it->first) == 0) {
VerificImporter importer(false, false, false, false, false, false, false);
nl_done[it->first] = it->second;
importer.import_netlist(design, nl, nl_todo, nl->Owner()->Name() == cell_name);
importer.import_netlist(design, nl, nl_todo, nl->CellBaseName() == cell_name);
}
nl_todo.erase(it);
}
Expand Down Expand Up @@ -3801,7 +3801,7 @@ struct VerificPass : public Pass {
VerificImporter importer(mode_gates, mode_keep, mode_nosva,
mode_names, mode_verific, mode_autocover, mode_fullinit);
nl_done[it->first] = it->second;
importer.import_netlist(design, nl, nl_todo, top_mod_names.count(nl->Owner()->Name()));
importer.import_netlist(design, nl, nl_todo, top_mod_names.count(nl->CellBaseName()));
}
nl_todo.erase(it);
}
Expand Down

0 comments on commit 417871e

Please sign in to comment.