abc9_ops: Allow no arcs on box w/o inputs or w/o outputs

This commit is contained in:
Martin Povišer 2024-12-05 16:19:55 +01:00
parent 481d596c43
commit f3f8037328
1 changed files with 2 additions and 1 deletions

View File

@ -1093,8 +1093,9 @@ void prep_box(RTLIL::Design *design)
ss << std::endl;
auto &t = timing.setup_module(module);
if (t.comb.empty())
if (t.comb.empty() && !outputs.empty() && !inputs.empty()) {
log_error("Module '%s' with (* abc9_box *) has no timing (and thus no connectivity) information.\n", log_id(module));
}
for (const auto &o : outputs) {
first = true;