abc9_ops -prep_times: update comment

This commit is contained in:
Eddie Hung 2020-01-10 12:38:49 -08:00
parent b2259a9201
commit e0af812180
1 changed files with 4 additions and 3 deletions

View File

@ -485,9 +485,9 @@ void prep_times(RTLIL::Design *design)
continue; continue;
if (!inst_module->get_blackbox_attribute()) if (!inst_module->get_blackbox_attribute())
continue; continue;
// Flop inputs cannot have required times // Only flop boxes are not combinatorial and may have required times,
// (required time should be captured by flop box) // however those times are captured by this flop box, no need to
// TODO: enforce this // add delay boxes
if (cell->attributes.count(ID(abc9_box_id))) if (cell->attributes.count(ID(abc9_box_id)))
continue; continue;
boxes.emplace_back(cell); boxes.emplace_back(cell);
@ -566,6 +566,7 @@ void write_box(RTLIL::Module *module, const std::string &src, const std::string
ofs << "$__ABC9_DELAY@" << d << " " << ABC9_DELAY_BASE_ID + d << " 0 1 1" << std::endl; ofs << "$__ABC9_DELAY@" << d << " " << ABC9_DELAY_BASE_ID + d << " 0 1 1" << std::endl;
ofs << d << std::endl; ofs << d << std::endl;
} }
module->attributes.erase(it);
} }
ofs.close(); ofs.close();