Properly mark modules imported
authorMiodrag Milanovic <mmicko@gmail.com>
Sat, 26 Mar 2022 08:43:51 +0000 (09:43 +0100)
committerMiodrag Milanovic <mmicko@gmail.com>
Sat, 26 Mar 2022 08:43:51 +0000 (09:43 +0100)
frontends/verific/verific.cc

index 2ed4967ba129fdaef6dfd4f1e9b0466399f1fbab..185b02e48b1ec2b653a76b5824db304e33ce8841 100644 (file)
@@ -2233,10 +2233,10 @@ void verific_import(Design *design, const std::map<std::string,std::string> &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();