Merge pull request #1558 from YosysHQ/eddie/xaiger_cleanup
authorEddie Hung <eddie@fpgeh.com>
Thu, 19 Dec 2019 17:24:03 +0000 (12:24 -0500)
committerGitHub <noreply@github.com>
Thu, 19 Dec 2019 17:24:03 +0000 (12:24 -0500)
Optimise write_xaiger

1  2 
techlibs/ecp5/synth_ecp5.cc
techlibs/ice40/synth_ice40.cc
techlibs/xilinx/synth_xilinx.cc

index b71bb2395c82ffab565963f9ed6790fc1e352ae0,b099c25d36cf45ddbc35e6a24f5f4fcb524923ae..16ff9c57aeb2ee1aec2d24b9a6bf5beb3e3635ab
@@@ -314,13 -306,17 +314,18 @@@ struct SynthEcp5Pass : public ScriptPas
                        if (abc2 || help_mode) {
                                run("abc", "      (only if -abc2)");
                        }
 -                      std::string techmap_args = "-map +/ecp5/latches_map.v";
 +                      std::string techmap_args = asyncprld ? "" : "-map +/ecp5/latches_map.v";
                        if (abc9)
                                techmap_args += " -map +/ecp5/abc9_map.v -max_iter 1";
 -                      run("techmap " + techmap_args);
 +                      if (!asyncprld || abc9)
 +                              run("techmap " + techmap_args);
  
                        if (abc9) {
+                               run("select -set abc9_boxes A:abc9_box_id A:whitebox=1");
+                               run("wbflip @abc9_boxes");
+                               run("techmap -autoproc @abc9_boxes");
+                               run("aigmap @abc9_boxes");
+                               run("wbflip @abc9_boxes");
                                run("read_verilog -icells -lib +/ecp5/abc9_model.v");
                                if (nowidelut)
                                        run("abc9 -lut +/ecp5/abc9_5g_nowide.lut -box +/ecp5/abc9_5g.box -W 200 -nomfs");
Simple merge
Simple merge