3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-04-23 12:23:32 +00:00

Merge pull request #5764 from YosysHQ/emil/constmap-error

constmap: error if no -cell set
This commit is contained in:
Emil J 2026-03-23 15:15:04 +00:00 committed by GitHub
commit b44188110b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);