mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #2201 from YosysHQ/fix_test_cell_ilang
Use ID macro to fix assertion
This commit is contained in:
commit
275cee71f6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue