Respect -nocarry
authorEddie Hung <eddie@fpgeh.com>
Tue, 4 Jun 2019 06:42:30 +0000 (23:42 -0700)
committerEddie Hung <eddie@fpgeh.com>
Tue, 4 Jun 2019 06:42:30 +0000 (23:42 -0700)
techlibs/xilinx/synth_xilinx.cc

index 19a19d14e4ab730f65af59830a2f68d2fb8054ca..8ce552780f77ada03e0eae234469afe4f2bab76a 100644 (file)
@@ -270,9 +270,11 @@ struct SynthXilinxPass : public ScriptPass
                        if (vpr && !nocarry && !help_mode)
                                run("techmap -map +/techmap.v -map +/xilinx/arith_map.v -D _EXPLICIT_CARRY");
                        else if (abc == "abc9" && !nocarry && !help_mode)
-                               run("techmap -map +/techmap.v -map +/xilinx/arith_map.v -D _CLB_CARRY", "(skip if '-nocarry')");
+                               run("techmap -map +/techmap.v -map +/xilinx/arith_map.v -D _CLB_CARRY");
                        else if (!nocarry || help_mode)
                                run("techmap -map +/techmap.v -map +/xilinx/arith_map.v", "(skip if '-nocarry')");
+                       else
+                               run("techmap -map +/techmap.v");
 
                        run("opt -fast");
                }