synth_xilinx: techmap +/cmp2lut.v and +/cmp2lcu.v in 'coarse'
authorEddie Hung <eddie@fpgeh.com>
Tue, 21 Jan 2020 01:05:49 +0000 (17:05 -0800)
committerEddie Hung <eddie@fpgeh.com>
Fri, 3 Apr 2020 21:28:22 +0000 (14:28 -0700)
techlibs/xilinx/synth_xilinx.cc

index 8553efd6bd044c38fc0f9c0717af6b716227d1fa..ac4f5bcf47a8b8dc0686f64f1009eeef820ba8d4 100644 (file)
@@ -393,8 +393,6 @@ struct SynthXilinxPass : public ScriptPass
                                run("pmux2shiftx", "(skip if '-nosrl' and '-widemux=0')");
                                run("clean", "      (skip if '-nosrl' and '-widemux=0')");
                        }
-
-                       run("techmap -map +/cmp2lut.v -D LUT_WIDTH=" + lut_size_s);
                }
 
                if (check_label("map_dsp", "(skip if '-nodsp')")) {
@@ -460,6 +458,7 @@ struct SynthXilinxPass : public ScriptPass
                }
 
                if (check_label("coarse")) {
+                       run("techmap -map +/cmp2lut.v -map +/cmp2lcu.v -D LUT_WIDTH=" + lut_size_s);
                        run("alumacc");
                        run("share");
                        run("opt");