mirror of https://github.com/YosysHQ/yosys.git
constmap: error if no -cell set
This commit is contained in:
parent
a141bd941c
commit
7aaa0621d3
|
|
@ -71,6 +71,8 @@ struct ConstmapPass : public Pass {
|
|||
}
|
||||
extra_args(args, argidx, design);
|
||||
|
||||
if (celltype.empty())
|
||||
log_cmd_error("Missing required option -cell.\n");
|
||||
|
||||
if (design->has(celltype)) {
|
||||
Module *existing = design->module(celltype);
|
||||
|
|
|
|||
Loading…
Reference in New Issue