mirror of https://github.com/YosysHQ/yosys.git
fabulous: fix argument check in `-carry` option
Signed-off-by: Leo Moser <leomoser99@gmail.com>
This commit is contained in:
parent
54c37b395b
commit
30640c71e2
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue