diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-05-04 11:44:00 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2020-05-04 11:44:00 -0700 |
commit | e6b55e8b38d98e28ee53f7b470cef1bcc3b399f3 (patch) | |
tree | e0a5854f4af16f8fa091c7f0fcd7695756fdea61 /techlibs/xilinx | |
parent | 584780d776c92bc91731dbc2710dd8d9a624dc70 (diff) | |
download | yosys-e6b55e8b38d98e28ee53f7b470cef1bcc3b399f3.tar.gz yosys-e6b55e8b38d98e28ee53f7b470cef1bcc3b399f3.tar.bz2 yosys-e6b55e8b38d98e28ee53f7b470cef1bcc3b399f3.zip |
synth_ice40/ecp5/xilinx: allow abc9.W to be overridden via scratchpad
Diffstat (limited to 'techlibs/xilinx')
-rw-r--r-- | techlibs/xilinx/synth_xilinx.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/techlibs/xilinx/synth_xilinx.cc b/techlibs/xilinx/synth_xilinx.cc index 1c190d37e..229ffcb3d 100644 --- a/techlibs/xilinx/synth_xilinx.cc +++ b/techlibs/xilinx/synth_xilinx.cc @@ -619,11 +619,13 @@ struct SynthXilinxPass : public ScriptPass run("techmap " + techmap_args); run("read_verilog -icells -lib -specify +/abc9_model.v +/xilinx/abc9_model.v"); std::string abc9_opts; - auto k = stringf("synth_xilinx.abc9.%s.W", family.c_str()); - if (active_design->scratchpad.count(k)) + std::string k = "synth_xilinx.abc9.W"; + if (active_design && active_design->scratchpad.count(k)) abc9_opts += stringf(" -W %s", active_design->scratchpad_get_string(k).c_str()); - else + else { + k = stringf("synth_xilinx.abc9.%s.W", family.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 += stringf(" -maxlut %d", lut_size); if (dff_mode) |