3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-13 04:28:18 +00:00

Use ID macro to fix assertion

This commit is contained in:
Miodrag Milanovic 2020-06-29 13:18:13 +02:00
parent b822beb1b2
commit 5aae936044

View file

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