diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-06-26 10:23:29 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-06-26 10:23:29 -0700 |
commit | 988e6163abae4ed0a01952c221d17f70bed9c244 (patch) | |
tree | 02059005ba9d63fcdf95299b099123c7403f5360 /techlibs/ecp5 | |
parent | 741ebba70a4036e71adcdad223ce111c4a025365 (diff) | |
download | yosys-988e6163abae4ed0a01952c221d17f70bed9c244.tar.gz yosys-988e6163abae4ed0a01952c221d17f70bed9c244.tar.bz2 yosys-988e6163abae4ed0a01952c221d17f70bed9c244.zip |
Add _nowide variants of LUT libraries in -nowidelut flows
Diffstat (limited to 'techlibs/ecp5')
-rw-r--r-- | techlibs/ecp5/abc_5g_nowide.lut | 12 | ||||
-rw-r--r-- | techlibs/ecp5/synth_ecp5.cc | 5 |
2 files changed, 16 insertions, 1 deletions
diff --git a/techlibs/ecp5/abc_5g_nowide.lut b/techlibs/ecp5/abc_5g_nowide.lut new file mode 100644 index 000000000..60352d892 --- /dev/null +++ b/techlibs/ecp5/abc_5g_nowide.lut @@ -0,0 +1,12 @@ +# ECP5-5G LUT library for ABC +# Note that ECP5 architecture assigns difference +# in LUT input delay to interconnect, so this is +# considered too + + +# Simple LUTs +# area D C B A +1 1 141 +2 1 141 275 +3 1 141 275 379 +4 1 141 275 379 379 diff --git a/techlibs/ecp5/synth_ecp5.cc b/techlibs/ecp5/synth_ecp5.cc index c80ad0b08..f16a47f01 100644 --- a/techlibs/ecp5/synth_ecp5.cc +++ b/techlibs/ecp5/synth_ecp5.cc @@ -273,7 +273,10 @@ struct SynthEcp5Pass : public ScriptPass } run("techmap -map +/ecp5/latches_map.v"); if (abc9) { - run("abc9 -lut +/ecp5/abc_5g.lut -box +/ecp5/abc_5g.box -W 200"); + 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"); } else { if (nowidelut) run("abc -lut 4 -dress"); |