X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=techlibs%2Fice40%2Fsynth_ice40.cc;h=22cac7d7d12b76d74b11437139886cf8722cb746;hb=ebee746ad21b9f1fe37f50908bdc5d219880e6bb;hp=d92e407262e76c1eba194b78ee8d80ec697bf25e;hpb=b7be6cfd6544a351b885a869008bf10cec189b8b;p=yosys.git diff --git a/techlibs/ice40/synth_ice40.cc b/techlibs/ice40/synth_ice40.cc index d92e40726..22cac7d7d 100644 --- a/techlibs/ice40/synth_ice40.cc +++ b/techlibs/ice40/synth_ice40.cc @@ -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"); } @@ -316,6 +318,7 @@ struct SynthIce40Pass : public ScriptPass run("ice40_wrapcarry"); run("techmap -map +/techmap.v -map +/ice40/arith_map.v"); } + run("opt -fast"); if (retime || help_mode) run("abc -dff -D 1", "(only if -retime)"); run("ice40_opt");