synth_xilinx: fix default W value for non-xc7
authorEddie Hung <eddie@fpgeh.com>
Tue, 14 Jan 2020 19:34:40 +0000 (11:34 -0800)
committerEddie Hung <eddie@fpgeh.com>
Tue, 14 Jan 2020 19:34:40 +0000 (11:34 -0800)
techlibs/xilinx/synth_xilinx.cc

index d916093dce152cecc519e34e4f9b9cee2105c7f7..b86484e711211dbf8f478eb836f975413216f75e 100644 (file)
@@ -562,7 +562,7 @@ struct SynthXilinxPass : public ScriptPass
                                if (active_design->scratchpad.count(k))
                                        abc9_opts += stringf(" -W %s", active_design->scratchpad_get_string(k).c_str());
                                else
-                                       abc9_opts += stringf(" -W %s", RTLIL::constpad.at(k).c_str());
+                                       abc9_opts += stringf(" -W %s", RTLIL::constpad.at(k, RTLIL::constpad.at("synth_xilinx.abc9.xc7.W")).c_str());
                                if (nowidelut)
                                        abc9_opts += " -lut +/xilinx/abc9_xc7_nowide.lut";
                                else