Return to upstream synth_xilinx with opt -full and wreduce
authorEddie Hung <eddie@fpgeh.com>
Wed, 26 Jun 2019 23:25:48 +0000 (16:25 -0700)
committerEddie Hung <eddie@fpgeh.com>
Wed, 26 Jun 2019 23:25:48 +0000 (16:25 -0700)
techlibs/xilinx/synth_xilinx.cc

index 278098a58d63b2dbf8e8ca03c0dfda77d90bf71d..c139fb3c4e9f783d70de947b6d8c69e8b940eed0 100644 (file)
@@ -241,26 +241,10 @@ struct SynthXilinxPass : public ScriptPass
                }
 
                if (check_label("coarse")) {
-                       run("proc");
-                       if (flatten || help_mode)
-                               run("flatten", "(with -flatten only)");
-                       run("opt_expr");
-                       run("opt_clean");
-                       run("check");
-                       run("opt");
                        if (help_mode)
-                               run("wreduce [-keepdc]", "('-widemux' only)");
+                               run("synth -run coarse [-flatten]", "(with '-flatten')");
                        else
-                               run("wreduce" + std::string(widemux > 0 ? " -keepdc" : ""));
-                       run("peepopt");
-                       run("opt_clean");
-                       run("alumacc");
-                       run("share");
-                       run("opt");
-                       run("fsm");
-                       run("opt -fast");
-                       run("memory -nomap");
-                       run("opt_clean");
+                               run("synth -run coarse" + std::string(flatten ? "" : " -flatten"), "(with '-flatten')");
 
                        if (widemux > 0 || help_mode)
                                run("muxpack", "    ('-widemux' only)");
@@ -288,7 +272,7 @@ struct SynthXilinxPass : public ScriptPass
                }
 
                if (check_label("fine")) {
-                       run("opt -fast");
+                       run("opt -fast -full");
                        run("memory_map");
                        run("dffsr2dff");
                        run("dff2dffe");