mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-30 21:19:30 +00:00
Instead of using builtin_ff_cell_types() directly, go through a method Cell::is_builtin_ff()
This commit is contained in:
parent
b95549b469
commit
d24488d3a5
32 changed files with 61 additions and 51 deletions
|
@ -89,7 +89,7 @@ struct OptDffWorker
|
|||
}
|
||||
}
|
||||
|
||||
if (module->design->selected(module, cell) && RTLIL::builtin_ff_cell_types().count(cell->type))
|
||||
if (module->design->selected(module, cell) && cell->is_builtin_ff())
|
||||
dff_cells.push_back(cell);
|
||||
}
|
||||
|
||||
|
@ -802,7 +802,7 @@ struct OptDffWorker
|
|||
|
||||
bool did_something = false;
|
||||
for (auto cell : module->selected_cells()) {
|
||||
if (!RTLIL::builtin_ff_cell_types().count(cell->type))
|
||||
if (!cell->is_builtin_ff())
|
||||
continue;
|
||||
FfData ff(&initvals, cell);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue