mirror of https://github.com/YosysHQ/yosys.git
Use Pass::call_on_module() as per @cliffordwolf comments
This commit is contained in:
parent
90382a0f6d
commit
f1504696e5
|
@ -1299,7 +1299,7 @@ struct ScriptCmdPass : public Pass {
|
|||
if (!c.second.is_fully_const())
|
||||
log_error("RHS of selected wire %s.%s is not constant.\n", log_id(mod), log_id(w));
|
||||
auto v = c.second.as_const();
|
||||
Pass::call(design, v.decode_string());
|
||||
Pass::call_on_module(design, mod, v.decode_string());
|
||||
}
|
||||
}
|
||||
else if (args.size() < 2)
|
||||
|
|
Loading…
Reference in New Issue