diff options
author | whitequark <whitequark@whitequark.org> | 2020-04-10 14:51:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-10 14:51:01 +0000 |
commit | 93ef516d919b40ace2099bc7586bfda8648f0757 (patch) | |
tree | ab7e043e1c9d5cd1e6ff5258fd1e6709081200a0 /techlibs/ecp5/synth_ecp5.cc | |
parent | 93c6c6779861d7b41fae1b87d54790e0a9555b80 (diff) | |
parent | 763401fc827d444bfef5a10ff658a3bf7e89b76c (diff) | |
download | yosys-93ef516d919b40ace2099bc7586bfda8648f0757.tar.gz yosys-93ef516d919b40ace2099bc7586bfda8648f0757.tar.bz2 yosys-93ef516d919b40ace2099bc7586bfda8648f0757.zip |
Merge pull request #1603 from whitequark/ice40-ram_style
ice40/ecp5: add support for both 1364.1 and Synplify/LSE RAM/ROM attributes
Diffstat (limited to 'techlibs/ecp5/synth_ecp5.cc')
-rw-r--r-- | techlibs/ecp5/synth_ecp5.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/techlibs/ecp5/synth_ecp5.cc b/techlibs/ecp5/synth_ecp5.cc index 9916fdafb..6f5790a14 100644 --- a/techlibs/ecp5/synth_ecp5.cc +++ b/techlibs/ecp5/synth_ecp5.cc @@ -279,7 +279,9 @@ struct SynthEcp5Pass : public ScriptPass if (check_label("map_ffram")) { run("opt -fast -mux_undef -undriven -fine"); - run("memory_map"); + run("memory_map -iattr -attr !ram_block -attr !rom_block -attr logic_block " + "-attr syn_ramstyle=auto -attr syn_ramstyle=registers " + "-attr syn_romstyle=auto -attr syn_romstyle=logic"); run("opt -undriven -fine"); } |