3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

ice40: do not map FFRAM if explicitly requested otherwise.

This commit is contained in:
whitequark 2020-01-01 09:48:39 +00:00
parent e0def9e4d9
commit ebee746ad2
2 changed files with 31 additions and 9 deletions

View file

@ -304,7 +304,9 @@ struct SynthIce40Pass : 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");
}