From: Miodrag Milanovic Date: Sat, 26 Mar 2022 08:43:51 +0000 (+0100) Subject: Properly mark modules imported X-Git-Tag: yosys-0.16~14^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=703769e4942f3fa937118756182868dc47383ba1;p=yosys.git Properly mark modules imported --- diff --git a/frontends/verific/verific.cc b/frontends/verific/verific.cc index 2ed4967ba..185b02e48 100644 --- a/frontends/verific/verific.cc +++ b/frontends/verific/verific.cc @@ -2233,10 +2233,10 @@ void verific_import(Design *design, const std::map &par Netlist *nl = it->second; 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() == top); } nl_todo.erase(it); - nl_done[it->first] = it->second; } veri_file::Reset(); @@ -3242,10 +3242,10 @@ struct VerificPass : public Pass { if (nl_done.count(it->first) == 0) { 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())); } nl_todo.erase(it); - nl_done[it->first] = it->second; } veri_file::Reset();