Skip to content

Commit

Permalink
abc9_ops: Allow no arcs on box w/o inputs or w/o outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Dec 5, 2024
1 parent 481d596 commit f3f8037
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion passes/techmap/abc9_ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f3f8037

Please sign in to comment.