synth_xilinx with abc9 to use -box
authorEddie Hung <eddie@fpgeh.com>
Tue, 9 Apr 2019 18:01:46 +0000 (11:01 -0700)
committerEddie Hung <eddie@fpgeh.com>
Tue, 9 Apr 2019 18:01:46 +0000 (11:01 -0700)
techlibs/xilinx/synth_xilinx.cc

index 090bcce857c45f5a1bc791de91e1c47146d26b96..eb37feb83f072cc268d14ef0dcbf4fe5c4f6152b 100644 (file)
@@ -275,7 +275,10 @@ struct SynthXilinxPass : public Pass
 
                if (check_label(active, run_from, run_to, "map_luts"))
                {
-                       Pass::call(design, abc + " -luts 2:2,3,6:5,10,20" + string(retime ? " -dff" : ""));
+                       if (abc == "abc9")
+                               Pass::call(design, abc + " -luts 2:2,3,6:5,10,20 -box +/xilinx/cells.box" + string(retime ? " -dff" : ""));
+                       else
+                               Pass::call(design, abc + " -luts 2:2,3,6:5,10,20" + string(retime ? " -dff" : ""));
                        Pass::call(design, "clean");
                        Pass::call(design, "techmap -map +/xilinx/lut_map.v");
                }