Revert "Move ff_map back after ABC for shregmap"
authorEddie Hung <eddie@fpgeh.com>
Wed, 5 Jun 2019 18:53:06 +0000 (11:53 -0700)
committerEddie Hung <eddie@fpgeh.com>
Wed, 5 Jun 2019 18:53:06 +0000 (11:53 -0700)
This reverts commit 9b9bd4e19f3da363eb3c90ef27ace282716d2e06.

techlibs/xilinx/synth_xilinx.cc

index b2559d272d0d57834c60898e70919645a74484bb..e825a032cc39859a3b87d28576daa42e00bb4b0d 100644 (file)
@@ -286,7 +286,9 @@ struct SynthXilinxPass : public ScriptPass
                }
 
                if (check_label("map_cells")) {
-                       run("techmap -map +/techmap.v -map +/xilinx/cells_map.v");
+                       run("techmap -map +/techmap.v -map +/xilinx/cells_map.v -map +/xilinx/ff_map.v ");
+                       run("dffinit -ff FDRE Q INIT -ff FDCE Q INIT -ff FDPE Q INIT -ff FDSE Q INIT "
+                                       "-ff FDRE_1 Q INIT -ff FDCE_1 Q INIT -ff FDPE_1 Q INIT -ff FDSE_1 Q INIT");
                        run("clean");
                }
 
@@ -303,9 +305,7 @@ struct SynthXilinxPass : public ScriptPass
                        //   has performed any necessary retiming
                        if (!nosrl || help_mode)
                                run("shregmap -minlen 3 -init -params -enpol any_or_none", "(skip if '-nosrl')");
-                       run("techmap -map +/xilinx/lut_map.v -map +/xilinx/cells_map.v -map +/xilinx/ff_map.v");
-                       run("dffinit -ff FDRE Q INIT -ff FDCE Q INIT -ff FDPE Q INIT -ff FDSE Q INIT "
-                                       "-ff FDRE_1 Q INIT -ff FDCE_1 Q INIT -ff FDPE_1 Q INIT -ff FDSE_1 Q INIT");
+                       run("techmap -map +/xilinx/lut_map.v -map +/xilinx/cells_map.v");
                        run("clean");
                }