Move 'clean' from map_luts to finalize
authorEddie Hung <eddie@fpgeh.com>
Tue, 26 Nov 2019 22:51:39 +0000 (14:51 -0800)
committerEddie Hung <eddie@fpgeh.com>
Tue, 26 Nov 2019 22:51:39 +0000 (14:51 -0800)
techlibs/xilinx/synth_xilinx.cc

index 7105ba429daeda1fb2a8edf21e9af72e0336c13c..6e8ced0dfde44c78b381e2282f893bd5308b72c8 100644 (file)
@@ -560,7 +560,6 @@ struct SynthXilinxPass : public ScriptPass
                        else
                                techmap_args += " -map " + ff_map_file;
                        run("techmap " + techmap_args);
-                       run("clean");
                }
 
                if (check_label("finalize")) {
@@ -575,6 +574,7 @@ struct SynthXilinxPass : public ScriptPass
                                run("iopadmap -bits -outpad OBUF I:O -inpad IBUF O:I A:top", "(only if '-iopad' or '-ise' and not '-noiopad')");
                        if (help_mode || ise)
                                run("extractinv -inv INV O:I", "(only if '-ise')");
+                       run("clean");
                }
 
                if (check_label("check")) {