Call opt_expr -mux_undef to get rid of 1'bx in muxes prior to abc
authorEddie Hung <eddie@fpgeh.com>
Thu, 20 Jun 2019 23:45:09 +0000 (16:45 -0700)
committerEddie Hung <eddie@fpgeh.com>
Fri, 21 Jun 2019 00:38:16 +0000 (17:38 -0700)
techlibs/xilinx/synth_xilinx.cc

index 45bc47f2461e4b0552c3cdee5b71fa53cfbea34d..86b49b13cd9750ad03d3b4a4cb26cd0f8cd2892f 100644 (file)
@@ -281,6 +281,7 @@ struct SynthXilinxPass : public ScriptPass
                }
 
                if (check_label("map_luts")) {
+                       run("opt_expr -mux_undef");
                        if (abc == "abc9")
                                run(abc + " -lut +/xilinx/abc_xc7.lut -box +/xilinx/abc_xc7.box -W " + XC7_WIRE_DELAY + string(retime ? " -dff" : ""));
                        else if (help_mode)