aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/ecp5/synth_ecp5.cc
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-01-01 10:11:35 +0000
committerwhitequark <whitequark@whitequark.org>2020-04-03 05:51:40 +0000
commit763401fc827d444bfef5a10ff658a3bf7e89b76c (patch)
tree17c232976275e4322f9bdda40b8cef36f987dbbe /techlibs/ecp5/synth_ecp5.cc
parentebee746ad21b9f1fe37f50908bdc5d219880e6bb (diff)
downloadyosys-763401fc827d444bfef5a10ff658a3bf7e89b76c.tar.gz
yosys-763401fc827d444bfef5a10ff658a3bf7e89b76c.tar.bz2
yosys-763401fc827d444bfef5a10ff658a3bf7e89b76c.zip
ecp5: do not map FFRAM if explicitly requested otherwise.
Diffstat (limited to 'techlibs/ecp5/synth_ecp5.cc')
-rw-r--r--techlibs/ecp5/synth_ecp5.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/techlibs/ecp5/synth_ecp5.cc b/techlibs/ecp5/synth_ecp5.cc
index d47b2bed4..793ea15aa 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");
}