synth: only techmap cmp2{lut,lcu} if -lut
authorEddie Hung <eddie@fpgeh.com>
Thu, 6 Feb 2020 16:46:11 +0000 (08:46 -0800)
committerEddie Hung <eddie@fpgeh.com>
Fri, 3 Apr 2020 21:28:22 +0000 (14:28 -0700)
techlibs/common/synth.cc

index 513702357bc164414a513c1e2c7e36dd1dc1a338..d6dffdd7f5c50c7d581349c26db434d0616b676b 100644 (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)");