ice40: fix whitespace

This commit is contained in:
Eddie Hung 2020-05-12 15:40:13 -07:00
parent 95fb3cf487
commit 4ecae8a673
1 changed files with 14 additions and 15 deletions

View File

@ -225,10 +225,10 @@ struct SynthIce40Pass : public ScriptPass
device_opt = args[++argidx]; device_opt = args[++argidx];
continue; continue;
} }
if (args[argidx] == "-flowmap") { if (args[argidx] == "-flowmap") {
flowmap = true; flowmap = true;
continue; continue;
} }
break; break;
} }
extra_args(args, argidx, design); extra_args(args, argidx, design);
@ -240,13 +240,12 @@ struct SynthIce40Pass : public ScriptPass
if (abc9 && retime) if (abc9 && retime)
log_cmd_error("-retime option not currently compatible with -abc9!\n"); log_cmd_error("-retime option not currently compatible with -abc9!\n");
if (abc9 && noabc)
if (abc9 && noabc) log_cmd_error("-abc9 is incompatible with -noabc!\n");
log_cmd_error("-abc9 is incompatible with -noabc!\n"); if (abc9 && flowmap)
if (abc9 && flowmap) log_cmd_error("-abc9 is incompatible with -flowmap!\n");
log_cmd_error("-abc9 is incompatible with -flowmap!\n"); if (flowmap && noabc)
if (flowmap && noabc) log_cmd_error("-flowmap is incompatible with -noabc!\n");
log_cmd_error("-flowmap is incompatible with -noabc!\n");
log_header(design, "Executing SYNTH_ICE40 pass.\n"); log_header(design, "Executing SYNTH_ICE40 pass.\n");
log_push(); log_push();
@ -372,10 +371,10 @@ struct SynthIce40Pass : public ScriptPass
run("techmap -map +/ice40/latches_map.v"); run("techmap -map +/ice40/latches_map.v");
if (noabc || flowmap || help_mode) { if (noabc || flowmap || help_mode) {
run("simplemap", " (if -noabc or -flowmap)"); run("simplemap", " (if -noabc or -flowmap)");
if (noabc || help_mode) if (noabc || help_mode)
run("techmap -map +/gate2lut.v -D LUT_WIDTH=4", "(only if -noabc)"); run("techmap -map +/gate2lut.v -D LUT_WIDTH=4", "(only if -noabc)");
if (flowmap || help_mode) if (flowmap || help_mode)
run("flowmap -maxlut 4", "(only if -flowmap)"); run("flowmap -maxlut 4", "(only if -flowmap)");
} }
if (!noabc) { if (!noabc) {
if (abc9) { if (abc9) {