Use ID macro to fix assertion
authorMiodrag Milanovic <mmicko@gmail.com>
Mon, 29 Jun 2020 11:18:13 +0000 (13:18 +0200)
committerMiodrag Milanovic <mmicko@gmail.com>
Mon, 29 Jun 2020 11:18:13 +0000 (13:18 +0200)
passes/tests/test_cell.cc

index 942468e295aa68163b51ada323e2501f578ff5af..72fb630f8bb1d1ff651df3640fb4d9ca97c96c98 100644 (file)
@@ -905,7 +905,7 @@ struct TestCellPass : public Pass {
                if (!ilang_file.empty()) {
                        if (!selected_cell_types.empty())
                                log_cmd_error("Do not specify any cell types when using -f.\n");
-                       selected_cell_types.push_back("ilang");
+                       selected_cell_types.push_back(ID(ilang));
                }
 
                if (selected_cell_types.empty())
@@ -917,7 +917,7 @@ struct TestCellPass : public Pass {
                        for (int i = 0; i < num_iter; i++)
                        {
                                RTLIL::Design *design = new RTLIL::Design;
-                               if (cell_type == "ilang")
+                               if (cell_type == ID(ilang))
                                        Frontend::frontend_call(design, NULL, std::string(), "ilang " + ilang_file);
                                else
                                        create_gold_module(design, cell_type, cell_types.at(cell_type), constmode, muxdiv);