mirror of https://github.com/YosysHQ/yosys.git
don't consider blackbox modules in "sat" command
This commit is contained in:
parent
9041f34233
commit
faa95dd845
|
@ -1293,13 +1293,11 @@ struct SatPass : public Pass {
|
||||||
extra_args(args, argidx, design);
|
extra_args(args, argidx, design);
|
||||||
|
|
||||||
RTLIL::Module *module = NULL;
|
RTLIL::Module *module = NULL;
|
||||||
for (auto &mod_it : design->modules_)
|
for (auto mod : design->selected_modules()) {
|
||||||
if (design->selected(mod_it.second)) {
|
if (module)
|
||||||
if (module)
|
log_cmd_error("Only one module must be selected for the SAT pass! (selected: %s and %s)\n", log_id(module), log_id(mod));
|
||||||
log_cmd_error("Only one module must be selected for the SAT pass! (selected: %s and %s)\n",
|
module = mod;
|
||||||
RTLIL::id2cstr(module->name), RTLIL::id2cstr(mod_it.first));
|
}
|
||||||
module = mod_it.second;
|
|
||||||
}
|
|
||||||
if (module == NULL)
|
if (module == NULL)
|
||||||
log_cmd_error("Can't perform SAT on an empty selection!\n");
|
log_cmd_error("Can't perform SAT on an empty selection!\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue