synth: only techmap cmp2{lut,lcu} if -lut

This commit is contained in:
Eddie Hung 2020-02-06 08:46:11 -08:00
parent 5b87720b16
commit 34c9b83854
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ struct SynthPass : public ScriptPass
run("opt_clean");
if (help_mode)
run("techmap -map +/cmp2lut.v -map +/cmp2lcu.v", " (if -lut)");
else
else if (lut)
run(stringf("techmap -map +/cmp2lut.v -map +/cmp2lcu.v -D LUT_WIDTH=%d", lut));
if (!noalumacc)
run("alumacc", " (unless -noalumacc)");