toposort.node(cell->name);
- if (inst_module->attributes.count("\\abc9_flop"))
+ if (inst_module->get_bool_attribute("\\abc9_flop"))
flop_boxes.push_back(cell);
continue;
}
}
RTLIL::Module* box_module = design->module(mapped_cell->type);
- auto abc9_flop = box_module && box_module->attributes.count("\\abc9_flop");
+ auto abc9_flop = box_module && box_module->get_bool_attribute("\\abc9_flop");
for (auto &conn : mapped_cell->connections()) {
RTLIL::SigSpec newsig;
for (auto c : conn.second.chunks()) {
for (auto cell : all_cells) {
auto inst_module = design->module(cell->type);
- if (!inst_module || !inst_module->attributes.count("\\abc9_flop")
+ if (!inst_module || !inst_module->get_bool_attribute("\\abc9_flop")
|| cell->get_bool_attribute("\\abc9_keep"))
continue;