From: Eddie Hung Date: Thu, 6 Feb 2020 16:46:11 +0000 (-0800) Subject: synth: only techmap cmp2{lut,lcu} if -lut X-Git-Tag: working-ls180~695^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34c9b83854a09bb90e8b880774b58d91d7ed8ae7;p=yosys.git synth: only techmap cmp2{lut,lcu} if -lut --- diff --git a/techlibs/common/synth.cc b/techlibs/common/synth.cc index 513702357..d6dffdd7f 100644 --- a/techlibs/common/synth.cc +++ b/techlibs/common/synth.cc @@ -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)");