3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-09 00:40:16 +00:00

fabulous: fix argument check in -carry option

Signed-off-by: Leo Moser <leomoser99@gmail.com>
This commit is contained in:
Leo Moser 2026-06-24 14:24:18 +02:00
parent 54c37b395b
commit 30640c71e2

View file

@ -218,7 +218,7 @@ struct SynthPass : public ScriptPass
complexdff = true;
continue;
}
if (args[argidx] == "-carry") {
if (args[argidx] == "-carry" && argidx+1 < args.size()) {
carry_mode = args[++argidx];
if (carry_mode != "none" && carry_mode != "ha")
log_cmd_error("Unsupported carry style: %s\n", carry_mode);