diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-08-20 18:59:03 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-08-20 18:59:03 -0700 |
commit | 55acf3120fa47bb95be8a6551738f4f9b1c70a21 (patch) | |
tree | 4f0fff0e6e2a85e53b33ef0c79e85b10cb3dd6a9 /techlibs/ecp5/synth_ecp5.cc | |
parent | 4cd1d21bfe412e9c6edb8aa74c19ee57370c56c4 (diff) | |
download | yosys-55acf3120fa47bb95be8a6551738f4f9b1c70a21.tar.gz yosys-55acf3120fa47bb95be8a6551738f4f9b1c70a21.tar.bz2 yosys-55acf3120fa47bb95be8a6551738f4f9b1c70a21.zip |
ecp5 to use abc_map.v and _unmap.v
Diffstat (limited to 'techlibs/ecp5/synth_ecp5.cc')
-rw-r--r-- | techlibs/ecp5/synth_ecp5.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/techlibs/ecp5/synth_ecp5.cc b/techlibs/ecp5/synth_ecp5.cc index 143d1f95c..93e1cd5b5 100644 --- a/techlibs/ecp5/synth_ecp5.cc +++ b/techlibs/ecp5/synth_ecp5.cc @@ -278,12 +278,18 @@ struct SynthEcp5Pass : public ScriptPass if (abc2 || help_mode) { run("abc", " (only if -abc2)"); } - run("techmap -map +/ecp5/latches_map.v"); + std::string techmap_args = "-map +/ecp5/latches_map.v"; + if (abc9) + techmap_args += " -map +/ecp5/abc_map.v"; + run("techmap " + techmap_args); + if (abc9) { + run("read_verilog -icells -lib +/ecp5/abc_model.v"); if (nowidelut) run("abc9 -lut +/ecp5/abc_5g_nowide.lut -box +/ecp5/abc_5g.box -W 200"); else run("abc9 -lut +/ecp5/abc_5g.lut -box +/ecp5/abc_5g.box -W 200"); + run("techmap -map +/ecp5/abc_unmap.v"); } else { if (nowidelut) run("abc -lut 4 -dress"); |