mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
abc9_ops: cope with (* abc9_flop *) in place of (* abc9_box_id *)
This commit is contained in:
parent
48984a7605
commit
485e08e436
2 changed files with 3 additions and 3 deletions
|
@ -117,7 +117,7 @@ void check(RTLIL::Design *design)
|
|||
if (wire->port_output) num_outputs++;
|
||||
}
|
||||
if (num_outputs != 1)
|
||||
log_error("Module '%s' with (* abc_flop *) has %d outputs (expect 1).\n", log_id(m), num_outputs);
|
||||
log_error("Module '%s' with (* abc9_flop *) has %d outputs (expect 1).\n", log_id(m), num_outputs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -333,7 +333,7 @@ void prep_xaiger(RTLIL::Module *module, bool dff)
|
|||
log_assert(cell);
|
||||
|
||||
RTLIL::Module* box_module = design->module(cell->type);
|
||||
if (!box_module || !box_module->attributes.count("\\abc9_box_id"))
|
||||
if (!box_module || (!box_module->attributes.count("\\abc9_box_id") && !box_module->get_bool_attribute("\\abc9_flop")))
|
||||
continue;
|
||||
|
||||
cell->attributes["\\abc9_box_seq"] = box_count++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue