Restore missing techmap -map +/cmp2lut.v with LUT_WIDTH=6
authorEddie Hung <eddie@fpgeh.com>
Tue, 9 Jul 2019 21:28:54 +0000 (14:28 -0700)
committerEddie Hung <eddie@fpgeh.com>
Tue, 9 Jul 2019 21:28:54 +0000 (14:28 -0700)
techlibs/xilinx/synth_xilinx.cc

index 0152af4812a58d2f745eaed656b7353400a91830..7e10a392a7af5ec9fcfad1b967cd243594f8a632 100644 (file)
@@ -2,6 +2,7 @@
  *  yosys -- Yosys Open SYnthesis Suite
  *
  *  Copyright (C) 2012  Clifford Wolf <clifford@clifford.at>
+ *            (C) 2019  Eddie Hung    <eddie@fpgeh.com>
  *
  *  Permission to use, copy, modify, and/or distribute this software for any
  *  purpose with or without fee is hereby granted, provided that the above
@@ -252,6 +253,7 @@ struct SynthXilinxPass : public ScriptPass
                                run("wreduce" + std::string(widemux > 0 ? " -keepdc" : ""));
                        run("peepopt");
                        run("opt_clean");
+                       run("techmap -map +/cmp2lut.v -D LUT_WIDTH=6");
                        run("alumacc");
                        run("share");
                        run("opt");