diff options
author | clairexen <claire@symbioticeda.com> | 2020-06-30 17:11:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 17:11:13 +0200 |
commit | 275cee71f6cc3b824bc2bdf2d13ad9f58768721b (patch) | |
tree | 3df701c0d47ee95860411abec21d619e579c3b10 /passes | |
parent | 79d81b7f4f7dc50524eeac38bbcfdbff5394ccd9 (diff) | |
parent | 5aae9360444448dd444b414db46a327c980c2d7a (diff) | |
download | yosys-275cee71f6cc3b824bc2bdf2d13ad9f58768721b.tar.gz yosys-275cee71f6cc3b824bc2bdf2d13ad9f58768721b.tar.bz2 yosys-275cee71f6cc3b824bc2bdf2d13ad9f58768721b.zip |
Merge pull request #2201 from YosysHQ/fix_test_cell_ilang
Use ID macro to fix assertion
Diffstat (limited to 'passes')
-rw-r--r-- | passes/tests/test_cell.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/tests/test_cell.cc b/passes/tests/test_cell.cc index 125efbaa3..bdb475d3b 100644 --- a/passes/tests/test_cell.cc +++ b/passes/tests/test_cell.cc @@ -909,7 +909,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()) @@ -921,7 +921,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); |