aboutsummaryrefslogtreecommitdiffstats
path: root/passes/tests/test_cell.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2020-06-29 13:18:13 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2020-06-29 13:18:13 +0200
commit5aae9360444448dd444b414db46a327c980c2d7a (patch)
treeb1a3c129121a4b0be99ffcfead8c9592a912a53c /passes/tests/test_cell.cc
parentb822beb1b2e667459f4864b759b7f4d82a064354 (diff)
downloadyosys-5aae9360444448dd444b414db46a327c980c2d7a.tar.gz
yosys-5aae9360444448dd444b414db46a327c980c2d7a.tar.bz2
yosys-5aae9360444448dd444b414db46a327c980c2d7a.zip
Use ID macro to fix assertion
Diffstat (limited to 'passes/tests/test_cell.cc')
-rw-r--r--passes/tests/test_cell.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/tests/test_cell.cc b/passes/tests/test_cell.cc
index 942468e29..72fb630f8 100644
--- a/passes/tests/test_cell.cc
+++ b/passes/tests/test_cell.cc
@@ -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);