mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-06 17:44:09 +00:00
abc9_ops: Allow no arcs on box w/o inputs or w/o outputs
This commit is contained in:
parent
481d596c43
commit
f3f8037328
|
@ -1093,8 +1093,9 @@ void prep_box(RTLIL::Design *design)
|
||||||
ss << std::endl;
|
ss << std::endl;
|
||||||
|
|
||||||
auto &t = timing.setup_module(module);
|
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));
|
log_error("Module '%s' with (* abc9_box *) has no timing (and thus no connectivity) information.\n", log_id(module));
|
||||||
|
}
|
||||||
|
|
||||||
for (const auto &o : outputs) {
|
for (const auto &o : outputs) {
|
||||||
first = true;
|
first = true;
|
||||||
|
|
Loading…
Reference in a new issue