abc9_ops: -prep_xaiger to skip (* keep *) cells

This commit is contained in:
Eddie Hung 2020-01-23 18:56:06 -08:00
parent 48aec34e0d
commit f180dba753
1 changed files with 2 additions and 0 deletions

View File

@ -165,6 +165,8 @@ void prep_xaiger(RTLIL::Module *module, bool dff)
for (auto cell : module->cells()) {
if (cell->type == "$__ABC9_FF_")
continue;
if (cell->has_keep_attr())
continue;
auto inst_module = module->design->module(cell->type);
bool abc9_box = inst_module && inst_module->attributes.count("\\abc9_box_id");