aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclairexen <claire@symbioticeda.com>2020-06-30 17:11:13 +0200
committerGitHub <noreply@github.com>2020-06-30 17:11:13 +0200
commit275cee71f6cc3b824bc2bdf2d13ad9f58768721b (patch)
tree3df701c0d47ee95860411abec21d619e579c3b10
parent79d81b7f4f7dc50524eeac38bbcfdbff5394ccd9 (diff)
parent5aae9360444448dd444b414db46a327c980c2d7a (diff)
downloadyosys-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
-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 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);